/* ==========================================================
   CRP New Layout — Design System + Component Styles
   All rules scoped under .crp-nl to avoid theme conflicts.
   ========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Sora:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap");

/* ── Tokens ─────────────────────────────────────────────── */
.crp-nl, .crp-nl-overlay {
  --crp-accent:          #c97b4d;
  --crp-accent-strong:   #b06a3f;
  --crp-accent-soft:     #f5e2d4;
  --crp-accent-deep:     #c44a24;
  --crp-accent-outline:  rgba(201,123,77,0.28);
  --crp-bg:              #f8f7f5;
  --crp-bg-elev:         #ffffff;
  --crp-bg-sunk:         #f4f2ec;
  --crp-line:            #e8e4da;
  --crp-line-strong:     #d4cebe;
  --crp-ink:             #1a1814;
  --crp-ink-2:           #4a4639;
  --crp-ink-3:           #8a8473;
  --crp-ink-4:           #b8b2a0;
  --crp-surface-hover:   #f5f5f5;
  --crp-ok:              #2e8b57;
  --crp-ok-soft:         #e3f1e8;
  --crp-ok-border:       #bbf7d0;
  --crp-warn:            #b8860b;
  --crp-warn-soft:       #fbf3db;
  --crp-warn-border:     #fde68a;
  --crp-info:            #3b6fb8;
  --crp-info-soft:       #e5eefb;
  --crp-info-border:     #bae6fd;
  --crp-font-sans:       "Manrope", system-ui, -apple-system, sans-serif;
  --crp-font-display:    "Sora", system-ui, sans-serif;
  --crp-font-mono:       "JetBrains Mono", ui-monospace, Menlo, monospace;
  -webkit-font-smoothing: antialiased;
}

/* ── Reset within scope ─────────────────────────────────── */
.crp-nl *, .crp-nl *::before, .crp-nl *::after,
.crp-nl-overlay *, .crp-nl-overlay *::before, .crp-nl-overlay *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.crp-nl {
  font-family: var(--crp-font-sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--crp-ink);
  background: var(--crp-bg);
}

/* ── Keyframes ──────────────────────────────────────────── */
@keyframes crp-fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes crp-pane-in   { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes crp-pulse-ring {
  0%   { transform: scale(0.9); opacity: 0.7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ══════════════════════════════════════════════════════════
   ACCOUNT DASHBOARD
   ══════════════════════════════════════════════════════════ */

/* Hero card */
.crp-nl__hero {
  background: var(--crp-bg-elev);
  border: 1px solid var(--crp-line);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.crp-nl__hero-glow {
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--crp-accent-soft) 0%, rgba(245,226,212,0) 70%);
  pointer-events: none;
}
.crp-nl__hero-inner {
  position: relative;
}
/* Eyebrow: icon + badge on the same row */
.crp-nl__hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.crp-nl__hero-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--crp-accent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.crp-nl__hero-icon svg { width: 20px; height: 20px; }
.crp-nl__hero-body { min-width: 0; }
.crp-nl__hero-badge {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--crp-accent-deep);
  background: var(--crp-accent-soft);
  border: 1px solid var(--crp-accent-outline);
  padding: 3px 9px; border-radius: 999px;
}
.crp-nl__hero-title {
  font-family: var(--crp-font-display);
  font-weight: 500; font-size: 24px;
  line-height: 1.2; letter-spacing: -0.02em;
  color: var(--crp-ink);
  margin-bottom: 8px;
}
.crp-nl__hero-desc {
  font-size: 13px; color: var(--crp-ink-2);
  margin-bottom: 18px; max-width: 540px;
}

/* Code / Link grid */
.crp-nl__copy-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  margin-bottom: 14px;
}
.crp-nl__copy-grid > * { min-width: 0; }
@media (max-width: 640px) {
  .crp-nl__copy-grid { grid-template-columns: 1fr; }
}
.crp-nl__copy-label {
  display: block;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--crp-ink-3);
  margin-bottom: 6px;
}
.crp-nl__copy-hint {
  font-size: 11px; color: var(--crp-ink-3); margin-top: 6px;
}

/* Copy field */
.crp-nl__copy-field {
  display: flex; align-items: stretch;
  border: 1px solid var(--crp-line);
  border-radius: 10px;
  background: var(--crp-bg-elev);
  overflow: hidden;
  transition: border-color .12s ease;
}
.crp-nl__copy-field:hover { border-color: var(--crp-line-strong); }
.crp-nl__copy-value {
  padding: 10px 14px;
  font-family: var(--crp-font-mono);
  font-size: 13px; font-weight: 500;
  color: var(--crp-ink);
  flex: 1;
  min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.crp-nl__copy-value--url {
  font-family: var(--crp-font-sans);
  font-size: 12px; font-weight: 400;
  letter-spacing: normal;
}
.crp-nl__copy-btn {
  background: transparent;
  border: none; border-left: 1px solid var(--crp-line);
  padding: 0 14px;
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  color: var(--crp-ink-2);
  font-size: 12px; font-weight: 600;
  font-family: var(--crp-font-sans);
  min-width: 72px;
  flex-shrink: 0;
  justify-content: center;
  transition: background .12s ease, color .12s ease;
}
.crp-nl__copy-btn:hover { background: var(--crp-surface-hover); }
.crp-nl__copy-btn.is-copied {
  background: var(--crp-accent-soft);
  color: var(--crp-accent-deep);
}
.crp-nl__copy-btn svg { width: 14px; height: 14px; }

/* Share row */
.crp-nl__share-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.crp-nl__share-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--crp-ink-3); margin-right: 4px;
}
.crp-nl__share-btn {
  width: 36px; height: 36px;
  border-radius: 8px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s ease, box-shadow .12s ease;
  text-decoration: none;
}
.crp-nl__share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px -3px rgba(70,45,28,0.25);
}
.crp-nl__share-btn svg { width: 18px; height: 18px; }
.crp-nl__share-btn--wa  { background: #25D366; color: #fff; }
.crp-nl__share-btn--mail { background: var(--crp-accent); color: #fff; }
.crp-nl__share-btn--phone { background: var(--crp-info); color: #fff; }
.crp-nl__share-btn--fb  { background: #1877F2; color: #fff; }
.crp-nl__share-btn--tw  { background: #0F1419; color: #fff; }

/* Layout-native email/SMS sharing */
.crp-nl-share-panel {
  margin-top: 12px;
  background: var(--crp-bg-elev);
  border: 1px solid var(--crp-line);
  border-radius: 10px;
  padding: 12px;
}
.crp-nl-share-panel__title {
  font-size: 12px; font-weight: 600;
  color: var(--crp-ink);
  margin-bottom: 8px;
}
.crp-nl-share-panel__notice {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
}
.crp-nl-share-panel__notice:empty { display: none; }
.crp-nl-share-panel__notice.is-success { color: var(--crp-ok); }
.crp-nl-share-panel__notice.is-error { color: var(--crp-accent-deep); }
.crp-nl-share-panel__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.crp-nl-share-panel__field {
  display: flex;
  align-items: center;
  gap: 8px;
}
.crp-nl-share-panel__input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--crp-line);
  border-radius: 8px;
  padding: 7px 10px;
  font-family: var(--crp-font-sans);
  font-size: 12px;
  color: var(--crp-ink);
  background: var(--crp-bg-elev);
}
.crp-nl-share-panel__input:focus {
  outline: none;
  border-color: var(--crp-accent);
}
.crp-nl-share-panel__remove {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--crp-line);
  background: var(--crp-bg-sunk);
  color: var(--crp-ink-2);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}
.crp-nl-share-panel__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 10px;
}
.crp-nl-share-panel__button {
  min-height: 34px;
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  font-family: var(--crp-font-sans);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .12s ease, color .12s ease, opacity .12s ease;
}
.crp-nl-share-panel__button svg {
  width: 14px;
  height: 14px;
}
.crp-nl-share-panel__button--primary {
  border: 1px solid var(--crp-accent-strong);
  background: var(--crp-accent);
  color: #fff;
}
.crp-nl-share-panel__button--primary:hover:not(:disabled) {
  background: var(--crp-accent-strong);
}
.crp-nl-share-panel__button--secondary {
  border: 1px solid var(--crp-line);
  background: var(--crp-bg-sunk);
  color: var(--crp-ink-2);
}
.crp-nl-share-panel__button--secondary:hover:not(:disabled) {
  background: var(--crp-surface-hover);
}
.crp-nl-share-panel__button:disabled {
  opacity: 0.65;
  cursor: default;
}

/* Hero bottom bar */
.crp-nl__hero-bar {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 14px;
}

/* ── Rewards info bar (all 3 rewards, settings-driven) ── */
.crp-nl__rewards-info {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px;
}
.crp-nl__rewards-info-item {
  flex: 1; min-width: 200px;
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--crp-accent-soft);
  border: 1px solid var(--crp-accent-outline);
  border-radius: 10px;
  padding: 12px 14px;
}
/* Friend signup discount card — neutral tint to distinguish from referrer rewards */
.crp-nl__rewards-info-item--friend {
  background: var(--crp-bg-elev);
  border-color: var(--crp-line);
}
.crp-nl__rewards-info-item--friend svg { color: var(--crp-ink-2) !important; }
.crp-nl__rewards-info-item--friend .crp-nl__rewards-info-value { color: var(--crp-ink); }
.crp-nl__rewards-info-item > svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--crp-accent-deep); }
.crp-nl__rewards-info-item > div { display: flex; flex-direction: column; gap: 2px; }
.crp-nl__rewards-info-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--crp-ink-3);
}
.crp-nl__rewards-info-value {
  font-family: var(--crp-font-display);
  font-size: 20px; font-weight: 600; line-height: 1;
  color: var(--crp-accent-deep); letter-spacing: -0.02em;
}
.crp-nl__rewards-info-desc {
  font-size: 12px; color: var(--crp-ink-2); line-height: 1.4;
}

/* ── Stats grid ─────────────────────────────────────────── */
.crp-nl__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 900px) { .crp-nl__stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .crp-nl__stats { grid-template-columns: 1fr; } }

.crp-nl__stat {
  background: var(--crp-bg-elev);
  border: 1px solid var(--crp-line);
  border-radius: 12px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.crp-nl__stat--accent {
  background: var(--crp-accent-soft);
  border-color: var(--crp-accent-outline);
}
.crp-nl__stat-top {
  display: flex; align-items: center; justify-content: space-between;
}
.crp-nl__stat-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--crp-ink-3);
}
.crp-nl__stat--accent .crp-nl__stat-label { color: var(--crp-accent-deep); }
.crp-nl__stat-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--crp-bg-sunk);
  color: var(--crp-ink-2);
  display: flex; align-items: center; justify-content: center;
}
.crp-nl__stat--accent .crp-nl__stat-icon {
  background: var(--crp-accent);
  color: #fff;
}
.crp-nl__stat-icon svg { width: 15px; height: 15px; }
.crp-nl__stat-value {
  font-family: var(--crp-font-display);
  font-weight: 500; font-size: 32px;
  letter-spacing: -0.02em; line-height: 1.05;
  color: var(--crp-ink);
}
.crp-nl__stat--accent .crp-nl__stat-value { color: var(--crp-accent-deep); }
.crp-nl__stat-sub { font-size: 12px; color: var(--crp-ink-3); }

/* ── Coupon table section ───────────────────────────────── */
.crp-nl__coupons {
  background: var(--crp-bg-elev);
  border: 1px solid var(--crp-line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.crp-nl__coupons-header {
  padding: 14px 18px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 14px;
  border-bottom: 1px solid var(--crp-line);
  flex-wrap: wrap;
}
.crp-nl__coupons-title {
  font-family: var(--crp-font-display);
  font-weight: 500; font-size: 17px;
  color: var(--crp-ink);
}
.crp-nl__coupons-subtitle {
  font-size: 12px; color: var(--crp-ink-3); margin-top: 2px;
}
.crp-nl__coupons-controls {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.crp-nl__search {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--crp-line);
  border-radius: 8px;
  background: var(--crp-bg-elev);
  padding: 7px 12px;
  color: var(--crp-ink-3);
  min-width: 220px;
  cursor: text;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.crp-nl__search:focus-within {
  border-color: var(--crp-accent);
  box-shadow: 0 0 0 3px var(--crp-accent-soft);
  color: var(--crp-accent);
}
.crp-nl__search svg { width: 14px; height: 14px; flex-shrink: 0; transition: color .15s ease; }
.crp-nl__search input {
  border: none; outline: none; background: transparent;
  font-family: var(--crp-font-sans);
  font-size: 13px; color: var(--crp-ink);
  width: 100%;
  height: auto; line-height: 1.4;
  padding: 0; margin: 0; box-shadow: none;
}
.crp-nl__search input::placeholder { color: var(--crp-ink-4); font-size: 13px; }
@media (max-width: 640px) {
  .crp-nl__search { min-width: 0; width: 100%; }
}

/* Table */
.crp-nl__table-head {
  display: grid;
  grid-template-columns: 1fr 0.9fr 0.8fr 1.15fr 1.25fr 0.45fr;
  padding: 9px 18px;
  background: var(--crp-bg-sunk);
  border-bottom: 1px solid var(--crp-line);
  font-size: 11px; font-weight: 600;
  color: var(--crp-ink-3);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.crp-nl__table-row {
  display: grid;
  grid-template-columns: 1fr 0.9fr 0.8fr 1.15fr 1.25fr 0.45fr;
  padding: 13px 18px;
  align-items: center;
  border-bottom: 1px solid var(--crp-line);
  font-size: 13px;
  transition: background .12s ease;
}
.crp-nl__table-row:last-child { border-bottom: none; }
.crp-nl__table-row:hover { background: var(--crp-bg-sunk); }

@media (max-width: 780px) {
  .crp-nl__table-head { display: none; }
  .crp-nl__table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 18px;
  }
  .crp-nl__table-row > * { display: flex; align-items: center; gap: 6px; }
  .crp-nl__table-row > *::before {
    content: attr(data-label);
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--crp-ink-3); min-width: 100px;
  }
}

/* Coupon ticket */
.crp-nl__ticket {
  width: 86px; height: 56px;
  background: var(--crp-accent-soft);
  border: 1px dashed var(--crp-accent);
  border-radius: 8px;
  position: relative;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 4px 10px;
  flex-shrink: 0;
  font: inherit;
  color: var(--crp-accent-deep);
}
.crp-nl__ticket--copy {
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.crp-nl__ticket--copy:hover {
  background: #f7dcc7;
  border-color: var(--crp-accent-strong);
  box-shadow: 0 6px 14px -10px rgba(196,74,36,0.55);
}
.crp-nl__ticket--copy:focus-visible {
  outline: 2px solid var(--crp-accent);
  outline-offset: 2px;
}
.crp-nl__ticket--copy.is-copied {
  background: var(--crp-ok-soft);
  border-color: var(--crp-ok);
}
.crp-nl__ticket-notch {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--crp-bg-sunk);
  border: 1px dashed var(--crp-accent);
  top: 50%; transform: translateY(-50%);
}
.crp-nl__ticket-notch--l { left: -5px; }
.crp-nl__ticket-notch--r { right: -5px; }
.crp-nl__ticket-code {
  font-family: var(--crp-font-mono);
  font-weight: 600; font-size: 11px;
  color: var(--crp-accent-deep);
  letter-spacing: 0.04em;
}
.crp-nl__ticket-amount {
  font-family: var(--crp-font-display);
  font-weight: 500; font-size: 13px;
  color: var(--crp-accent-deep);
  margin-top: 2px;
}
.crp-nl__ticket-copy-icon {
  position: absolute;
  bottom: 4px; right: 5px;
  width: 11px; height: 11px;
  color: var(--crp-accent);
  opacity: 0.45;
  display: flex;
  pointer-events: none;
  transition: opacity .12s ease;
}
.crp-nl__ticket-copy-icon svg { width: 11px; height: 11px; }
.crp-nl__ticket--copy:hover .crp-nl__ticket-copy-icon { opacity: 1; }
.crp-nl__ticket--copy.is-copied .crp-nl__ticket-copy-icon {
  color: var(--crp-ok);
  opacity: 1;
}

/* Coupon cell */
.crp-nl__coupon-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Pills */
.crp-nl__pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 500;
  padding: 2px 8px; border-radius: 999px; line-height: 1.6;
  white-space: nowrap;
}
.crp-nl__pill--success { background: var(--crp-ok-soft);   color: var(--crp-ok);   border: 1px solid var(--crp-ok-border); }
.crp-nl__pill--warn    { background: var(--crp-warn-soft); color: var(--crp-warn); border: 1px solid var(--crp-warn-border); }
.crp-nl__pill--info    { background: var(--crp-info-soft); color: var(--crp-info); border: 1px solid var(--crp-info-border); }
.crp-nl__pill--neutral { background: var(--crp-bg-sunk);   color: var(--crp-ink-2); border: 1px solid var(--crp-line); }
.crp-nl__pill--accent  { background: var(--crp-accent-soft); color: var(--crp-accent-deep); border: 1px solid var(--crp-accent-outline); }

/* Avatar */
.crp-nl__avatar {
  border-radius: 50%;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600;
  flex-shrink: 0;
  width: 22px; height: 22px;
}

/* User cell */
.crp-nl__user-cell {
  display: flex; align-items: center; gap: 8px;
  color: var(--crp-ink-2); font-size: 12px;
  font-family: var(--crp-font-mono);
}

/* Align right helper */
.crp-nl__cell-right { text-align: right; justify-content: flex-end; }

/* Table footer */
.crp-nl__table-footer {
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--crp-bg-sunk);
  font-size: 12px; color: var(--crp-ink-3);
  border-top: 1px solid var(--crp-line);
  flex-wrap: wrap; gap: 10px;
}
.crp-nl__table-footer-left {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.crp-nl__page-btns {
  display: flex; align-items: center; gap: 4px;
}
.crp-nl__page-btn {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--crp-line);
  background: var(--crp-bg-elev);
  color: var(--crp-ink-2);
  cursor: pointer; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--crp-font-sans);
  transition: background .12s ease;
}
.crp-nl__page-btn:hover:not(:disabled) { background: var(--crp-bg-sunk); }
.crp-nl__page-btn.is-active {
  border-color: var(--crp-accent);
  background: var(--crp-accent);
  color: #fff;
}
.crp-nl__page-btn:disabled { opacity: 0.4; cursor: default; }
.crp-nl__page-btn svg { width: 14px; height: 14px; }

.crp-nl__per-page-select {
  border: 1px solid var(--crp-line); border-radius: 6px;
  padding: 3px 8px; font-size: 12px;
  font-family: var(--crp-font-sans);
  background: var(--crp-bg-elev); cursor: pointer;
  width: auto; max-width: 80px;
}

/* Empty state */
.crp-nl__empty {
  padding: 40px 18px;
  text-align: center;
  color: var(--crp-ink-3);
  font-size: 13px;
}

/* ══════════════════════════════════════════════════════════
   FLOATING ACTION BUTTON
   ══════════════════════════════════════════════════════════ */
.crp-nl-fab {
  position: fixed !important;
  z-index: 99999 !important;
  background: transparent !important;
  width: max-content;
  max-width: none !important;
  overflow: visible !important;
  pointer-events: none;
  visibility: visible !important;
  opacity: 1 !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
}
.crp-nl-fab--right-bottom { bottom: 28px !important; right: 28px !important; left: auto !important; top: auto !important; }
.crp-nl-fab--left-bottom  { bottom: 28px !important; left:  28px !important; right: auto !important; top: auto !important; }
.crp-nl-fab--top-right    { top:    28px !important; right: 28px !important; bottom: auto !important; left: auto !important; }
.crp-nl-fab--top-left     { top:    28px !important; left:  28px !important; bottom: auto !important; right: auto !important; }
.crp-nl-fab--hidden       { display: none !important; visibility: hidden !important; }
@media (max-width: 640px) {
  .crp-nl-fab--right-bottom { bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; right: 16px !important; }
  .crp-nl-fab--left-bottom  { bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; left:  16px !important; }
  .crp-nl-fab--top-right    { top:    16px !important; right: 16px !important; }
  .crp-nl-fab--top-left     { top:    16px !important; left:  16px !important; }
}
.crp-nl-fab__ring {
  position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid var(--crp-accent);
  animation: crp-pulse-ring 2.2s ease-out infinite;
  pointer-events: none;
}
.crp-nl-fab__btn {
  position: relative !important;
  display: inline-flex !important; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--crp-accent) !important; color: #fff !important;
  border: 1px solid var(--crp-accent-strong) !important;
  box-shadow: 0 12px 28px -8px rgba(196,74,36,0.5);
  cursor: pointer; font-size: 13px; font-weight: 600;
  font-family: var(--crp-font-sans);
  transition: background .15s ease, box-shadow .15s ease;
  -webkit-font-smoothing: antialiased;
  pointer-events: auto !important;
  white-space: nowrap;
  visibility: visible !important;
  opacity: 1 !important;
}
@media (max-width: 640px) {
  .crp-nl-fab__btn { padding: 10px 16px !important; font-size: 12px !important; }
  .crp-nl-fab__btn svg { width: 14px !important; height: 14px !important; }
}
.crp-nl-fab__btn:hover {
  background: var(--crp-accent-strong);
  box-shadow: 0 14px 32px -8px rgba(196,74,36,0.6);
}
.crp-nl-fab__btn svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════════
   MODAL OVERLAY + DIALOG
   ══════════════════════════════════════════════════════════ */
.crp-nl-overlay {
  position: fixed !important; inset: 0; z-index: 9100;
  background: rgba(20,15,10,0.5) !important;
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: crp-fade-in .18s ease;
}
.crp-nl-overlay.crp-nl-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.crp-nl-dialog {
  width: 100%; max-width: 560px;
  background: var(--crp-bg-elev);
  border-radius: 16px;
  border: 1px solid var(--crp-line);
  box-shadow: 0 25px 50px -12px rgba(70,45,28,0.35);
  overflow: hidden;
  animation: crp-pane-in .25s ease;
}
.crp-nl-dialog--wide { max-width: 560px; }
.crp-nl-dialog--narrow { max-width: 520px; }

/* Dialog header */
.crp-nl-dialog__header {
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--crp-line);
}
.crp-nl-dialog__header-left {
  display: flex; align-items: center; gap: 12px;
}
.crp-nl-dialog__icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--crp-accent-soft);
  color: var(--crp-accent-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.crp-nl-dialog__icon svg { width: 18px; height: 18px; }
.crp-nl-dialog__title {
  font-family: var(--crp-font-display);
  font-weight: 500; font-size: 18px;
  letter-spacing: -0.01em; color: var(--crp-ink);
}
.crp-nl-dialog__subtitle {
  font-size: 12px; color: var(--crp-ink-3); margin-top: 2px;
}
.crp-nl-dialog__close {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--crp-line);
  background: transparent; cursor: pointer;
  color: var(--crp-ink-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .12s ease;
}
.crp-nl-dialog__close:hover { background: var(--crp-bg-sunk); }
.crp-nl-dialog__close svg { width: 14px; height: 14px; }

/* Reward stripe */
.crp-nl-dialog__stripe {
  padding: 15px 22px;
  background: var(--crp-accent-soft);
  border-bottom: 1px solid var(--crp-accent-outline);
  display: flex; align-items: center; gap: 14px;
}
.crp-nl-dialog__stripe-amount {
  font-family: var(--crp-font-display);
  font-weight: 500; font-size: 28px;
  color: var(--crp-accent-deep);
  letter-spacing: -0.02em; line-height: 1;
  flex-shrink: 0;
}
.crp-nl-dialog__stripe-text {
  font-size: 13px; color: var(--crp-ink-2); line-height: 1.45;
}
.crp-nl-dialog__stripe-text strong { color: var(--crp-accent-deep); }

/* Reward stripe — split layout (You get / Friend gets) */
.crp-nl-dialog__stripe--split {
  display: flex; align-items: stretch; gap: 0;
  padding: 0;
}
.crp-nl-reward-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 14px 16px; gap: 4px;
}
.crp-nl-reward-item__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--crp-ink-3);
}
.crp-nl-reward-item__amount {
  font-family: var(--crp-font-display);
  font-weight: 600; font-size: 26px; line-height: 1;
  color: var(--crp-accent-deep); letter-spacing: -0.02em;
}
.crp-nl-reward-item__desc {
  font-size: 11px; color: var(--crp-ink-3); line-height: 1.4;
}
.crp-nl-reward-divider {
  width: 1px; background: var(--crp-accent-outline);
  align-self: stretch; margin: 10px 0;
}
/* Secondary amount (e.g. referrer signup bonus below purchase reward) */
.crp-nl-reward-item__amount--secondary {
  font-size: 18px; margin-top: 6px;
  padding-top: 6px; border-top: 1px dashed var(--crp-accent-outline);
}

/* Dialog body */
.crp-nl-dialog__body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; gap: 16px;
}

/* Steps block inside modal */
.crp-nl-steps {
  background: var(--crp-bg-sunk);
  border-radius: 10px;
  border: 1px solid var(--crp-line);
  padding: 14px 16px;
}
.crp-nl-steps__title {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--crp-ink-3); margin-bottom: 10px;
}
.crp-nl-steps__list {
  list-style: none;
  display: flex; flex-direction: column; gap: 9px;
}
.crp-nl-steps__item {
  display: flex; gap: 10px; align-items: flex-start;
}
.crp-nl-steps__num {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--crp-accent); color: #fff;
  font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.crp-nl-steps__item-title {
  font-size: 13px; font-weight: 600; color: var(--crp-ink);
}
.crp-nl-steps__item-desc {
  font-size: 12px; color: var(--crp-ink-3); margin-top: 1px;
}

/* ── Signup modal layout ─────────────────────────────────── */
.crp-nl-signup {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  min-height: 280px;
}
@media (max-width: 500px) {
  .crp-nl-signup { grid-template-columns: 1fr; }
  .crp-nl-signup__visual { display: none; }
}
.crp-nl-signup__content {
  padding: 28px 24px 26px;
  display: flex; flex-direction: column;
  justify-content: center; gap: 14px;
}
.crp-nl-signup__badge {
  display: inline-flex; align-self: flex-start;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--crp-accent-deep);
  background: var(--crp-accent-soft);
  border: 1px solid var(--crp-accent-outline);
  padding: 4px 10px; border-radius: 999px;
  gap: 5px; align-items: center;
}
.crp-nl-signup__badge svg { width: 11px; height: 11px; }
.crp-nl-signup__title {
  font-family: var(--crp-font-display);
  font-weight: 500; font-size: 24px;
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--crp-ink);
}
.crp-nl-signup__desc {
  font-size: 13px; color: var(--crp-ink-2); line-height: 1.5;
}

/* Reward pills in guest popup */
.crp-nl-signup__rewards {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  margin: 10px 0 2px;
}
.crp-nl-signup__reward-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--crp-accent-soft);
  border: 1px solid var(--crp-accent-outline);
  border-radius: 8px;
  padding: 7px 12px;
}
/* Friend reward pill — neutral tint */
.crp-nl-signup__reward-item--friend {
  background: var(--crp-bg-sunk);
  border-color: var(--crp-line);
}
.crp-nl-signup__reward-item--friend .crp-nl-signup__reward-amount { color: var(--crp-ink); }
.crp-nl-signup__reward-amount {
  font-family: var(--crp-font-display);
  font-size: 17px; font-weight: 600; line-height: 1;
  color: var(--crp-accent-deep); letter-spacing: -0.02em;
  flex-shrink: 0;
}
.crp-nl-signup__reward-desc {
  font-size: 12px; color: var(--crp-ink-2); line-height: 1.3;
}

.crp-nl-signup__actions {
  display: flex; gap: 10px; margin-top: 4px;
}
.crp-nl-signup__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px;
  background: var(--crp-accent); color: #fff;
  border: 1px solid var(--crp-accent-strong);
  font-size: 13px; font-weight: 600;
  font-family: var(--crp-font-sans);
  cursor: pointer; text-decoration: none;
  transition: background .12s ease;
}
.crp-nl-signup__cta:hover { background: var(--crp-accent-strong); }
.crp-nl-signup__cta svg { width: 14px; height: 14px; }
.crp-nl-signup__login {
  display: inline-flex; align-items: center;
  padding: 9px 16px; border-radius: 8px;
  background: transparent; color: var(--crp-ink-2);
  border: 1px solid transparent;
  font-size: 13px; font-weight: 600;
  font-family: var(--crp-font-sans);
  cursor: pointer; text-decoration: none;
  transition: background .12s ease;
}
.crp-nl-signup__login:hover { background: var(--crp-surface-hover); }
.crp-nl-signup__note {
  font-size: 11px; color: var(--crp-ink-3);
  display: flex; align-items: center; gap: 5px;
}
.crp-nl-signup__note svg { width: 12px; height: 12px; }

/* Signup visual side */
.crp-nl-signup__visual {
  background: linear-gradient(160deg, #100c08 0%, #1f160f 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.crp-nl-signup__glow {
  position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,123,77,0.45) 0%, rgba(201,123,77,0) 65%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.crp-nl-signup__ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(201,123,77,0.14);
  pointer-events: none;
}
.crp-nl-signup__card {
  position: absolute;
  padding: 7px 11px; border-radius: 8px;
  font-family: var(--crp-font-mono);
  font-size: 11px; font-weight: 600;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}
.crp-nl-signup__card--a {
  background: var(--crp-accent); color: #fff;
  top: 22%; left: 18%;
  transform: rotate(-8deg);
}
.crp-nl-signup__card--b {
  background: #fff; color: var(--crp-accent-deep);
  bottom: 22%; right: 14%;
  transform: rotate(6deg);
  border: 1px dashed var(--crp-accent);
}
.crp-nl-signup__center-mark {
  position: relative; z-index: 2;
  width: 72px; height: 72px; border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,123,77,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--crp-accent);
  backdrop-filter: blur(4px);
}
.crp-nl-signup__center-mark svg { width: 32px; height: 32px; }
