:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #e7e7e4;
  --accent: #111111;
  --accent-text: #ffffff;
  --star: #9a6200;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

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

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.link { font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 700; font-size: 1.35rem; letter-spacing: 0.08em; }
.logo-sm { font-size: 1rem; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; }
.nav-links a:not(.btn) { color: var(--muted); }
.nav-links a:not(.btn):hover,
.nav-links a.active { color: var(--text); }

.user-chip { display: flex; align-items: center; gap: 8px; }
.user-chip .avatar { width: 30px; height: 30px; }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.link-btn:hover { color: var(--text); }

/* ---------- Buttons & inputs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.85; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { opacity: 1; border-color: var(--text); }

input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--text); }
textarea { resize: vertical; }

label { display: block; font-size: 0.875rem; font-weight: 500; }
label > input, label > select, label > textarea { margin-top: 6px; }

/* ---------- Hero ---------- */

.hero { padding: 88px 0 72px; text-align: center; }
.hero h1 { max-width: 760px; margin: 0 auto 16px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto 36px; }

.search {
  display: flex;
  align-items: stretch;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  background: var(--bg);
  text-align: left;
}
.search-field { flex: 1; min-width: 0; padding: 4px 18px; }
.search-field:first-child { border-right: 1px solid var(--line); }
.search-field > span,
.search .loc-field-label { font-size: 0.75rem; font-weight: 600; margin: 0; }
.search-field select,
.search-field input { border: 0; padding: 2px 0; margin: 0; background: transparent; }
.search .loc-trigger { border: 0; padding: 2px 0 2px 20px; background-position: left center; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.chip {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--muted);
}
.chip:hover { color: var(--text); border-color: var(--text); }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.page-title { font-size: 2rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cta p { margin: 0; max-width: 520px; }

/* ---------- Cards ---------- */

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

.card { display: flex; flex-direction: column; border-radius: var(--radius); transition: transform 0.2s; }
.card:hover { transform: translateY(-3px); }
.card:hover .card-img { box-shadow: var(--shadow); }
.card-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--bg-alt) center / cover no-repeat;
  transition: box-shadow 0.2s;
}
.card-body { padding: 14px 2px 0; display: flex; flex-direction: column; flex: 1; }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-title { flex: 1; min-width: 0; }
.card-name { font-weight: 600; }
.card-tagline { margin: 10px 0; font-size: 0.925rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }

.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.9rem;
  color: #2b2b2b;
}
.avatar.sm { width: 36px; height: 36px; font-size: 0.8rem; }
.avatar.lg { width: 104px; height: 104px; font-size: 2rem; border: 4px solid var(--bg); }

.rating { color: var(--star); font-weight: 600; white-space: nowrap; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Sign in ---------- */

.auth { display: grid; place-items: center; min-height: 52vh; }
.auth-panel { width: 100%; max-width: 420px; justify-items: center; gap: 12px; padding: 36px 28px; text-align: center; }
.auth-panel h1 { margin: 8px 0 0; font-size: 1.75rem; }
.google-btn { display: flex; justify-content: center; width: 100%; }
.social { display: grid; gap: 10px; width: 100%; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #fff;
  color: #1f1f1f;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.social-btn:hover { background: #f7f8f8; border-color: #c4c7c5; }
.social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.google-btn { margin: 0; min-height: 44px; }
.social .form-error { text-align: left; }

.auth-form { display: grid; gap: 12px; width: 100%; margin-top: 8px; text-align: left; }
.form-error { margin: 0; color: #b42318; font-size: 0.875rem; }
.auth-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-alt);
}
.auth-icon svg { width: 24px; height: 24px; }
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: var(--muted);
  font-size: 0.8rem;
}
.divider::before,
.divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.notice {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdf3e1;
  color: #8a5a00;
  font-size: 0.85rem;
  text-align: left;
}
img.avatar { object-fit: cover; }

/* ---------- Location field ---------- */

.loc-field { display: flex; flex-direction: column; min-width: 0; }
.loc-field-label { font-size: 0.875rem; font-weight: 500; margin-bottom: 6px; }
.loc-trigger {
  width: 100%;
  padding: 11px 12px 11px 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23111' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") 12px center no-repeat;
  color: var(--text);
  font: inherit;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: border-color 0.15s;
}
.loc-trigger:hover { border-color: var(--text); }
.loc-trigger.loc-empty { color: var(--muted); }

/* ---------- Map modal ---------- */

.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.45); }
.modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 780px;
  max-height: calc(100vh - 32px);
  padding: 20px;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { margin: 0; font-size: 1.2rem; }
.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.icon-btn:hover { background: var(--bg-alt); color: var(--text); }

.loc-search { position: relative; z-index: 1; display: flex; gap: 8px; }
.loc-search input { flex: 1; }
.suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow);
}
.suggest li { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 8px; line-height: 1.35; cursor: pointer; }
.suggest li span { font-size: 0.8rem; }
.suggest li.active,
.suggest li:hover { background: var(--bg-alt); }

.loc-map {
  position: relative;
  z-index: 0;
  flex: 1 1 auto;
  height: 420px;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.leaflet-container { font-family: inherit; }
/* Soften the colourful OpenStreetMap style to match CLYP's minimal look. */
.loc-map .leaflet-tile-pane { filter: grayscale(1) brightness(1.04) contrast(0.92); }
.leaflet-popup-content a { color: var(--text); font-weight: 600; }
.map-pin { border-radius: 50%; background: var(--text); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--text); }

.loc-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.radius { display: flex; flex: 1 1 300px; align-items: center; gap: 14px; }
.radius span { min-width: 100px; white-space: nowrap; }
.radius input { margin: 0; padding: 0; border: 0; accent-color: var(--text); }
.modal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.modal-actions { display: flex; gap: 8px; margin-left: auto; }

/* ---------- Specialties ---------- */

.spec-field { display: grid; gap: 6px; }
.field-label { font-size: 0.875rem; font-weight: 500; }
.field-sub { margin-top: 6px; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list:empty { display: none; }

.preset-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.preset {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.preset::before { content: "+ "; }
.preset:hover { border-color: var(--text); color: var(--text); }
.preset.on { border-color: var(--text); background: var(--text); color: var(--bg); }
.preset.on::before { content: "✓ "; }
.spec-field:not(.show-all) .preset.extra { display: none; }

.spec-other { position: relative; display: flex; gap: 8px; }
.spec-other input { flex: 1; }
.spec-suggest { top: calc(100% + 4px); z-index: 5; }
.suggest li.custom { font-weight: 600; }

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 4px 4px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 0.85rem;
  font-weight: 500;
}
.tag-chip button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.tag-chip button:hover { background: var(--line); color: var(--text); }
.tags-lg .tag { padding: 6px 14px; font-size: 0.875rem; }
a.tag:hover { color: var(--text); background: var(--line); }

/* ---------- Browse ---------- */

.filters { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr; gap: 12px; margin: 20px 0 12px; }

/* ---------- Profile ---------- */

.cover { height: 260px; background: var(--bg-alt) center / cover no-repeat; }

.profile { display: grid; grid-template-columns: 1fr 360px; gap: 56px; padding-bottom: 72px; }
.profile-main h2 { margin: 32px 0 10px; font-size: 1.2rem; }
/* Only the photo overlaps the banner; the name sits below it. */
.profile-head { display: flex; align-items: flex-start; gap: 18px; padding-top: 14px; }
.profile-head .avatar.lg { flex-shrink: 0; margin-top: -60px; }
.profile-id { display: grid; flex: 1; gap: 8px; min-width: 0; }
.profile-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.profile-title .btn { flex-shrink: 0; }
.profile-head h1 { margin: 0; font-size: 1.75rem; line-height: 1.15; }
.profile-tagline { margin: 2px 0 0; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; color: var(--muted); font-size: 0.875rem; }
.profile-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.profile-tags .social-links { display: contents; }
.profile-bio { margin: 0; }

.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.portfolio-item { aspect-ratio: 1; border-radius: 10px; background: var(--bg-alt) center / cover no-repeat; }

.packages { display: grid; gap: 12px; }
.package {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.package-name { font-weight: 600; margin-bottom: 2px; }
.package-price { font-weight: 700; font-size: 1.1rem; }

.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; justify-content: space-between; margin-bottom: 4px; }
.review p { margin: 0; }

.profile-side { padding-top: 28px; }
.panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg);
}
.profile-side .panel { position: sticky; top: 88px; }
.panel h3 { margin: 0; }
.panel-price strong { font-size: 1.4rem; }
.panel p { margin: 0; }

/* ---------- Join form ---------- */

.form { margin-top: 24px; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.check input { width: auto; margin: 0; }
.check:has(input:checked) { border-color: var(--text); background: var(--bg-alt); }

/* ---------- Edit profile ---------- */

.edit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.edit-form { display: grid; gap: 24px; margin-top: 12px; }
.edit-form > .panel { gap: 16px; }
.edit-form h2 { margin: 0; font-size: 1.15rem; }

.edit-cover {
  position: relative;
  aspect-ratio: 16 / 5;
  min-height: 140px;
  border-radius: 12px;
  background: var(--bg-alt) center / cover no-repeat;
}
.photo-actions { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.on-photo { background: var(--bg); }
.on-photo:hover { border-color: var(--bg); opacity: 0.9; }
.edit-avatar { display: flex; align-items: center; gap: 18px; margin-top: -44px; padding-left: 16px; }
.edit-avatar .avatar.lg { position: relative; }
.edit-avatar-actions { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.edit-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.edit-subhead h3 { margin: 0; }

.portfolio-item { position: relative; }
.remove-photo {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.7);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.remove-photo:hover { background: #111; }
.portfolio-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  aspect-ratio: 1;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.portfolio-add:hover { border-color: var(--text); color: var(--text); }
.portfolio-add .plus { font-size: 1.6rem; line-height: 1; }

.pkg-list { display: grid; gap: 14px; }
.pkg-row { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.pkg-grid { display: grid; grid-template-columns: 1fr 140px; gap: 14px; }
.danger { justify-self: start; color: #b42318; font-size: 0.875rem; }
.danger:hover { color: #7a1610; }

.edit-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

/* ---------- Messages ---------- */

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.nav-messages { display: inline-flex; align-items: center; gap: 6px; }

.chat-section { padding: 24px 0; }
.chat {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 64px - 48px);
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.chat-list { padding: 16px 8px; border-right: 1px solid var(--line); overflow-y: auto; }
.chat-title { margin: 4px 10px 12px; font-size: 1.4rem; }
.chat-note { margin: 0 10px 12px; }
.chat-empty { display: grid; justify-items: start; gap: 10px; padding: 8px 10px; }
.convo { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.convo:hover,
.convo.active { background: var(--bg-alt); }
.convo-main { flex: 1; min-width: 0; }
.convo-top { display: flex; justify-content: space-between; gap: 8px; }
.convo-name { font-weight: 600; }
.convo-name a:hover { text-decoration: underline; }
.convo-preview { overflow: hidden; color: var(--muted); font-size: 0.875rem; white-space: nowrap; text-overflow: ellipsis; }
.convo.unread .convo-preview { color: var(--text); font-weight: 500; }

.chat-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-placeholder { margin: auto; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.thread-back { display: none; padding-right: 6px; font-size: 1.3rem; }
.thread-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 18px; overflow-y: auto; }
.thread-hint { margin: auto; text-align: center; }
.msg { display: flex; flex-direction: column; gap: 4px; max-width: min(75%, 520px); }
.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: 18px; background: var(--bg-alt); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine .bubble { border-bottom-right-radius: 6px; background: var(--text); color: var(--bg); }
.msg.theirs .bubble { border-bottom-left-radius: 6px; }
.msg-meta { color: var(--muted); font-size: 0.72rem; }
.msg-system { align-self: center; color: var(--muted); font-size: 0.78rem; text-align: center; }
.req-card { display: grid; gap: 4px; min-width: 240px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.req-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.req-card .field-sub { margin: 0; }
.req-card-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; max-height: 160px; padding: 10px 16px; border-radius: 20px; line-height: 1.4; resize: none; }

/* ---------- Cart ---------- */

.badge-dark { background: var(--text); }
.nav-cart { display: inline-flex; align-items: center; gap: 6px; }
.nav-cart svg { flex-shrink: 0; }
.package-card {
  gap: 12px;
  padding: 12px 14px 12px 12px;
  border-radius: 18px;
  background: var(--bg);
  transition: transform 0.18s ease, background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.package-card:hover,
.package-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--text);
  background: #f3f3f0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.package-card.selected { border-color: var(--text); background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--text); }
.package-link { display: flex; flex: 1; align-items: center; gap: 14px; min-width: 0; color: inherit; outline: none; }
.package-info { flex: 1; min-width: 0; }
.package-more { display: inline-block; margin-top: 4px; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.package-card:hover .package-more { color: var(--text); }
.pkg-thumb { flex-shrink: 0; width: 72px; height: 72px; aspect-ratio: auto; border-radius: 12px; }
.pkg-thumb .play-badge { width: 28px; height: 28px; font-size: 0.65rem; }
.pkg-add {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pkg-add:hover { border-color: var(--text); }
.pkg-add.on { border-color: var(--text); background: var(--text); color: var(--bg); }
.cta-off { display: none; }
.pkg-add.on:hover { border-color: #b42318; background: #b42318; }
.pkg-add.on:hover .cta-on { display: none; }
.pkg-add.on:hover .cta-off { display: inline; }

.cart { display: grid; grid-template-columns: 1fr 340px; align-items: start; gap: 32px; margin-top: 12px; }
.cart-main { display: grid; gap: 20px; }
.cart-group { gap: 14px; }
.cart-creator { display: flex; align-items: center; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto 90px auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.cart-item-main { min-width: 0; }
.cart-price { font-weight: 700; text-align: right; }
.qty { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.qty button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}
.qty button:hover:not(:disabled) { background: var(--bg-alt); }
.qty button:disabled { color: var(--line); cursor: default; }
.cart-side { position: sticky; top: 88px; }
.summary { gap: 10px; }
.summary h3 { margin-bottom: 4px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.sum-row span:first-child { color: var(--muted); }
.sum-total { margin: 6px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.1rem; font-weight: 700; }
.sum-total span:first-child { color: var(--text); }

.req-lines {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.req-lines span:nth-child(odd) { color: var(--muted); }
.req-lines .strong { color: var(--text) !important; font-weight: 700; }

/* ---------- Package picking & slide-out cart ---------- */

.pick-list { display: grid; gap: 6px; }
.pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
}
.pick { transition: background 0.15s, border-color 0.15s; }
.pick:hover { border-color: var(--text); background: #f3f3f0; }
.pick:has(input:checked) { border-color: var(--text); background: var(--bg-alt); }
.pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--text); }
.pick-name { flex: 1; }
.pick-price { font-weight: 600; }
.pick-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.9rem; }
.pick-total strong { font-size: 1.15rem; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  background: var(--bg);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
}
.drawer.open { transform: none; visibility: visible; box-shadow: -16px 0 48px rgba(0, 0, 0, 0.12); transition: transform 0.28s ease; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.2rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-empty { display: grid; align-content: center; justify-items: center; gap: 4px; text-align: center; }
.drawer-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-group:last-child { border-bottom: 0; }
.drawer-group .cart-creator { margin-bottom: 6px; }
.drawer-item { display: grid; gap: 8px; padding: 10px 0; }
.drawer-item + .drawer-item { border-top: 1px dashed var(--line); }
.drawer-item-top { display: flex; justify-content: space-between; gap: 10px; }
.drawer-item-top .icon-btn { width: 30px; height: 30px; font-size: 1.3rem; }
.drawer-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.drawer-foot { display: grid; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--bg); }
.drawer-foot .sum-total { margin: 4px 0; }
.drawer-foot .link-btn { justify-self: center; }

/* ---------- Payments ---------- */

.pay-badge {
  justify-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.pay-unpaid { background: #fdf3e1; color: #8a5a00; }
.pay-authorized { background: #e8eefc; color: #2446a6; }
.pay-paid { background: #e3f4ea; color: #146c43; }
.pay-expired { background: #fdeceb; color: #b42318; }
.payout { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.payout h3 { margin: 0; font-size: 1rem; }
.payout p { margin: 0; }
.account-extra .payout { width: 100%; border-top: 0; padding-top: 0; }

/* ---------- Photos & videos ---------- */

.media-tile { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 10px; background: var(--bg-alt); }
.media-tile img,
.media-tile video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
[data-lb] { cursor: zoom-in; }
[data-lb]:hover img,
[data-lb]:hover video { transform: scale(1.03); }
[data-lb]:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: auto;
  padding-left: 3px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.6);
  color: #fff;
  font-size: 0.9rem;
  pointer-events: none;
}
.media-edit {
  position: relative;
  border-radius: 10px;
  cursor: grab;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.media-edit:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.media-edit img,
.media-edit video { pointer-events: none; }
.media-edit.dragging { opacity: 0.25; }
.drag-ghost {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  opacity: 0.95;
  pointer-events: none;
}
.drag-ghost .remove-photo { display: none; }
body.is-sorting,
body.is-sorting * { cursor: grabbing !important; user-select: none; }
.main-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  pointer-events: none;
}
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.pkg-media-edit { display: grid; gap: 4px; }

.lightbox { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.9); }
.lightbox-frame { position: relative; max-width: min(92vw, 1200px); margin: 0; }
.lightbox-frame img,
.lightbox-frame video { display: block; max-width: 100%; max-height: 86vh; border-radius: 8px; }
.lb-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.28); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { top: 50%; left: 16px; transform: translateY(-50%); }
.lb-next { top: 50%; right: 16px; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.8); font-size: 0.85rem; }

/* ---------- Social links ---------- */

.social-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.social-link {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.social-link:hover { border-color: var(--text); background: var(--bg-alt); }
.social-link span { color: var(--muted); }
.social-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.pkg-side .social-links { margin-top: 0; }

/* ---------- Package page ---------- */

.pkg-page { padding-top: 28px; }
.back-link { display: inline-block; margin-bottom: 16px; }
.pkg-layout { display: grid; grid-template-columns: 1fr 340px; align-items: start; gap: 48px; }
.pkg-main h2 { margin-top: 36px; font-size: 1.25rem; }
.pkg-hero { aspect-ratio: 16 / 10; border-radius: var(--radius); }
.pkg-hero-empty { background: var(--bg-alt) center / cover no-repeat; }
.pkg-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-top: 8px; }
.pkg-thumbs .play-badge { width: 30px; height: 30px; font-size: 0.7rem; }
.pkg-title { margin: 24px 0 8px; font-size: 2rem; }
.pkg-included { margin-top: 14px; }
.pkg-details { white-space: pre-wrap; }
.pkg-side .panel { position: sticky; top: 88px; gap: 12px; }
.pkg-price { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.pkg-creator { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); color: inherit; }
.pkg-creator:hover .convo-name { text-decoration: underline; }

/* ---------- Notifications ---------- */

.nav-bell { position: relative; display: inline-flex; align-items: center; color: var(--muted); }
.nav-bell:hover,
.nav-bell.active { color: var(--text); }
.nav-bell .badge { position: absolute; top: -8px; right: -10px; }
.notes { display: grid; }
.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
}
.note:hover { background: var(--bg-alt); }
.note-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-alt); color: var(--muted); }
.note.unread .note-icon { background: var(--text); color: var(--bg); }
.note-main { display: grid; flex: 1; gap: 2px; }
.note-main span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Calendar ---------- */

.cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cal-head .page-title { margin: 0; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav .icon-btn { display: grid; place-items: center; font-size: 1.4rem; }
.cal-month { min-width: 150px; text-align: center; }
.cal-layout { display: grid; grid-template-columns: 1fr 320px; align-items: start; gap: 28px; }
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cal-weekday { padding: 8px; border-bottom: 1px solid var(--line); background: var(--bg-alt); color: var(--muted); font-size: 0.75rem; font-weight: 600; text-align: center; }
.cal-day {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 104px;
  padding: 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.cal-day:nth-child(7n + 7) { border-right: 0; }
.cal-day:hover { background: var(--bg-alt); }
.cal-day.outside { background: #fbfbfa; color: var(--line); }
.cal-day.outside .cal-num { color: #c4c4c0; }
.cal-day.selected { background: var(--bg-alt); box-shadow: inset 0 0 0 2px var(--text); }
.cal-num { align-self: flex-start; display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; font-size: 0.85rem; font-weight: 600; }
.cal-day.past .cal-num { color: var(--muted); }
.cal-day.today .cal-num { background: var(--text); color: var(--bg); }
.cal-chip {
  overflow: hidden;
  padding: 2px 6px;
  border: 1px solid var(--text);
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cal-chip.pending { background: var(--bg); color: var(--text); border-style: dashed; }
.cal-more { color: var(--muted); font-size: 0.72rem; }
.cal-dots { display: none; gap: 3px; }
.cal-dots i,
.cal-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
.cal-dots i.pending,
.cal-legend i.pending { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--text); }
.cal-side .panel { position: sticky; top: 88px; gap: 12px; }
.cal-side h3 { margin: 0; }
.cal-item { display: grid; gap: 3px; padding: 12px 0; border-top: 1px solid var(--line); }
.cal-item-date { color: var(--muted); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.cal-item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.cal-item .status-pending { background: #fdf3e1; }
.cal-note { display: flex; align-items: flex-start; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.cal-note svg { flex-shrink: 0; width: 16px; height: 16px; }
.cal-legend { display: flex; gap: 14px; color: var(--muted); font-size: 0.8rem; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Help assistant ---------- */

.help-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.15s;
}
.help-fab:hover { transform: translateY(-2px); }
.help-fab.open { background: #3a3a38; }
.help-panel {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 1450;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}
.help-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.help-head-actions { display: flex; align-items: center; gap: 6px; }
.help-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; }
.help-signin { justify-content: center; gap: 12px; text-align: center; }
.help-signin p { margin: 0; }
.help-msg { display: flex; max-width: 88%; }
.help-msg.mine { align-self: flex-end; }
.help-msg.theirs { align-self: flex-start; }
.help-msg .bubble { font-size: 0.92rem; }
.help-msg.mine .bubble { border-bottom-right-radius: 6px; background: var(--text); color: var(--bg); }
.help-msg.theirs .bubble { border-bottom-left-radius: 6px; }
.help-rich { white-space: normal; }
.help-rich p { margin: 0 0 8px; }
.help-rich p:last-child,
.help-rich ul:last-child { margin-bottom: 0; }
.help-rich ul { margin: 0 0 8px; padding-left: 18px; }
.help-rich li { margin-bottom: 4px; }
.help-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
.help-suggestions .chip { background: var(--bg); font: inherit; font-size: 0.82rem; cursor: pointer; }
.help-typing { display: flex; gap: 4px; padding: 14px 16px; }
.help-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: help-dot 1.2s infinite ease-in-out; }
.help-typing span:nth-child(2) { animation-delay: 0.15s; }
.help-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes help-dot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.help-composer { padding: 10px 12px; }
.help-composer textarea { min-height: 40px; }

/* ---------- Credentials & badges ---------- */

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e3f4ea;
  color: #146c43;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 1px; }
.card-badges .badge-pill { padding: 1px 8px; font-size: 0.7rem; }
.cred-list { display: grid; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.cred-list li { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid #cfe9d9; border-radius: 12px; background: #f4fbf7; }
.cred-edit { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.cred-edit + .cred-edit { margin-top: 12px; }
.cred-edit-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cred-edit p { margin: 0; }
.cred-edit .btn { justify-self: start; }
.check.is-locked { color: var(--muted); cursor: not-allowed; }
.admin-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }

/* ---------- Consent & account deletion ---------- */

.consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.45; text-align: left; }
.consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--text); }
.danger-zone { justify-items: start; gap: 10px; margin-top: 20px; border-color: #f2c9c5; }
.danger-zone h3 { margin: 0; }
.danger-zone p { margin: 0; }
.danger-btn { border-color: #f2c9c5; color: #b42318; }
.danger-btn:hover { border-color: #b42318; }
.delete-confirm { display: grid; gap: 10px; width: 100%; }
.danger-solid { background: #b42318; }
.auth-panel .danger-zone { width: 100%; text-align: left; }

/* ---------- Account ---------- */

.account-avatar { margin: 0; padding: 0; }
.account-avatar .edit-avatar-actions { margin-top: 0; }
.account-extra { justify-items: start; gap: 16px; margin-top: 20px; }
.list-head { margin-top: 28px; font-size: 1.1rem; }

/* ---------- Requests ---------- */

.request {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.request-title { font-weight: 600; }
.request-title:hover { text-decoration: underline; }
.status {
  padding: 4px 12px;
  border-radius: 999px;
  background: #fdf3e1;
  color: #8a5a00;
  font-size: 0.8rem;
  font-weight: 600;
}

.request-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.request-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.status-cancelled { background: var(--bg-alt); color: var(--muted); }
.status-accepted { background: #e3f4ea; color: #146c43; }
.status-declined { background: #fdeceb; color: #b42318; }
.request.is-cancelled .request-title { color: var(--muted); }

.empty { text-align: center; padding: 48px 0; grid-column: 1 / -1; }

/* ---------- Footer & toast ---------- */

.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.875rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Legal pages ---------- */

.legal h2 { margin: 32px 0 10px; font-size: 1.15rem; }
.legal p,
.legal li { line-height: 1.65; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal ul ul { margin-top: 6px; }
.legal a { text-decoration: underline; }
.legal mark { padding: 0 3px; border-radius: 4px; background: #fdf3e1; color: #8a5a00; }
.legal-draft { margin-bottom: 20px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .profile { grid-template-columns: 1fr; gap: 0; }
  .profile-side .panel { position: static; }
  .pkg-layout { grid-template-columns: 1fr; gap: 24px; }
  .cal-layout { grid-template-columns: 1fr; }
  .cal-side .panel { position: static; }
  .pkg-side .panel { position: static; }
  .profile-side { padding-top: 40px; }
}

@media (max-width: 680px) {
  .nav-links { gap: 14px; font-size: 0.85rem; }
  .nav-links a[data-nav="requests"] { display: none; }
  .user-chip span { display: none; }
  .nav-cart-label { display: none; }
  .cart { grid-template-columns: 1fr; }
  .cart-side { position: static; }
  .cart-item { grid-template-columns: 1fr auto; }
  .cart-item .cart-price { grid-column: 1; text-align: left; }
  .chat-section { padding: 0; }
  .chat-section .container { padding: 0; }
  .chat { grid-template-columns: 1fr; height: calc(100dvh - 64px); border: 0; border-radius: 0; }
  .chat.has-thread .chat-list { display: none; }
  .chat:not(.has-thread) .chat-thread { display: none; }
  .chat-list { border-right: 0; }
  .thread-back { display: block; }
  .msg { max-width: 85%; }
  .hero { padding: 56px 0 48px; }
  .search { flex-direction: column; border-radius: var(--radius); gap: 4px; }
  .search-field { padding: 8px 12px; }
  .search-field:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .modal { padding: 0; }
  .modal-card { height: 100%; max-height: none; border-radius: 0; padding: 16px; }
  .loc-map { height: auto; }
  .loc-search { flex-wrap: wrap; }
  .loc-search input { flex-basis: 100%; }
  .suggest { top: 52px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 28px; }
  .filters { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .cover { height: 180px; }
  .profile-head { flex-direction: column; gap: 10px; }
  .profile-head .avatar.lg { margin-top: -56px; }
  .profile-title { flex-wrap: wrap; }
  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .package-card { flex-wrap: wrap; }
  .pkg-add { margin-left: auto; }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
  .social-fields { grid-template-columns: 1fr; }
  .help-fab { right: 12px; bottom: 12px; padding: 10px 14px; }
  .help-panel { right: 8px; bottom: 64px; width: calc(100vw - 16px); height: calc(100dvh - 140px); }
  .cal-day { min-height: 56px; padding: 4px; align-items: center; }
  .cal-chip,
  .cal-more { display: none; }
  .cal-dots { display: flex; }
  .cal-num { align-self: center; }
  .nav-links a[data-nav="calendar"] { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .pkg-grid { grid-template-columns: 1fr; }
  .edit-avatar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .edit-avatar-actions { margin-top: 0; }
}

@media (max-width: 420px) {
  .nav-links a[data-nav="browse"] { display: none; }
}

/* ---------- Reports & blocking ---------- */

.report-card { max-width: 460px; overflow-y: auto; }
.report-reasons { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.report-reasons legend { margin-bottom: 4px; padding: 0; }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
.check-row input { width: auto; margin: 0; }
.report-link { color: var(--muted); }
.link-btn.small { font-size: 0.85rem; }
.link-btn.tiny { font-size: 0.75rem; text-decoration: underline; }
.thread-who { flex: 1; min-width: 0; }
.thread-actions { display: flex; gap: 14px; }
.thread-notice { margin: 12px 18px 0; }
.hidden-notice { margin-top: 16px; }
.blocked-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.report-excerpt { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--bg-alt); border-radius: 0 8px 8px 0; white-space: pre-wrap; font-size: 0.9rem; }
.chat-tip { margin: 0; padding: 6px 18px 0; text-align: center; }

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3000;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
#app:focus { outline: none; }

/* Clear outlines for keyboard users (mouse clicks don't show them). */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not(#app):focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Sample profiles ---------- */

.sample-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.sample-tag.small { padding: 1px 7px; font-size: 0.7rem; vertical-align: middle; }
.sample-banner { margin: 12px 0; }
.sample-notice { margin-bottom: 4px; }
