.kyc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.kyc-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.kyc-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 430px;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  z-index: 301;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  transition: transform 300ms ease;
}

.kyc-sheet.open {
  transform: translateX(-50%) translateY(0);
}

.kyc-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 14px auto 0;
  flex-shrink: 0;
}

.kyc-sheet-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.kyc-sheet-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.kyc-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  color: var(--text-muted);
}

.kyc-sheet-close svg {
  width: 16px;
  height: 16px;
}

.kyc-sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 20px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kyc-gate-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: rgba(236,72,153,0.08);
  border: 1px solid rgba(236,72,153,0.2);
  border-radius: var(--radius-md);
}

.kyc-gate-notice svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.kyc-gate-notice-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.kyc-gate-notice-text strong {
  font-weight: 700;
}

.kyc-divider {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kyc-divider::before,
.kyc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.kyc-divider span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.kyc-upload-btn {
  width: 100%;
  height: 80px;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: border-color 150ms ease, background 150ms ease;
  position: relative;
  overflow: hidden;
}

.kyc-upload-btn:active {
  background: rgba(236,72,153,0.05);
  border-color: var(--primary);
}

.kyc-upload-btn.has-file {
  border-color: #22c55e;
  border-style: solid;
}

.kyc-upload-btn svg {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
}

.kyc-upload-btn.has-file svg {
  color: #22c55e;
}

.kyc-upload-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.kyc-upload-btn.has-file .kyc-upload-label {
  color: #22c55e;
  font-weight: 600;
}

.kyc-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.kyc-terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
}

.kyc-terms-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 1px;
  transition: all 150ms ease;
}

.kyc-terms-check.checked {
  background: var(--primary);
  border-color: var(--primary);
}

.kyc-terms-check svg {
  width: 11px;
  height: 11px;
  color: #fff;
  display: none;
}

.kyc-terms-check.checked svg {
  display: block;
}

.kyc-terms-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.kyc-terms-text a {
  color: var(--primary);
  font-weight: 600;
}

.kyc-error {
  font-size: 13px;
  color: var(--red);
  display: none;
  padding: 4px 0;
}

.kyc-error.visible {
  display: block;
}

.kyc-pending-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 20px;
  text-align: center;
}

.kyc-pending-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(245,158,11,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kyc-pending-icon svg {
  width: 30px;
  height: 30px;
  color: #f59e0b;
}

.kyc-pending-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.kyc-pending-msg {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.kyc-view-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.kyc-view-row:last-child {
  border-bottom: none;
}

.kyc-view-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kyc-view-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.kyc-approved-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius-md);
}

.kyc-approved-banner svg {
  width: 20px;
  height: 20px;
  color: #22c55e;
  flex-shrink: 0;
}

.kyc-approved-banner span {
  font-size: 13px;
  font-weight: 600;
  color: #22c55e;
}

.kyc-badge-wrap {
  position: relative;
  display: inline-flex;
}

.kyc-verified-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.kyc-verified-dot svg {
  width: 10px;
  height: 10px;
  color: #fff;
}

.profil-avatar-img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(236,72,153,0.25), 0 8px 24px rgba(236,72,153,0.3);
}

.drawer-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.peegbox-soon-card {
  margin: 0 4px;
  background: linear-gradient(135deg, #1A1A1A 0%, #0A0A0A 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.peegbox-soon-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.peegbox-soon-orb-1 {
  width: 120px;
  height: 120px;
  top: -40px;
  right: -30px;
  background: rgba(236,72,153,0.08);
}

.peegbox-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(236,72,153,0.15);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.peegbox-soon-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
  letter-spacing: -0.3px;
}

.peegbox-soon-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.kyc-inline-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  margin-left: auto;
  margin-right: 6px;
  flex-shrink: 0;
}

.kyc-badge-pending {
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
}

.auth-terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
}

.kyc-step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 4px;
}

.kyc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.kyc-step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}

.kyc-step small {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.kyc-step.active span {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(236,72,153,0.35);
}

.kyc-step.active small {
  color: var(--primary);
  font-weight: 600;
}

.kyc-step.done span {
  background: #22c55e;
  color: #fff;
}

.kyc-step.done small {
  color: #22c55e;
}

.kyc-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 18px;
  transition: background 200ms ease;
}

.kyc-upload-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: -8px;
  line-height: 1.4;
}

.rules-progress {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 8px;
}

.rules-progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: all 200ms ease;
}

.rules-progress-dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 3px;
}

.rules-progress-dot.done {
  background: #22c55e;
}

.rules-count {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 24px;
}

.rules-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.rules-icon-wrap svg {
  width: 30px;
  height: 30px;
  color: var(--primary);
}

.rules-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}

.rules-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 32px;
}

.rules-nav {
  display: flex;
  gap: 10px;
}

.rules-nav .btn {
  flex: 1;
}

.rules-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: inherit;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  display: inline;
}

.r-rules-notice {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 6px 0 2px;
}

.bad-payer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(220,38,38,0.1);
  color: var(--red);
  vertical-align: middle;
  margin-left: 4px;
}

.blocked-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  gap: 16px;
}

.blocked-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(220,38,38,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blocked-icon svg {
  width: 34px;
  height: 34px;
  color: var(--red);
}

.blocked-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.blocked-msg {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
}

.txh-body {
  display: flex;
  flex-direction: column;
}

.txh-loading {
  display: flex;
  justify-content: center;
  padding: 48px 0;
}

.txh-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 48px 20px;
}

.txh-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 120ms ease;
}

.txh-row:last-child { border-bottom: none; }
.txh-row:active { background: rgba(0,0,0,0.03); }

.txh-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.txh-icon svg {
  width: 17px;
  height: 17px;
  color: var(--text-secondary);
}

.txh-info { flex: 1; min-width: 0; }

.txh-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 3px;
}

.txh-date {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.txh-error-msg {
  font-size: 11px;
  color: var(--red);
  margin-top: 3px;
  line-height: 1.4;
}

.txh-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.txh-amount {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.txh-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.txh-success { background: rgba(34,197,94,0.1);  color: #22c55e; }
.txh-failed  { background: rgba(220,38,38,0.1);  color: var(--red); }
.txh-pending { background: rgba(245,158,11,0.1); color: #f59e0b; }

.rules-overlay-top {
  z-index: 320;
}

.rules-sheet-top {
  z-index: 321;
}

.contact-textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.5;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}

.legal-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.legal-section-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-overlay-top {
  z-index: 310;
}

.legal-sheet-top {
  z-index: 311;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.settings-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.settings-row-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.settings-switch {
  width: 46px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--border);
  border: none;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 200ms ease;
}

.settings-switch.on {
  background: var(--primary);
}

.settings-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 200ms ease;
}

.settings-switch.on .settings-switch-knob {
  transform: translateX(20px);
}

.help-item {
  border-bottom: 1px solid var(--border);
}

.help-item:last-child {
  border-bottom: none;
}

.help-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.help-item-icon svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.help-item-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.help-item-chevron svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.help-item.open .help-item-chevron svg {
  transform: rotate(90deg);
}

.help-item-body {
  display: none;
  padding: 0 0 16px 30px;
}

.help-item.open .help-item-body {
  display: block;
}

.help-item-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.nf-wrap { display: flex; flex-direction: column; padding-bottom: 24px; }
.nf-loading { display: flex; justify-content: center; padding: 48px 0; }
.nf-empty { text-align: center; color: var(--text-muted); font-size: 14px; padding: 48px 20px; }

.nf-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.nf-row:last-child { border-bottom: none; }
.nf-row.nf-unread { background: rgba(236,72,153,0.03); }
.nf-row:active { background: rgba(0,0,0,0.03); }

.nf-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 5px;
}
.nf-dot.nf-dot-read { background: transparent; border: 1.5px solid var(--border); }

.nf-body { flex: 1; min-width: 0; }
.nf-tag {
  font-size: 10px; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px;
}
.nf-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; line-height: 1.3; }
.nf-msg { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 4px; }
.nf-date { font-size: 11px; color: var(--text-muted); }
