/* ================================================
   PANEL-SPECIFIC STYLES
   ================================================ */

/* Profile Panel */
.profile-card { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius2); padding: 20px; }
.profile-hero { display: flex; gap: 16px; margin-bottom: 20px; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--grad-accent); color: var(--c-white); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; }
.profile-name { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.profile-handle { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.profile-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-pill { font-size: 12px; padding: 4px 10px; background: var(--glass-50); border: 1px solid var(--stroke); border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.profile-section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--stroke); }
.profile-section:last-of-type { border-bottom: none; }
.profile-section h4 { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.profile-section p { font-size: 14px; margin: 0; line-height: 1.5; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-rates { display: flex; align-items: center; gap: 10px; }
.rate-main { font-size: 16px; font-weight: 800; color: var(--c-espresso); }
.rate-sub { font-size: 13px; color: var(--muted); }
.profile-actions { display: flex; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--stroke); }

/* Task Detail Panel */
.task-detail-card { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius2); padding: 20px; }
.task-detail-info { margin-bottom: 16px; }
.task-detail-status { margin-bottom: 10px; }
.status-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.status-badge.open { background: var(--card2); color: var(--c-success); }
.status-badge.in_progress { background: var(--card2); color: var(--c-warning); }
.status-badge.completed { background: var(--card2); color: var(--c-espresso); }
.status-badge.scheduled { background: var(--card2); color: var(--c-success); }
.status-badge.pending_payment { background: var(--card2); color: var(--c-warning); }
.status-badge.cancelled { background: var(--card2); color: var(--muted); }
.task-detail-title { font-family: var(--font-display); font-size: 20px; font-weight: 650; margin: 0 0 12px; }
.task-detail-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.meta-row { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.meta-icon { font-size: 16px; }
.meta-value { color: var(--ink); }
.meta-value.price { font-weight: 800; color: var(--c-espresso); }
.task-detail-desc { margin-bottom: 16px; }
.task-detail-desc h4 { font-size: 13px; font-weight: 700; margin: 0 0 6px; color: var(--muted); }
.task-detail-desc p { font-size: 14px; margin: 0; line-height: 1.6; }
.task-detail-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.task-detail-photos img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; border: 1px solid var(--stroke); }

.panel-agreement { padding: 16px; }
.agreement-card { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius2); padding: 20px; }
.agreement-status { margin-bottom: 12px; }
.agreement-task { margin-bottom: 16px; }
.agreement-task h3 { font-family: var(--font-display); font-size: 18px; font-weight: 650; margin: 0 0 8px; }
.agreement-task .task-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-weight: 650; font-size: 13px; margin-bottom: 8px; }
.agreement-task .task-description { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.55; }

.agreement-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
@media (max-width: 640px) { .agreement-parties { grid-template-columns: 1fr; } }
.party { background: var(--glass-50); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 12px; position: relative; }
.party-label { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.party-info { display: flex; align-items: center; gap: 10px; }
.party-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-accent); color: var(--c-white); display: flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.party-avatar img { width: 100%; height: 100%; object-fit: cover; }
.party-name { font-size: 14px; font-weight: 800; }
.you-badge { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--card2); border: 1px solid var(--stroke); color: var(--c-espresso); }

.agreement-details { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; padding: 12px; background: var(--glass-50); border: 1px solid var(--stroke); border-radius: var(--radius); }
.agreement-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.payment-required-notice { width: 100%; padding: 14px; background: var(--card2); border: 1px solid var(--stroke); border-radius: var(--radius); }
.payment-required-notice p { margin: 0 0 10px; color: var(--ink); font-weight: 650; }
.payment-required-notice p:last-child { margin-bottom: 0; }
.payment-amount { font-size: 13px; color: var(--muted); }
.pending-notice, .waiting-notice { width: 100%; padding: 12px; background: var(--glass-50); border: 1px solid var(--stroke); border-radius: var(--radius); color: var(--muted); font-weight: 650; margin: 0; }

.address-share-section, .address-received-section { width: 100%; padding: 16px; background: var(--card2); border: 1px solid var(--stroke); border-radius: var(--radius); }
.address-share-section h5, .address-received-section h5 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.address-share-section .help-text { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.address-form { display: flex; gap: 10px; flex-wrap: wrap; }
.address-form .form-control { flex: 1; min-width: 200px; padding: 10px 14px; border: 1px solid var(--stroke); border-radius: var(--radius); font-size: 14px; background: var(--c-white); }
.address-form .form-control:focus { outline: none; border-color: var(--c-caramel); }
.address-shared-notice { margin: 10px 0 0; font-size: 13px; color: var(--c-success); }
.address-value { font-size: 15px; margin: 0; }

/* Task Chat */
.task-chat-section { margin-top: 20px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--c-white); overflow: hidden; }
.chat-header { padding: 12px 16px; background: var(--card2); border-bottom: 1px solid var(--stroke); display: flex; justify-content: space-between; align-items: center; }
.chat-header h4 { margin: 0; font-size: 14px; font-weight: 700; }
.chat-status { font-size: 12px; color: var(--muted); }
.chat-messages { height: 300px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--glass-50); }
.chat-loading, .chat-empty, .chat-error { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 14px; }
.chat-message { display: flex; flex-direction: column; max-width: 75%; }
.chat-message.me { align-self: flex-end; align-items: flex-end; }
.chat-message.them { align-self: flex-start; align-items: flex-start; }
.message-bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
/* Caramel + white was 3.6:1 — fail. Espresso + white is 8.5:1. */
.chat-message.me .message-bubble { background: var(--c-espresso); color: var(--c-white); border-bottom-right-radius: 4px; }
.chat-message.them .message-bubble { background: var(--c-white); color: var(--ink); border: 1px solid var(--stroke); border-bottom-left-radius: 4px; }
.message-time { font-size: 11px; color: var(--muted); margin-top: 4px; }
.chat-input-area { padding: 12px 16px; border-top: 1px solid var(--stroke); background: var(--c-white); }
#chat-form { display: flex; gap: 10px; align-items: flex-end; }
#chat-input { flex: 1; padding: 10px 14px; border: 1px solid var(--stroke); border-radius: var(--radius); font-size: 14px; resize: none; font-family: inherit; }
#chat-input:focus { outline: none; border-color: var(--c-caramel); }

/* Helper-profile chat input + send button. The existing `#chat-input-field`
   styles in 25-task-detail.css target a different ID (the task-detail page);
   the helper profile uses `#profile-chat-input`, so it had no styling at all. */
#profile-chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  max-height: 120px;
  background: var(--glass-50);
  color: var(--ink);
  line-height: 1.4;
}
#profile-chat-input:focus {
  outline: none;
  border-color: var(--c-espresso);
  background: var(--c-white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-espresso) 12%, transparent);
}
#profile-chat-input::placeholder { color: var(--muted); }

/* Chat invite hidden state utility (Bootstrap-style hidden attr already does
   this, but spell it out so future utility selectors don't accidentally re-show
   the form). */
.chat-invite[hidden] { display: none; }
.chat-invite {
  padding: 14px 16px;
  border-bottom: 1px solid var(--stroke);
  background: var(--glass-50);
}
.chat-invite .form-group { margin-bottom: 10px; }
.chat-invite .form-group:last-of-type { margin-bottom: 0; }

/* Empty-state shown when the viewer has no open tasks. The full invite form
   would be unusable (no task to invite to), so we replace it with a friendly
   nudge to create one. */
.chat-invite--empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.chat-invite-empty-text {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  flex: 1 1 auto;
  min-width: 200px;
}
.chat-invite--empty .btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* Task Detail - Owner View */
.task-owner-section { border-top: 1px solid var(--stroke); padding-top: 16px; margin-top: 16px; }
.owner-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.interested-helpers h4 { font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.helpers-list { display: flex; flex-direction: column; gap: 10px; }
.helper-request { display: flex; justify-content: space-between; align-items: center; padding: 14px; background: var(--glass-50); border: 1px solid var(--stroke); border-radius: var(--radius); transition: all 0.15s; }
.helper-request:hover { border-color: var(--c-caramel); }
.helper-info { flex: 1; }
.helper-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-accent); color: var(--c-white); display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; }
.helper-avatar img { width: 100%; height: 100%; object-fit: cover; }
.helper-details { display: flex; flex-direction: column; }
.helper-name { font-size: 14px; font-weight: 700; }
.helper-vouches { font-size: 12px; color: var(--c-espresso); }
.helper-message { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.helper-actions { display: flex; gap: 8px; }
.no-helpers { font-size: 13px; color: var(--muted); margin: 0; }

/* Task Detail - Helper View */
.task-helper-section { border-top: 1px solid var(--stroke); padding-top: 16px; margin-top: 16px; }
.poster-info h4 { font-size: 13px; font-weight: 700; margin: 0 0 8px; color: var(--muted); }
.poster-card { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px; background: var(--glass-50); border: 1px solid var(--stroke); border-radius: var(--radius); }
.poster-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-accent); color: var(--c-white); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; overflow: hidden; }
.poster-avatar img { width: 100%; height: 100%; object-fit: cover; }
.poster-name { font-size: 14px; font-weight: 700; }
.request-section h4 { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.request-form textarea { width: 100%; padding: 12px; border: 1px solid var(--stroke); border-radius: 12px; font-size: 14px; font-family: inherit; resize: vertical; margin-bottom: 12px; background: var(--glass); color: var(--ink); outline: none; }
.request-form textarea:focus { border-color: var(--c-caramel); box-shadow: 0 0 0 3px var(--stroke-accent); }
.already-requested { text-align: center; padding: 20px; background: var(--card2); border-radius: var(--radius); }
.already-requested p { margin: 0 0 12px; color: var(--c-success); font-weight: 700; }
.task-in-progress, .task-completed { padding: 16px; background: var(--glass-50); border: 1px solid var(--stroke); border-radius: var(--radius); text-align: center; }
.task-in-progress p, .task-completed p { margin: 0; color: var(--muted); font-size: 14px; }

/* Task Form */
.budget-row { display: flex; gap: 12px; }
.budget-row > .form-group{flex:1; margin-bottom:0}
.time-range { display: flex; align-items: center; gap: 10px; }
.time-range input { width: 120px; }
.days-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.day-check { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--glass-50); border: 1px solid var(--stroke); border-radius: 10px; cursor: pointer; font-size: 13px; }
.day-check:has(input:checked) { background: var(--card2); border-color: var(--c-caramel); }
.day-check input { display: none; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--c-caramel); }
.preference-options { display: flex; gap: 10px; margin-top: 8px; }
.radio-card { flex: 1; display: block; padding: 12px; background: var(--glass-50); border: 1px solid var(--stroke); border-radius: 12px; cursor: pointer; transition: all 0.15s; }
.radio-card:has(input:checked) { background: var(--stroke-accent); border-color: var(--c-caramel); }
.radio-card input { display: none; }
.radio-card .card-content { display: flex; flex-direction: column; gap: 2px; }
.radio-card strong { font-size: 13px; font-weight: 700; }
.radio-card span { font-size: 12px; color: var(--muted); }

/* Wallet Panel */
.panel-wallet { padding: 16px; }
.wallet-balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.balance-card { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 16px; }
.balance-card.primary { background: linear-gradient(145deg, var(--card2), var(--card2)); border-color: var(--c-caramel); }
.balance-card.credits { background: var(--card2); }
.balance-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.balance-amount { font-size: 24px; font-weight: 900; color: var(--c-espresso); margin-bottom: 8px; }
.balance-hint { font-size: 11px; color: var(--muted); }
.balance-actions { margin-top: 8px; }
.wallet-section { margin-bottom: 20px; }
.wallet-section h3 { font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.transaction-list { display: flex; flex-direction: column; gap: 8px; }
.transaction-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--glass-50); border: 1px solid var(--stroke); border-radius: var(--radius); }
.transaction-icon { font-size: 20px; }
.transaction-info { flex: 1; }
.transaction-desc { font-size: 13px; font-weight: 600; }
.transaction-date { font-size: 11px; color: var(--muted); }
.transaction-amount { font-size: 14px; font-weight: 800; }
.transaction-amount.positive { color: var(--c-success); }
.transaction-amount.negative { color: var(--c-espresso); }
.section-footer { margin-top: 12px; }
.panel-empty-sm { padding: 20px; text-align: center; color: var(--muted); }
.panel-empty-sm p { margin: 0; font-size: 13px; }
.quick-actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.quick-action { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px; background: var(--glass-50); border: 1px solid var(--stroke); border-radius: var(--radius); cursor: pointer; transition: all 0.15s; }
.quick-action:hover { border-color: var(--c-caramel); background: var(--glass-hover); }
.qa-icon { font-size: 24px; }
.qa-label { font-size: 12px; font-weight: 700; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.stat-box { background: var(--glass-50); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 14px; text-align: center; }
.stat-box .stat-value { font-size: 18px; font-weight: 900; color: var(--c-espresso); }
.stat-box .stat-label { font-size: 11px; color: var(--muted); font-weight: 650; }

/* Edit Profile Panel */
.photo-upload { display: flex; align-items: center; gap: 16px; }
.current-photo { width: 80px; height: 80px; border-radius: 50%; background: var(--grad-accent); color: var(--c-white); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; overflow: hidden; }
.current-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-actions { display: flex; gap: 8px; }
.verification-status { display: flex; flex-direction: column; gap: 10px; }
.verification-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--glass-50); border: 1px solid var(--stroke); border-radius: var(--radius); }
.verification-item.verified { background: var(--card2); border-color: var(--card2); }
.verification-icon { font-size: 16px; }
.verification-label { flex: 1; font-size: 13px; font-weight: 600; }

/* Skills Panel */
.rate-inputs { display: flex; gap: 12px; }
.input-with-prefix { display: flex; align-items: center; border: 1px solid var(--stroke); border-radius: 12px; background: var(--glass); overflow: hidden; }
.input-with-prefix .prefix { padding: 10px 12px; background: var(--stroke-light); font-weight: 700; color: var(--muted); }
.input-with-prefix input { border: none; padding: 10px 12px; flex: 1; background: transparent; outline: none; }
.checkbox-item { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.checkbox-item input { width: 16px; height: 16px; accent-color: var(--c-caramel); }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; border: 1px solid var(--stroke); border-radius: 12px; background: var(--glass); min-height: 44px; }
.tag-input input { border: none; background: transparent; outline: none; flex: 1; min-width: 100px; font-size: 13px; }
.tag-input .tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: var(--card2); border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag-input .tag button { border: none; background: transparent; cursor: pointer; font-size: 14px; color: var(--muted); padding: 0 2px; }

/* Job Card */
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius2); padding: 16px; }
.job-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.job-details { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; padding: 12px; background: var(--glass-50); border-radius: var(--radius); }
.job-detail { display: flex; flex-direction: column; gap: 2px; }
.detail-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.detail-value { font-size: 14px; font-weight: 700; }
.job-description { margin-bottom: 12px; }
.job-description p { font-size: 13px; margin: 4px 0 0; line-height: 1.5; }
.job-address { margin-bottom: 12px; padding: 12px; background: var(--card2); border-radius: var(--radius); }
.job-address p { font-size: 14px; margin: 4px 0 8px; }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Inbox Panel */
.inbox-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab-btn { padding: 8px 14px; border: 1px solid var(--stroke); border-radius: 999px; background: var(--glass-50); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.tab-btn:hover { border-color: var(--c-caramel); }
.tab-btn.active { background: var(--grad-accent); color: var(--c-white); border-color: transparent; }
.message-list { display: flex; flex-direction: column; gap: 8px; }
.message-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--glass-50); border: 1px solid var(--stroke); border-radius: var(--radius); cursor: pointer; transition: all 0.15s; }
.message-item:hover { border-color: var(--c-caramel); }
.message-item.unread { background: var(--card2); border-color: var(--card2); }
.message-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-accent); color: var(--c-white); display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.message-avatar .system-icon { font-size: 20px; }
.message-content { flex: 1; min-width: 0; }
.message-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.message-sender { font-size: 14px; font-weight: 700; }
.message-time { font-size: 11px; color: var(--muted); }
.message-subject { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.message-preview { font-size: 12px; color: var(--muted); line-height: 1.4; }
.message-task-link { margin-top: 6px; }
.task-badge { display: inline-block; padding: 3px 8px; background: var(--stroke-accent); border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--c-espresso); }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-caramel); flex-shrink: 0; }
.load-more { text-align: center; padding: 16px 0; }

/* Conversation thread */
.chat{display:flex; flex-direction:column; gap: 12px;}
.chat-log{display:flex; flex-direction:column; gap: 10px; padding: 14px; border: 1px solid var(--stroke); border-radius: var(--radius2); background: var(--glass);}
.chat-row{display:flex; justify-content:flex-start;}
.chat-row.me{justify-content:flex-end;}
.chat-bubble{max-width: min(560px, 92%); border: 1px solid var(--stroke); background: var(--glass-50); border-radius: 14px; padding: 10px 12px;}
.chat-bubble.me{background: var(--card2); border-color: var(--stroke-accent);}
.chat-text{font-size: 13px; font-weight: 650; line-height: 1.45; color: var(--ink); white-space: pre-wrap;}
.chat-meta{margin-top: 6px; font-size: 11px; color: var(--muted); font-weight: 650;}
.chat-compose{display:flex; gap: 10px; align-items:center;}
.chat-input{flex:1; padding: 10px 12px; border: 1px solid var(--stroke); border-radius: 12px; background: var(--glass);}

/* Earnings Panel */
.panel-earnings { padding: 16px; }
.panel-filters select { padding: 8px 12px; border: 1px solid var(--stroke); border-radius: 10px; background: var(--glass); font-size: 13px; font-weight: 600; }
.earnings-summary { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.earnings-total { flex: 1; min-width: 180px; background: linear-gradient(145deg, var(--card2), var(--card2)); border: 1px solid var(--c-caramel); border-radius: var(--radius2); padding: 20px; text-align: center; }
.earnings-amount { font-size: 32px; font-weight: 900; color: var(--c-espresso); }
.earnings-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.earnings-change { font-size: 12px; margin-top: 6px; font-weight: 700; }
.earnings-change.positive { color: var(--c-success); }
.earnings-change.negative { color: var(--c-error); }
.earnings-breakdown { flex: 1; min-width: 180px; background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius2); padding: 16px; }
.breakdown-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--stroke); }
.breakdown-item:last-child { border-bottom: none; }
.breakdown-label { font-size: 13px; color: var(--muted); }
.breakdown-value { font-size: 14px; font-weight: 700; }
.earnings-chart { margin-bottom: 20px; }
.earnings-chart h3 { font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.chart-container { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 16px; }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.chart-bar-wrapper { flex: 1; display: flex; flex-direction: column; align-items: center; }
.chart-bar { width: 100%; background: linear-gradient(180deg, var(--c-caramel), var(--stroke-accent)); border-radius: 4px 4px 0 0; min-height: 4px; }
.chart-label { font-size: 10px; color: var(--muted); margin-top: 6px; }
.earnings-by-category { margin-bottom: 20px; }
.earnings-by-category h3 { font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.category-list { display: flex; flex-direction: column; gap: 10px; }
.category-item { display: flex; align-items: center; gap: 12px; }
.category-info { min-width: 100px; }
.category-name { font-size: 13px; font-weight: 600; display: block; }
.category-jobs { font-size: 11px; color: var(--muted); }
.category-bar { flex: 1; height: 8px; background: var(--stroke-light); border-radius: 4px; overflow: hidden; }
.category-fill { height: 100%; background: linear-gradient(90deg, var(--c-caramel), var(--accent-light)); border-radius: 4px; }
.category-amount { font-size: 14px; font-weight: 700; min-width: 70px; text-align: right; }
.earnings-jobs h3 { font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.job-earnings-list { display: flex; flex-direction: column; gap: 8px; }
.job-earning-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: var(--glass-50); border: 1px solid var(--stroke); border-radius: var(--radius); }
.job-earning-info { flex: 1; }
.job-earning-title { font-size: 14px; font-weight: 700; }
.job-earning-meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; }
.job-earning-amount { font-size: 14px; font-weight: 800; color: var(--c-success); }
.tip-badge { display: inline-block; padding: 2px 6px; background: var(--card2); border-radius: 4px; font-size: 11px; color: var(--c-warning); margin-left: 6px; }

/* Vouches Panel */
.panel-vouches { padding: 16px; }
.vouch-summary { display: flex; gap: 12px; margin-bottom: 20px; }
.vouch-stat { flex: 1; background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 16px; text-align: center; }
.vouch-stat.received { background: var(--card2); border-color: var(--card2); }
.vouch-stat.given { background: var(--card2); border-color: var(--stroke-accent); }
.vouch-stat-num { font-size: 28px; font-weight: 900; color: var(--c-espresso); }
.vouch-stat-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.vouches-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.vouch-list { display: flex; flex-direction: column; gap: 10px; }
.vouch-item, .vouch-request { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 14px; }
.vouch-from { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.vouch-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-accent); color: var(--c-white); display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; cursor: pointer; }
.vouch-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vouch-info { flex: 1; }
.vouch-name { font-size: 14px; font-weight: 700; }
.vouch-date { font-size: 12px; color: var(--muted); }
.vouch-message { font-size: 13px; font-style: italic; color: var(--ink); margin-bottom: 8px; padding: 10px; background: var(--glass-50); border-radius: 8px; }
.vouch-context { font-size: 12px; color: var(--muted); }
.vouch-request-actions { display: flex; gap: 8px; margin-top: 10px; }
.vouch-info-section { margin-top: 24px; padding: 16px; background: var(--glass-50); border: 1px solid var(--stroke); border-radius: var(--radius); }
.vouch-info-section h3 { font-size: 14px; font-weight: 800; margin: 0 0 10px; }
.vouch-info-text p { font-size: 13px; margin: 0 0 8px; line-height: 1.5; }
.vouch-info-text p:last-child { margin-bottom: 0; }

/* Neighborhood page */
.hood-cover{
  width: 100%;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}
.hood-cover-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tag-input.tag-input-singleline{ cursor:text; }
.tag-input.tag-input-singleline .tag-input-field{
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

.email-setup-container{ max-width: 600px; margin: 2rem auto; padding: 2rem; }
.email-setup-card{ text-align: center; padding: 3rem 2rem; background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius2); }
.email-setup-icon{ font-size: 4rem; margin-bottom: 1rem; }
.email-setup-title{ font-size: 1.5rem; margin-bottom: 0.5rem; font-family: var(--font-display); }
.email-setup-subtext{ color: var(--muted); margin-bottom: 1.5rem; }
.email-setup-address{ background: var(--glass-50); padding: 1rem; border-radius: 0.5rem; margin-bottom: 1.5rem; }
.email-setup-address code{ font-size: 1.25rem; color: var(--c-caramel); }
.email-setup-note{ color: var(--muted); font-size: 0.875rem; }
.email-setup-actions{ margin-top: 2rem; }
.email-setup-btn{ display: inline-flex; align-items: center; gap: 0.5rem; }
.email-setup-footnote{ color: var(--muted); font-size: 0.75rem; margin-top: 1.5rem; }

/* Empty state small variant */
.empty-sm { padding: 20px; text-align: center; color: var(--muted); }
.empty-sm p { margin: 0; font-size: 13px; }

/* Helper Profile Panel */
.helper-profile-card {
  position: relative; /* anchor for .favorite-btn */
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--c-espresso) 6%, transparent);
}

/* Heart "favorite this helper" toggle, anchored to the top-right of the
   profile card. Outline when not saved, filled coral when saved. */
.favorite-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  z-index: 1;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.favorite-btn:hover {
  transform: scale(1.06);
  border-color: var(--c-espresso);
  color: var(--c-espresso);
}
.favorite-btn:active { transform: scale(0.94); }
.favorite-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-espresso) 25%, transparent);
}
.favorite-btn:disabled { opacity: 0.6; cursor: progress; }
.favorite-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: fill 0.15s, stroke 0.15s;
}
.favorite-btn[data-saved="true"] {
  background: color-mix(in srgb, var(--c-error) 12%, var(--card));
  border-color: var(--c-error);
  color: var(--c-error);
}
.favorite-btn[data-saved="true"] svg {
  fill: var(--c-error);
  stroke: var(--c-error);
}
@keyframes favorite-pulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.favorite-btn.pulsing { animation: favorite-pulse 0.32s ease; }
.helper-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.helper-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-caramel), var(--c-espresso));
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--c-espresso) 18%, transparent);
}
.helper-avatar img { width: 100%; height: 100%; object-fit: cover; }
.helper-info { flex: 1; min-width: 0; }
.helper-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}
.helper-name { font-size: 22px; font-weight: 700; margin: 0; color: var(--ink); }
.helper-edit-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-espresso);
  padding: 4px 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--glass);
  text-decoration: none;
  flex-shrink: 0;
}
.helper-edit-link:hover { background: var(--card2); border-color: var(--c-espresso); }
.helper-handle { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.helper-location {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.helper-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  align-items: center;
}
.helper-stat {
  font-size: 13px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
}
.helper-stat strong { font-weight: 700; font-size: 15px; }
.helper-stat + .helper-stat {
  border-left: 1px solid var(--stroke);
}
/* var(--accent)=caramel ~3.4:1 on light bg. Espresso = 8.5:1. */
.helper-stat.accent { color: var(--c-espresso); font-weight: 600; }
.helper-stat.accent span[aria-hidden] { color: var(--c-caramel); }

.helper-section { margin-bottom: 20px; }
.helper-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.helper-section p { font-size: 14px; color: var(--ink); margin: 0; line-height: 1.55; }

.helper-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
  flex-wrap: wrap;
}
.helper-actions .btn { min-width: 140px; }

.quick-offer-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
}
.quick-offer-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.quick-offer-box {
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
}
.quick-offer-rate {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--glass);
  border-radius: 8px;
  border: 1px solid var(--stroke);
}

.skill-tag {
  padding: 5px 12px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-espresso);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Form utilities */
.form-group { margin-bottom: 10px; }
.form-label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.form-label-hint { color: var(--muted); font-weight: 400; }
.form-input { width: 100%; padding: 8px 10px; border: 1px solid var(--stroke); border-radius: 6px; font-size: 14px; background: var(--glass); }
.form-textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--stroke); border-radius: 6px; font-size: 13px; resize: none; background: var(--glass); }
.form-select { width: 100%; padding: 8px 10px; border: 1px solid var(--stroke); border-radius: 6px; font-size: 13px; background: var(--glass); }

/* SEO Sites directory */
.seo-sites {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.7rem;
}
.seo-sites li {
  color: var(--ink);
  line-height: 1.45;
}
.seo-sites a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.seo-sites span {
  color: var(--muted);
}

/* Spacing utilities */
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 12px; }
.mb-lg { margin-bottom: 16px; }
.mt-sm { margin-top: 8px; }
.mt-lg { margin-top: 16px; }
.p-md { padding: 16px; }
.cursor-pointer { cursor: pointer; }
.flex-1 { flex: 1; }
.icon-sm { width: 14px; height: 14px; }

/* Circle colors */
.circle-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--c-white); background: var(--accent); }

/* Neighbors Panel */
.panel-neighbors { padding: 16px; }

.neighbor-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.neighbor-filters select {
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--glass);
  font-size: 13px;
  font-weight: 600;
}

.neighbors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.neighbor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius2);
  cursor: pointer;
  transition: all 0.15s;
}
.neighbor-card:hover {
  border-color: var(--c-caramel);
  background: var(--glass-hover);
}

.neighbor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.neighbor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-success);
  border: 2px solid var(--c-white);
}

.neighbor-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  min-width: 0;
  width: 100%;
}

.neighbor-name {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.neighbor-rating {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-espresso);
}

.neighbor-vouches {
  font-size: 12px;
  color: var(--muted);
}

.neighbor-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 2px;
}

.skill-tag-sm {
  padding: 2px 8px;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.neighbor-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.vouched-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-success);
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: 999px;
}

@media (max-width: 640px) {
  .neighbors-grid {
    grid-template-columns: 1fr;
  }
  .neighbor-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .neighbor-info {
    align-items: flex-start;
    text-align: left;
  }
  .neighbor-skills {
    justify-content: flex-start;
  }
  .neighbor-actions {
    margin-top: 0;
    margin-left: auto;
    flex-direction: column;
  }
}

/* Downloads Page */
.downloads-hero {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius2);
  background: linear-gradient(145deg, var(--glass), var(--glass-50));
  box-shadow: var(--shadow-sm);
}
.downloads-copy h3 { margin: 0; font-family: var(--font-display); font-size: 24px; }
.downloads-copy p { margin: 4px 0 0; color: var(--muted); font-weight: 650; }
.downloads-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.downloads-actions .btn-ghost { border: 1px solid var(--stroke); }
.downloads-meta-code {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--glass-50);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--c-espresso);
  word-break: break-all;
}
.downloads-empty {
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius2);
  background: var(--glass);
}
.downloads-empty h3 { margin: 0; font-family: var(--font-display); }

/* Conversations Panel */
.conversations-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filter-tabs { display: flex; gap: 6px; }
.search-box input {
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--glass);
  font-size: 13px;
  font-weight: 600;
  outline: none;
}
.search-box input:focus { border-color: var(--c-caramel); box-shadow: 0 0 0 3px var(--stroke-accent); }
.conversations-list { display: flex; flex-direction: column; gap: 8px; }
.conversation-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}
.conversation-item:hover { border-color: var(--c-caramel); }
.conversation-item.unread { background: var(--card2); }
.conversation-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.conversation-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conversation-info { flex: 1; min-width: 0; }
.conversation-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.conversation-name { font-size: 14px; font-weight: 700; }
.conversation-time { font-size: 11px; color: var(--muted); }
.conversation-preview { font-size: 12px; color: var(--muted); line-height: 1.4; }
.conversation-task { margin-top: 6px; }
.no-messages { font-style: italic; }
.unread-badge {
  padding: 2px 8px;
  background: var(--c-caramel);
  color: var(--c-white);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Security Panel */
.session-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.session-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}
.session-item.current { border-color: var(--stroke-accent); background: var(--card2); }
.session-icon { font-size: 20px; }
.session-info { flex: 1; min-width: 0; }
.session-device { font-size: 14px; font-weight: 700; }
.session-details { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.current-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-espresso);
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  margin-top: 4px;
}
.login-history { display: flex; flex-direction: column; gap: 6px; }
.login-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}
.login-item.failed { border-color: color-mix(in srgb, var(--c-error) 40%, var(--stroke)); }
.login-status { font-size: 16px; font-weight: 700; flex-shrink: 0; }
.login-item.success .login-status { color: var(--c-success); }
.login-item.failed .login-status { color: var(--c-error); }
.login-info { flex: 1; min-width: 0; }
.login-time { font-size: 13px; font-weight: 600; }
.login-details { font-size: 12px; color: var(--muted); display: flex; gap: 12px; }
.failed-reason { font-size: 11px; color: var(--c-error); font-weight: 600; flex-shrink: 0; }
.security-alert {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--c-error) 40%, var(--stroke));
  background: color-mix(in srgb, var(--c-error) 8%, transparent);
  font-size: 13px;
}
.security-alert strong { display: block; margin-bottom: 4px; }
.security-alert p { margin: 0; color: var(--ink); font-weight: 600; }
.app-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}
.app-icon { font-size: 20px; }
.app-info { flex: 1; min-width: 0; }
.app-name { font-size: 14px; font-weight: 700; }
.app-permissions { font-size: 12px; color: var(--muted); }
.app-connected { font-size: 11px; color: var(--muted); margin-top: 2px; }
.danger-zone { border-color: color-mix(in srgb, var(--c-error) 30%, var(--stroke)); }
.danger-zone h3 { color: var(--c-error); }
.danger-actions { display: flex; flex-direction: column; gap: 12px; }
.danger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}
.danger-info { flex: 1; }
.danger-info strong { font-size: 14px; }
.danger-info p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

/* Payouts Panel */
.panel-payouts { padding: 16px; }
.payout-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: var(--card2);
  border: 1px solid var(--stroke-accent);
  border-radius: var(--radius2);
  margin-bottom: 20px;
}
.balance-info .balance-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.balance-info .balance-amount { font-size: 28px; font-weight: 900; color: var(--c-espresso); }
.balance-info .balance-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pending-payout-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.pending-icon { font-size: 24px; }
.pending-info { flex: 1; }
.pending-title { font-size: 14px; font-weight: 700; }
.pending-amount { font-size: 16px; font-weight: 800; color: var(--c-espresso); }
.pending-details { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.pending-status {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--card2);
  border-radius: 999px;
  color: var(--c-warning);
}
.payout-methods { margin-bottom: 20px; }
.payout-methods h3 { font-size: 16px; font-weight: 800; margin: 0 0 12px; }
.method-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}
.method-card.default { border-color: var(--stroke-accent); background: var(--card2); }
.method-icon { font-size: 20px; }
.method-info { flex: 1; min-width: 0; }
.method-name { font-size: 14px; font-weight: 700; }
.method-details { font-size: 12px; color: var(--muted); }
.default-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-espresso);
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  margin-top: 2px;
}
.method-actions { display: flex; gap: 6px; flex-shrink: 0; }
.payout-history { margin-bottom: 20px; }
.payout-history h3 { font-size: 16px; font-weight: 800; margin: 0 0 12px; }
.history-table { border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; }
.table-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 8px;
  padding: 10px 12px;
  background: var(--card2);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  border-top: 1px solid var(--stroke);
}
.payout-settings { margin-bottom: 20px; }
.payout-settings h3 { font-size: 16px; font-weight: 800; margin: 0 0 12px; }

/* My Neighborhood Panel */
.panel-neighborhood { padding: 16px; }
.neighborhood-card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius2);
  padding: 16px;
  margin-bottom: 20px;
}
.neighborhood-card.primary { border-color: var(--stroke-accent); }
.hood-header { margin-bottom: 12px; }
.hood-info h3.hood-name { font-family: var(--font-display); font-size: 20px; margin: 0 0 4px; }
.hood-location { font-size: 13px; color: var(--muted); font-weight: 600; }
.hood-stats { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.hood-actions { display: flex; gap: 8px; }
.neighborhood-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--stroke);
}
.neighborhood-section:last-child { border-bottom: none; padding-bottom: 0; }
.neighborhood-section h3 { font-size: 16px; font-weight: 800; margin: 0 0 12px; }
.section-hint { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.leaders-list { display: flex; flex-direction: column; gap: 8px; }
.leader-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}
.leader-item:hover { border-color: var(--c-caramel); }
.leader-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.leader-avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader-role { font-size: 12px; color: var(--muted); }
.activity-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.activity-stat {
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.activity-stat .stat-value { font-size: 20px; font-weight: 900; color: var(--c-espresso); }
.activity-stat .stat-label { font-size: 11px; color: var(--muted); font-weight: 650; }
.top-helpers-list { display: flex; flex-direction: column; gap: 8px; }
.top-helper-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}
.top-helper-item:hover { border-color: var(--c-caramel); }
.top-helper-item .rank {
  font-size: 16px;
  font-weight: 900;
  color: var(--c-caramel);
  min-width: 24px;
  text-align: center;
}
.top-helper-item .helper-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.top-helper-item .helper-avatar img { width: 100%; height: 100%; object-fit: cover; }
.top-helper-item .helper-info { flex: 1; }
.top-helper-item .helper-name { font-size: 14px; font-weight: 700; }
.top-helper-item .helper-jobs { font-size: 12px; color: var(--muted); }
.top-helper-item .helper-rating { font-size: 13px; font-weight: 700; color: var(--c-espresso); flex-shrink: 0; }
.other-hoods-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.other-hood-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}
.other-hood-name { font-size: 14px; font-weight: 700; }
.other-hood-location { font-size: 12px; color: var(--muted); }

/* Transactions Panel */
.panel-transactions { padding: 16px; }
.panel-actions { display: flex; gap: 8px; }
.transaction-filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-group { }
.filter-group select, .filter-group input {
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--glass);
  font-size: 13px;
  font-weight: 600;
  outline: none;
}
.filter-group input:focus { border-color: var(--c-caramel); box-shadow: 0 0 0 3px var(--stroke-accent); }
.transaction-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.summary-item {
  padding: 14px;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  text-align: center;
}
.summary-label { font-size: 12px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 4px; }
.summary-value { font-size: 18px; font-weight: 900; }
.summary-value.positive, .summary-item.positive .summary-value { color: var(--c-success); }
.summary-value.negative, .summary-item.negative .summary-value { color: var(--c-error); }
.summary-item.net .summary-value { color: var(--c-espresso); }
.transaction-list.detailed { display: flex; flex-direction: column; gap: 16px; }
.transaction-date-group { }
.date-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--stroke);
}
.transaction-date-group .transaction-item { margin-bottom: 6px; }
.transaction-meta { font-size: 11px; color: var(--muted); display: flex; gap: 8px; margin-top: 2px; }
.transaction-type { text-transform: capitalize; }
.transaction-task { }
.transaction-user { }
.transaction-balance { font-size: 11px; color: var(--muted); flex-shrink: 0; text-align: right; }

/* Job History & Task History (shared) */
.panel-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.panel-stats .stat-item { font-size: 12px; font-weight: 700; color: var(--muted); }
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}
.history-date { font-size: 12px; color: var(--muted); font-weight: 600; flex-shrink: 0; min-width: 80px; }
.history-content { flex: 1; min-width: 0; }
.history-title { font-size: 14px; font-weight: 700; }
.history-meta { display: flex; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.history-category {
  padding: 1px 6px;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.history-client { font-weight: 600; }
.history-helper { font-size: 12px; color: var(--muted); margin-top: 4px; }
.history-status { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.history-review { margin-top: 6px; font-size: 12px; }
.review-stars { color: var(--c-caramel); font-weight: 700; }
.review-excerpt { color: var(--muted); font-style: italic; margin-left: 6px; }
.history-earnings, .history-price { font-size: 14px; font-weight: 800; color: var(--c-success); flex-shrink: 0; }
.history-actions { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 640px) {
  .history-item { flex-wrap: wrap; }
  .history-date { min-width: auto; }
  .history-actions { width: 100%; }
}

/* Saved Helpers Panel */
.helpers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.helper-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius2);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  color: inherit;
}
.helper-card:hover { border-color: var(--c-caramel); background: var(--glass-hover); }
.helper-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}
.helper-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.helper-card-info { text-align: center; width: 100%; }
.helper-card-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.helper-card-rating { font-size: 13px; margin-bottom: 4px; }
.helper-card-rating .stars { color: var(--c-caramel); font-weight: 700; }
.helper-card-rating .review-count { color: var(--muted); font-size: 12px; }
.helper-card-stats { font-size: 12px; color: var(--muted); display: flex; justify-content: center; gap: 10px; }
.helper-card-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 6px; }
.skill-more { font-size: 11px; color: var(--muted); font-weight: 600; padding: 2px 6px; }
.helper-card-actions { display: flex; gap: 6px; margin-top: auto; }

/* Find Helpers Panel */
.helper-card .helper-meta { display: flex; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; justify-content: center; }
.helper-card .helper-rating { color: var(--c-espresso); font-weight: 700; }
.helper-card .helper-jobs { }
.helper-card .helper-rate { font-weight: 700; color: var(--c-espresso); }
.helper-card .helper-skills { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }

/* Announcements Panel */
.announcements-list { display: flex; flex-direction: column; gap: 12px; }
.announcement-card {
  padding: 16px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius2);
  position: relative;
}
.announcement-card.priority-high { border-color: var(--c-warning); }
.announcement-card.priority-urgent { border-color: var(--c-error); }
.announcement-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.announcement-type { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.announcement-type .type-label { text-transform: uppercase; }
.announcement-date { font-size: 12px; color: var(--muted); }
.announcement-title { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.announcement-content { font-size: 13px; line-height: 1.6; color: var(--ink); font-weight: 600; margin-bottom: 10px; }
.announcement-actions { display: flex; gap: 8px; }
.dismiss-btn { position: absolute; top: 12px; right: 12px; }

/* Availability Panel */
.form-section .form-group:has(.toggle-switch) {
  display: flex;
  align-items: center;
  gap: 12px;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  transition: background .2s, border-color .2s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--c-white, #fff);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform .2s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--c-caramel);
  border-color: var(--c-caramel);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}
.toggle-switch:hover .toggle-slider { border-color: var(--stroke-accent); }
.toggle-switch input:focus-visible + .toggle-slider {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-caramel) 30%, transparent);
}

.status-toggle { display: flex; flex-direction: column; gap: 8px; }
.toggle-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}
.toggle-option:hover { border-color: var(--c-caramel); }
.toggle-option:has(input:checked) { background: var(--card2); border-color: var(--stroke-accent); }
.toggle-option input { width: 16px; height: 16px; accent-color: var(--c-caramel); }
.toggle-label { font-size: 14px; font-weight: 700; }
.toggle-label.available { color: var(--c-success); }
.toggle-label.busy { color: var(--c-warning); }
.toggle-label.away { color: var(--muted); }
.schedule-grid { display: flex; flex-direction: column; gap: 8px; }
.schedule-day {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}
.day-label { font-size: 13px; font-weight: 700; min-width: 36px; }
.day-slots { display: flex; gap: 8px; flex-wrap: wrap; }
.day-slots .slot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.day-slots .slot:has(input:checked) { background: var(--card2); border-color: var(--stroke-accent); }
.day-slots .slot input { width: 14px; height: 14px; accent-color: var(--c-caramel); }
.neighborhood-select { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }

/* Privacy Panel - Blocked Users */
.blocked-users { margin-top: 4px; }
.blocked-users > label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.blocked-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.blocked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--glass-50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}
.blocked-user { display: flex; align-items: center; gap: 10px; }
.blocked-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.blocked-avatar img { width: 100%; height: 100%; object-fit: cover; }
.blocked-name { font-size: 13px; font-weight: 700; }
