.form-page { padding: 130px 24px 100px; min-height: 100vh; }
.form-page-wrap { max-width: 760px; }
.hidden { display: none !important; }

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 56px;
}
.step-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--panel-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: var(--silver-faint);
  position: relative;
  flex-shrink: 0;
}
.step-dot span {
  position: absolute; top: 42px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; color: var(--silver-faint);
}
.step-dot.active { border-color: var(--copper); color: var(--copper-lite); background: rgba(200,100,43,0.1); }
.step-dot.active span { color: var(--copper-lite); }
.step-dot.done { border-color: var(--copper); background: var(--copper); color: #0B3A41; }
.step-line { width: 60px; height: 1px; background: var(--panel-line); }

.form-panel { animation: fadein .4s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

.hint { font-size: 11.5px; color: var(--silver-faint); font-weight: 400; text-transform: none; letter-spacing: 0; }

.dynamic-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.dynamic-row {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 12px; padding: 14px;
}
.dynamic-row .fields { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.dynamic-row input, .dynamic-row select, .dynamic-row textarea {
  width: 100%; background: var(--black-soft); border: 1px solid var(--panel-line); color: var(--silver);
  padding: 10px 12px; border-radius: 8px; font-family: var(--font-body); font-size: 13.5px;
}
.dynamic-row textarea { min-height: 70px; resize: vertical; }
.remove-row {
  background: none; border: 1px solid var(--panel-line); color: var(--silver-faint);
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer; flex-shrink: 0; font-size: 16px; line-height: 1;
}
.remove-row:hover { border-color: #B4432B; color: #B4432B; }
.btn-add {
  background: none; border: 1px dashed var(--panel-line); color: var(--copper-lite);
  padding: 12px; border-radius: 10px; font-size: 13px; cursor: pointer; width: 100%;
  transition: border-color .2s ease;
}
.btn-add:hover { border-color: var(--copper); }

.tag-input-box {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 10px; padding: 10px 12px;
}
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(200,100,43,0.12); border: 1px solid rgba(200,100,43,0.35); color: var(--copper-lite);
  font-size: 12px; padding: 5px 6px 5px 11px; border-radius: 999px;
}
.tag-chip button { background: none; border: none; color: var(--copper-lite); cursor: pointer; font-size: 13px; padding: 0 2px; }
.tag-input-box input {
  width: 100%; background: none; border: none; color: var(--silver); font-size: 13.5px; padding: 6px 2px;
}
.tag-input-box input:focus { outline: none; }

.status-badge {
  display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
}
.status-pending { background: rgba(200,100,43,0.12); color: var(--copper-lite); border: 1px solid rgba(200,100,43,0.4); }
.status-approved { background: rgba(31,138,76,0.12); color: #1F8A4C; border: 1px solid rgba(31,138,76,0.35); }
.status-rejected { background: rgba(180,67,43,0.12); color: #B4432B; border: 1px solid rgba(180,67,43,0.35); }

.dash-head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---- account settings page ---- */
.acct-value { font-size: 20px; font-weight: 600; color: var(--silver); overflow-wrap: anywhere; margin-top: 8px; }
.acct-masked { letter-spacing: 5px; font-size: 22px; }
.acct-sub { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--panel-line); }
.acct-sub .btn[type="submit"], .acct-sub .btn[type="button"] { width: 100%; justify-content: center; }
.dash-shell { padding: 120px 24px 100px; min-height: 100vh; }
.dash-wrap { max-width: 980px; margin: 0 auto; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.dash-tabs { display: flex; gap: 8px; margin-bottom: 34px; flex-wrap: wrap; }
.dash-tab {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--panel-line); color: var(--silver-dim);
  font-size: 13px; cursor: pointer; background: none;
}
.dash-tab.active { border-color: var(--copper); color: var(--copper-lite); background: rgba(200,100,43,0.08); }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dash-card {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 14px; padding: 22px; margin-bottom: 14px;
}
.dash-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.dash-row-title { font-weight: 700; font-size: 15px; }
.dash-actions { display: flex; gap: 8px; }
.btn-sm {
  padding: 8px 16px; border-radius: 999px; font-size: 12px; cursor: pointer; border: 1px solid var(--panel-line);
  background: none; color: var(--silver-dim);
}
.btn-approve { border-color: rgba(31,138,76,0.4); color: #1F8A4C; }
.btn-approve:hover { background: rgba(31,138,76,0.12); }
.btn-reject { border-color: rgba(180,67,43,0.4); color: #B4432B; }
.btn-reject:hover { background: rgba(180,67,43,0.12); }
.btn-sm:hover { border-color: var(--copper); }
.logout-link { font-size: 12px; color: var(--silver-faint); cursor: pointer; }
.logout-link:hover { color: var(--copper-lite); }

/* ---------- unread badge (dashboards' Messages button) ---------- */
.msg-badge {
  display: none; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px;
  border-radius: 999px; background: var(--copper); color: #0B3A41;
  font-size: 11px; font-weight: 700; letter-spacing: 0;
}

/* ---------- inbox ---------- */
.inbox-page { padding: 96px 20px 24px; }
.inbox-top { max-width: 1180px; margin: 0 auto 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.inbox-top h1 { font-size: 26px; }
.inbox-top a { font-size: 13px; color: var(--copper-lite); }
.inbox-shell {
  max-width: 1180px; margin: 0 auto; height: calc(100vh - 190px); min-height: 520px;
  display: grid; grid-template-columns: 330px 1fr;
  border: 1px solid var(--panel-line); border-radius: 18px; overflow: hidden; background: var(--black-soft);
}
.inbox-list { border-right: 1px solid var(--panel-line); overflow-y: auto; }
.conv-item {
  display: flex; gap: 12px; align-items: center; padding: 15px 16px; cursor: pointer;
  border-bottom: 1px solid var(--panel-line); transition: background .15s ease;
}
.conv-item:hover { background: rgba(11,58,65,0.04); }
.conv-item.active { background: rgba(200,100,43,0.09); }
.conv-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--copper-glow), var(--copper));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px; color: #0B3A41;
}
.conv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conv-avatar-wrap { position: relative; flex-shrink: 0; }
.online-dot {
  position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%;
  background: #1F8A4C; border: 2px solid var(--black-soft);
}
.conv-item.active .online-dot { border-color: #DCEFEA; }
.conv-main { min-width: 0; flex: 1; }
.conv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.conv-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time { font-size: 10.5px; color: var(--silver-faint); flex-shrink: 0; }
.conv-preview { font-size: 12.5px; color: var(--silver-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.conv-item.unread .conv-name, .conv-item.unread .conv-preview { color: var(--silver); }
.conv-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--copper); flex-shrink: 0; }
.conv-tag { font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--copper-lite); margin-top: 4px; display: block; }

.inbox-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.inbox-empty { margin: auto; padding: 24px; text-align: center; color: var(--silver-faint); font-size: 14px; max-width: 340px; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--panel-line); }
.thread-back { display: none; background: none; border: none; color: var(--silver); font-size: 20px; cursor: pointer; padding: 0 6px 0 0; }
.thread-name { font-weight: 700; font-size: 15.5px; }
.thread-sub { font-size: 12px; color: var(--silver-faint); margin-top: 2px; }
.presence { white-space: nowrap; }
.presence-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #8FB0B1; margin-right: 6px; vertical-align: middle; }
.presence.on { color: #1F8A4C; }
.presence.on .presence-dot { background: #1F8A4C; box-shadow: 0 0 0 3px rgba(31,138,76,0.18); }
.presence.typing { color: var(--copper-lite); }
.presence.typing .presence-dot { background: var(--copper-lite); box-shadow: 0 0 0 3px rgba(200,100,43,0.22); }

/* fixed height so the layout doesn't jump when "is typing…" appears and disappears */
.typing-line { height: 22px; padding: 0 18px; font-size: 12px; color: var(--copper-lite); display: flex; align-items: center; gap: 8px; }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--copper-lite); animation: typing-bounce 1.2s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .typing-dots i { animation: none; opacity: .8; } }

.pay-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 11px 18px; border-bottom: 1px solid var(--panel-line); background: rgba(200,100,43,0.045);
  font-size: 12.5px; color: var(--silver-dim);
}
.pay-bar strong { color: var(--silver); }
.pay-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-chip { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.pay-chip.direct { background: rgba(200,100,43,0.16); color: var(--copper-lite); border: 1px solid rgba(200,100,43,0.5); }
.pay-chip.fiverr { background: rgba(31,138,76,0.12); color: #1F8A4C; border: 1px solid rgba(31,138,76,0.4); }

.msg-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 76%; display: flex; flex-direction: column; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; align-items: flex-start; }
.bubble { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.msg.mine .bubble { background: linear-gradient(135deg, rgba(232,165,111,1), rgba(205,110,52,1)); color: #0B3A41; border-bottom-right-radius: 4px; }
.msg.theirs .bubble { background: var(--panel); border: 1px solid var(--panel-line); color: var(--silver); border-bottom-left-radius: 4px; }
.msg-time { font-size: 10.5px; color: var(--silver-faint); margin-top: 4px; display: flex; align-items: center; gap: 2px; }

/* ---- ticks: sent (one grey) · delivered (two grey) · read (two bold coloured) ---- */
.ticks { display: inline-flex; margin-left: 5px; color: #9A8F7D; line-height: 0; }
.ticks svg { width: 17px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ticks.read { color: #1E88E5; }
.ticks.read svg { stroke-width: 2.5; }

/* ---- edit / delete your own messages ---- */
.bubble-row { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.msg.mine .bubble-row { justify-content: flex-end; }
.msg-more {
  opacity: 0; background: none; border: none; cursor: pointer; color: var(--silver-faint);
  font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 8px; flex: none; transition: opacity .15s ease;
}
.msg:hover .msg-more, .msg.show-actions .msg-more, .msg-more:focus-visible { opacity: 1; }
@media (hover: none) { .msg-more { opacity: .55; } }
.msg-more:hover { background: rgba(11,58,65,0.07); color: var(--silver); }
.msg-actions { display: none; gap: 6px; margin-top: 5px; }
.msg.show-actions .msg-actions { display: flex; }
.msg-actions button { background: var(--panel); border: 1px solid var(--panel-line); color: var(--silver-dim); font-size: 12px; padding: 5px 13px; border-radius: 999px; cursor: pointer; }
.msg-actions button:hover { border-color: var(--copper); color: var(--copper-lite); }
.msg-actions button[data-act="delete"]:hover { border-color: #B4432B; color: #B4432B; }
.msg-scroll.locked .msg-more, .msg-scroll.locked .msg-actions { display: none !important; }
.bubble.tomb { background: none !important; border: 1px dashed var(--panel-line) !important; color: var(--silver-faint) !important; font-style: italic; font-size: 13px; }
.edit-box { width: min(440px, 76vw); }
.edit-box textarea { width: 100%; min-height: 62px; resize: vertical; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--copper); color: var(--silver); font-family: var(--font-body); font-size: 14px; line-height: 1.45; }
.edit-box textarea:focus { outline: none; }
.edit-warn.hard { margin-top: 8px; font-size: 12px; line-height: 1.5; color: #8F2A16; background: rgba(224,84,60,0.12); border: 1px solid rgba(224,84,60,0.55); border-radius: 10px; padding: 8px 11px; }
.edit-warn.hard strong { color: #5E1708; }
.edit-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.msg-system { align-self: center; max-width: 88%; text-align: center; font-size: 12px; color: var(--silver-faint); padding: 6px 12px; border: 1px dashed var(--panel-line); border-radius: 10px; }

.composer-wrap { border-top: 1px solid var(--panel-line); padding: 12px 16px 10px; }
.composer { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea {
  flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 11px 13px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--panel-line); color: var(--silver);
  font-family: var(--font-body); font-size: 14px; line-height: 1.45;
}
.composer textarea:focus { outline: none; border-color: var(--copper); }
.composer .btn { padding: 12px 22px; }
.composer-error { color: #B4432B; font-size: 12.5px; margin-bottom: 8px; }
.composer-note { font-size: 11px; color: var(--silver-faint); margin-top: 8px; line-height: 1.5; }

/* ---- Guardian: live off-platform warning + locked-account banner ---- */
.compose-warning { display: none; font-size: 12.5px; line-height: 1.5; border-radius: 10px; padding: 9px 12px; margin-bottom: 9px; }
.compose-warning.soft { display: block; color: var(--copper-lite); background: rgba(200,100,43,0.08); border: 1px solid rgba(200,100,43,0.28); }
.compose-warning.hard { display: flex; gap: 10px; align-items: flex-start; color: #8F2A16; background: rgba(224,84,60,0.13); border: 1px solid rgba(224,84,60,0.55); }
.compose-warning.hard strong { color: #5E1708; }
.compose-warning .warn-icon {
  flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 1px; background: #e0543c; color: #fff;
  font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center;
}
.composer .btn.risky { background: #b8402b; border-color: #b8402b; color: #fff; }
.composer .btn:disabled, .composer textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.flag-banner { font-size: 13px; line-height: 1.55; color: #8F2A16; background: rgba(224,84,60,0.12); border: 1px solid rgba(224,84,60,0.55); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.flag-banner strong { color: #5E1708; }
.flag-banner em { font-style: normal; color: #5E1708; }
.dash-flag-note { font-size: 13px; line-height: 1.55; color: #8F2A16; background: rgba(224,84,60,0.12); border: 1px solid rgba(224,84,60,0.55); border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; }
.dash-flag-note strong { color: #5E1708; }

@media (max-width: 760px) {
  .inbox-page { padding: 84px 10px 10px; }
  .inbox-shell { grid-template-columns: 1fr; height: calc(100vh - 150px); border-radius: 14px; }
  .inbox-thread { display: none; }
  .inbox-shell.show-thread .inbox-list { display: none; }
  .inbox-shell.show-thread .inbox-thread { display: flex; }
  .thread-back { display: block; }
  .msg { max-width: 88%; }
}

/* ---------- verified-badge checklist, linked accounts, dialog (freelancer dashboard) ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
@media (max-width: 600px) { .checklist { grid-template-columns: 1fr; } }
.checklist li { font-size: 13.5px; color: var(--silver-dim); display: flex; gap: 9px; align-items: baseline; }
.checklist li.ok { color: var(--silver); }
.checklist .tick { font-weight: 800; width: 16px; flex: none; text-align: center; }
.checklist li.ok .tick { color: #1F8A4C; }
.checklist li.todo .tick { color: var(--copper-lite); }
.link-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; padding: 6px 0; }
.link-row a { color: var(--copper-lite); word-break: break-all; text-decoration: underline; text-underline-offset: 3px; }
.lds-dialog { border: 1px solid var(--panel-line); border-radius: 18px; padding: 26px; background: var(--panel); color: var(--silver); width: min(520px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(60,40,20,0.45); }
.lds-dialog::backdrop { background: rgba(11,58,65,0.5); backdrop-filter: blur(3px); }
.lds-dialog h3 { font-size: 21px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.filter-select { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--panel-line); background: var(--panel); color: var(--silver-dim); font-size: 12.5px; font-family: var(--font-body); }
