/* ============================================================
   FixHive — Shared Styles for Auth & App Pages
   Mirrors the design system from index.html
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #1A73E8;
  --primary-dark:   #1557B0;
  --primary-light:  #E8F0FE;
  --secondary:      #FF6D00;
  --success:        #2E7D32;
  --success-light:  #E8F5E9;
  --danger:         #D93025;
  --danger-light:   #FCE8E6;
  --warning:        #F9AB00;
  --warning-light:  #FEF7E0;
  --bg:             #F5F7FA;
  --surface:        #FFFFFF;
  --text:           #1A1A2E;
  --text-secondary: #5F6368;
  --text-muted:     #9AA0A6;
  --border:         #DADCE0;
  --radius:         12px;
  --radius-lg:      20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

[data-lucide] { display: block; stroke-width: 1.75; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
}

.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-links a:hover { color: var(--primary); text-decoration: none; }

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--primary-dark); text-decoration: none !important; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.nav-user .nav-user-name { font-weight: 600; color: var(--text); }

/* ── PAGE LAYOUT ── */
.page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 5% 80px;
}

.page-wrap-narrow { max-width: 480px; }

.page-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ── CARD ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}

.card + .card { margin-top: 20px; }

.card-section + .card-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.card-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* ── FORMS ── */
.field {
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.input, .textarea, .select {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.input.error, .textarea.error, .select.error {
  border-color: var(--danger);
}

.textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.input-group {
  position: relative;
}

.input-group .input-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}

.input-group .input-suffix:hover { color: var(--primary); }

.help-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.error-text {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,115,232,0.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
}

.btn:disabled, .btn.is-loading {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── ROLE TOGGLE ── */
.role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg);
  padding: 5px;
  border-radius: var(--radius);
  margin-bottom: 28px;
}

.role-toggle button {
  background: transparent;
  border: none;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.role-toggle button.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ── CATEGORY GRID ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.category-chip {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.category-chip:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.category-chip .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-chip span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.category-chip.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.category-chip.selected .icon-wrap {
  background: var(--primary);
  color: #fff;
}

.category-chip.multi-selected {
  position: relative;
}

.category-chip.multi-selected::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
}

/* ── CHECKBOX ── */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  margin-top: 1px;
  position: relative;
  transition: all 0.15s;
}

.checkbox-row input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-row label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

/* ── ALERTS ── */
.alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.alert-error {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(217,48,37,0.2);
}

.alert-success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(46,125,50,0.2);
}

.alert-warning {
  background: var(--warning-light);
  color: #B06000;
  border: 1px solid rgba(249,171,0,0.25);
}

.alert-info {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(26,115,232,0.2);
}

.alert [data-lucide] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── PHOTO UPLOAD ── */
.photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: var(--bg);
  transition: all 0.15s;
}

.photo-upload:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.photo-upload [data-lucide] {
  width: 28px;
  height: 28px;
  color: var(--primary);
  margin: 0 auto 8px;
}

.photo-upload-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.photo-upload-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.photo-preview {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* ── SUCCESS SCREEN ── */
.success-screen {
  text-align: center;
  padding: 24px 8px;
}

.success-screen .success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-light);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-screen .success-icon [data-lucide] { width: 36px; height: 36px; }

.success-screen h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-screen p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.success-screen .btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOT LINK ── */
.foot-link {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.foot-link a { font-weight: 600; }

/* ── REQUEST LIST ── */
.request-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.request-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.request-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 11px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.request-card-body { flex: 1; min-width: 0; }

.request-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text);
}

.request-card .request-meta {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.request-card .request-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending { background: var(--warning-light); color: #8A5A00; }
.status-in_progress { background: var(--primary-light); color: var(--primary-dark); }
.status-invoice { background: #FCE7F3; color: #BE185D; }
.status-completed { background: var(--success-light); color: var(--success); }
.status-cancelled { background: #F1F3F4; color: var(--text-secondary); }
.status-outstanding { background: var(--warning-light); color: #8A5A00; }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-secondary);
}

.empty-state [data-lucide] {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: var(--text-muted);
}

/* ── SPINNER ── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-dark {
  border-color: rgba(0,0,0,0.15);
  border-top-color: var(--primary);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── PAGE LOADER ── */
.page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

/* ── MODAL / DIALOG ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.15s ease;
}

.modal-backdrop[hidden] { display: none !important; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  animation: slideUp 0.18s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 { font-size: 1.15rem; font-weight: 800; }

.modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-secondary);
}

.modal-close:hover { background: var(--bg); color: var(--text); }

.modal-body { padding: 24px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── DETAILED REQUEST CARD (vendor view) ── */
.req-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.req-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.req-card-head .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.req-card-head .head-text {
  flex: 1;
  min-width: 0;
}

.req-card-head h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text);
}

.req-card-head .submitted {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.req-card-head .head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.distance-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
}

.req-card-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.detail-row [data-lucide] {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.detail-row strong { color: var(--text); font-weight: 600; }

.req-card-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.req-card-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  border: 1px solid var(--border);
  transition: transform 0.1s;
}

.req-card-photos img:hover { transform: scale(1.02); }

.req-card-actions {
  display: flex;
  gap: 8px;
}

.req-card-actions .btn { flex: 1; padding: 10px 16px; font-size: 0.875rem; }

.assigned-vendor-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-light);
  border-radius: 10px;
  padding: 10px 12px;
}
.assigned-vendor-row .label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}
.assigned-vendor-row .value { font-size: 0.9rem; font-weight: 700; color: var(--text); }

.contact-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.contact-banner [data-lucide] { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.contact-banner strong { color: var(--primary); }

.bid-placed-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--success);
  font-weight: 600;
  padding: 10px;
  background: var(--success-light);
  border-radius: var(--radius);
}
.bid-placed-banner [data-lucide] { width: 16px; height: 16px; }

.summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
}
.summary-bar .left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}
.summary-bar .left [data-lucide] { width: 16px; height: 16px; color: var(--primary); }
.summary-bar .count {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ── DATE / TIME PICKER (bid modal) ── */
.date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
}

.date-chip {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s;
}

.date-chip:hover { border-color: var(--primary); }

.date-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.date-chip .dow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
  opacity: 0.7;
}

.date-chip .day {
  font-size: 1.15rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.date-chip .mo {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 2px;
  opacity: 0.7;
}

.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.time-chip {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s;
}

.time-chip:hover { border-color: var(--primary); }

.time-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.time-chip .label {
  font-size: 0.875rem;
  font-weight: 700;
  display: block;
}

.time-chip .sub {
  font-size: 0.72rem;
  margin-top: 2px;
  display: block;
  opacity: 0.7;
}

@media (max-width: 480px) {
  .time-grid { grid-template-columns: 1fr; }
}

.price-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  transition: border-color 0.15s, background 0.15s;
}

.price-input-wrap:focus-within {
  border-color: var(--primary);
  background: #fff;
}

.price-input-wrap.error { border-color: var(--danger); }

.price-input-wrap .currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-right: 6px;
}

.price-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 13px 0;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  outline: none;
}

/* ── BID LIST ── */
.bid-list { display: flex; flex-direction: column; gap: 12px; }

.bid-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bid-card .top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.bid-card .vendor-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bid-card .vendor-name a { color: var(--primary); font-weight: 700; text-decoration: none; }
.bid-card .vendor-name a:hover { text-decoration: underline; }

.bid-card .bid-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--success);
}

.bid-card .bid-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.bid-card .bid-meta strong { color: var(--text); font-weight: 600; }

.bid-card .bid-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background: var(--bg);
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.bid-card .bid-rating {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.bid-card .bid-rating .star { color: #F9AB00; }

.bid-card .bid-actions { display: flex; gap: 8px; }
.bid-card .bid-actions .btn { flex: 1; padding: 10px; font-size: 0.875rem; }

/* ── STAR RATING INPUT ── */
.star-rating {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 8px 0;
}
.star-rating button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--border);
  transition: color 0.1s, transform 0.1s;
}
.star-rating button:hover,
.star-rating button.active {
  color: #F9AB00;
}
.star-rating button:hover { transform: scale(1.1); }
.star-rating button [data-lucide] { width: 36px; height: 36px; fill: currentColor; }

/* ── EARNINGS ── */
.earnings-headline {
  background: linear-gradient(135deg, #1557B0 0%, #1A73E8 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 20px;
  text-align: center;
}
.earnings-headline .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  opacity: 0.85;
}
.earnings-headline .value {
  font-size: 2.6rem;
  font-weight: 900;
  margin: 6px 0 4px;
  color: #FFD54F;
  letter-spacing: -1px;
}
.earnings-headline .sub {
  font-size: 0.9rem;
  opacity: 0.75;
}

.earnings-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.earnings-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.earnings-stat .num { font-size: 1.6rem; font-weight: 900; color: var(--primary); }
.earnings-stat .lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.earnings-period-tabs {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}
.earnings-period-tabs button {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
}
.earnings-period-tabs button.active {
  background: var(--primary);
  color: #fff;
}

.job-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.job-row .job-info h4 { font-size: 0.95rem; font-weight: 700; }
.job-row .job-info p { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.job-row .job-amount { font-size: 1.05rem; font-weight: 800; color: var(--success); }

/* ── BUSINESS CARD (nearby) ── */
.biz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.biz-card h3 { font-size: 1rem; font-weight: 700; }
.biz-card .biz-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.biz-card .biz-meta .star { color: #F9AB00; }
.biz-card .biz-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.biz-card .biz-actions a { font-size: 0.85rem; }

/* ── ACCOUNT PAGE ── */
.account-section h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.account-section .section-help {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.danger-zone {
  border: 1px solid rgba(217,48,37,0.3);
  background: rgba(217,48,37,0.04);
}
.danger-zone h2 { color: var(--danger); }

/* ── PAYOUT STATUS PILL ── */
.payout-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
}
.payout-status.complete { background: var(--success-light); color: var(--success); }
.payout-status.incomplete { background: var(--warning-light); color: #8A5A00; }
.payout-status.none { background: #F1F3F4; color: var(--text-secondary); }
.payout-status [data-lucide] { width: 13px; height: 13px; }

/* ── PHOTO LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.15);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── GOOGLE PLACES AUTOCOMPLETE DROPDOWN ── */
.pac-container {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
  margin-top: 4px !important;
  padding: 4px 0 !important;
  background: var(--surface) !important;
}
.pac-container::after {
  display: none !important;
}
.pac-item {
  padding: 9px 14px !important;
  font-size: 0.9rem !important;
  color: var(--text) !important;
  border-top: none !important;
  cursor: pointer !important;
  line-height: 1.4 !important;
}
.pac-item:hover, .pac-item-selected {
  background: var(--primary-light) !important;
}
.pac-item-query {
  font-weight: 600 !important;
  color: var(--text) !important;
  font-size: 0.9rem !important;
}
.pac-matched {
  font-weight: 700 !important;
  color: var(--primary-dark) !important;
}
.pac-icon {
  display: none !important;
}
