/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body   { font-family: 'Segoe UI', system-ui, sans-serif; background: #f4f6f9; color: #222; min-height: 100vh; }
a      { color: inherit; text-decoration: none; }
img    { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ── NAVBAR ── */
.navbar {
  background: #0f3460; color: #fff; height: 60px;
  padding: 0 28px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 8px rgba(15,52,96,.35);
}
.logo { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.logo span { color: #e94560; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: rgba(255,255,255,.75); font-size: 14px; padding: 7px 12px; border-radius: 6px; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-badge { position: relative; }
.nav-badge .dot { position: absolute; top: 4px; right: 6px; width: 7px; height: 7px; background: #e94560; border-radius: 50%; border: 2px solid #0f3460; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: all .18s; white-space: nowrap;
}
.btn-primary  { background: #e94560; color: #fff; }
.btn-primary:hover  { background: #c73652; }
.btn-dark     { background: #0f3460; color: #fff; }
.btn-dark:hover     { background: #1a3a5c; }
.btn-outline  { background: transparent; border: 2px solid #ddd; color: #444; }
.btn-outline:hover  { border-color: #e94560; color: #e94560; }
.btn-danger   { background: #e53935; color: #fff; }
.btn-danger:hover   { background: #c62828; }
.btn-success  { background: #43a047; color: #fff; }
.btn-success:hover  { background: #2e7d32; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 6px; }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 5px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-nav { background: #e94560 !important; color: #fff !important; font-weight: 700; border-radius: 20px !important; padding: 7px 16px !important; }

/* ── FORM ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1.5px solid #ddd;
  border-radius: 8px; font-size: 14px; outline: none;
  transition: border-color .2s; background: #fff; color: #222;
}
.form-control:focus { border-color: #e94560; box-shadow: 0 0 0 3px rgba(233,69,96,.12); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: #999; margin-top: 4px; }

/* ── ALERTS ── */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-error   { background: #fdecea; color: #b71c1c; border-left: 4px solid #e53935; }
.alert-success { background: #e8f5e9; color: #1b5e20; border-left: 4px solid #43a047; }
.alert-info    { background: #e8f0fe; color: #1a3a8f; border-left: 4px solid #3b5bdb; }

/* ── BADGES ── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-pending   { background: #fff3e0; color: #e65100; }
.badge-confirmed { background: #e8f5e9; color: #2e7d32; }
.badge-completed { background: #e8f0fe; color: #1a3a8f; }
.badge-cancelled { background: #fce4ec; color: #880e4f; }
.badge-delivered { background: #e8f5e9; color: #1b5e20; }

/* ── STARS ── */
.stars { display: inline-flex; gap: 2px; }
.star  { font-size: 18px; color: #ddd; transition: color .12s; line-height: 1; }
.star.on, .star.hover { color: #e94560; }
.stars-sm .star { font-size: 13px; cursor: default; }

/* ── AVATAR ── */
.avatar       { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-init  { border-radius: 50%; background: #e94560; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

/* ── CARD ── */
.card      { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.07); overflow: hidden; }
.card-body { padding: 20px; }

/* ── TAGS (category checkboxes) ── */
.tag-group  { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-check  { display: none; }
.tag-label  { padding: 6px 14px; border-radius: 20px; border: 1.5px solid #ddd; font-size: 13px; cursor: pointer; transition: all .15s; user-select: none; }
.tag-check:checked + .tag-label { background: #e94560; border-color: #e94560; color: #fff; font-weight: 600; }

/* ── LAYOUT ── */
.container   { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.page        { padding-top: 32px; padding-bottom: 32px; }
.two-col     { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.three-col   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── HERO ── */
.hero { background: linear-gradient(150deg, #0f3460, #16213e); color: #fff; padding: 72px 0; text-align: center; }
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 14px; }
.hero h1 span { color: #e94560; }
.hero p  { color: rgba(255,255,255,.65); font-size: 16px; max-width: 480px; margin: 0 auto 32px; }

/* ── SEARCH ── */
.search-bar { display: flex; gap: 10px; background: #fff; padding: 14px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.08); margin-bottom: 28px; flex-wrap: wrap; }
.search-bar input, .search-bar select { flex: 1; min-width: 120px; padding: 10px 14px; border: 1.5px solid #eee; border-radius: 8px; font-size: 14px; outline: none; }
.search-bar input:focus, .search-bar select:focus { border-color: #e94560; }

/* ── PHOTOGRAPHER CARD ── */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.ph-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); transition: box-shadow .2s, transform .2s; cursor: pointer; }
.ph-card:hover { box-shadow: 0 8px 24px rgba(15,52,96,.18); transform: translateY(-4px); }
.ph-cover { height: 180px; background: #16213e; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ph-cover img { width: 100%; height: 100%; object-fit: cover; }
.ph-cover .no-img { color: #445; font-size: 40px; }
.ph-body { padding: 16px; }
.ph-name { font-weight: 700; font-size: 15px; }
.ph-loc  { color: #888; font-size: 13px; margin-top: 2px; }
.ph-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.cat-pill { background: #eef2ff; border-radius: 4px; padding: 3px 8px; font-size: 11px; color: #3b5bdb; font-weight: 500; }
.ph-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.ph-rate   { font-size: 15px; font-weight: 700; color: #0f3460; }
.ph-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #666; }

/* ── BOOKING PANEL (sticky sidebar) ── */
.booking-panel { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.08); position: sticky; top: 76px; }
.booking-panel h3 { margin-bottom: 18px; }
.price-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; border-bottom: 1px solid #f5f5f5; }
.price-row:last-child { border: none; }
.price-row .lbl { color: #777; }
.price-row .val { font-weight: 600; }
.price-total .val { font-size: 18px; color: #e94560; font-weight: 800; }

/* ── TABS ── */
.tabs     { display: flex; border-bottom: 2px solid #eee; margin-bottom: 24px; gap: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn  { white-space: nowrap; flex-shrink: 0; padding: 10px 22px; font-size: 14px; font-weight: 600; color: #888; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; transition: all .15s; }
.tab-btn.active { color: #e94560; border-bottom-color: #e94560; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── PORTFOLIO ── */
.port-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.port-item { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #eee; position: relative; }
.port-item img { width: 100%; height: 100%; object-fit: cover; }
.port-del { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,.6); color: #fff; border: none; border-radius: 50%; width: 24px; height: 24px; font-size: 13px; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ── REVIEW ── */
.review-item  { padding: 16px 0; border-bottom: 1px solid #f2f2f2; }
.review-item:last-child { border: none; }
.review-head  { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-body  { font-size: 14px; color: #444; line-height: 1.6; }
.review-date  { font-size: 12px; color: #aaa; margin-top: 5px; }

/* ── BOOKING LIST ITEM ── */
.bk-item { background: #fff; border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); cursor: pointer; transition: box-shadow .15s; }
.bk-item:hover { box-shadow: 0 4px 12px rgba(15,52,96,.12); }
.bk-info { flex: 1; }
.bk-name { font-weight: 600; font-size: 15px; }
.bk-date { font-size: 13px; color: #888; margin-top: 3px; }
.bk-right { text-align: right; }
.bk-total { font-weight: 700; font-size: 15px; color: #0f3460; }

/* ── DASHBOARD STATS ── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card  { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); border-left: 4px solid #e94560; }
.stat-val   { font-size: 30px; font-weight: 800; color: #0f3460; }
.stat-lbl   { font-size: 13px; color: #888; margin-top: 4px; }

/* ── CALENDAR ── */
.cal-wrap   { background: #fff; border-radius: 12px; padding: 20px; }
.cal-head   { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cal-grid   { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow    { text-align: center; font-size: 11px; font-weight: 700; color: #aaa; padding: 4px 0; }
.cal-day    { aspect-ratio: 1; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; border: 1.5px solid transparent; transition: all .15s; }
.cal-day:hover  { background: #fff0f3; border-color: #e94560; }
.cal-day.avail  { background: #e8f5e9; color: #2e7d32; font-weight: 600; border-color: #a5d6a7; }
.cal-day.unavail { background: #fce4ec; color: #c62828; }
.cal-day.today  { border-color: #e94560; font-weight: 700; }
.cal-day.empty, .cal-day.past { cursor: default; color: #ccc; }
.cal-day.past:hover { background: none; border-color: transparent; }
.cal-day.unavail { cursor: default; pointer-events: none; }
.cal-day.avail:hover { background: #c8e6c9; border-color: #66bb6a; }
.cal-day.selected { background: #e94560 !important; color: #fff !important; border-color: #e94560 !important; font-weight: 700; }

/* ── CHAT LAYOUT ── */
.chat-page { height: calc(100vh - 60px); display: grid; grid-template-columns: 300px 1fr; }
.convo-panel { background: #fff; border-right: 1px solid #eee; display: flex; flex-direction: column; overflow: hidden; }
.convo-panel h3 { padding: 16px 18px; border-bottom: 1px solid #eee; font-size: 15px; }
.convo-list { overflow-y: auto; flex: 1; }
.convo-item { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: background .15s; }
.convo-item:hover, .convo-item.active { background: #fff0f3; }
.convo-info { flex: 1; min-width: 0; }
.convo-name { font-weight: 600; font-size: 14px; }
.convo-prev { font-size: 12px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.convo-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.convo-time { font-size: 11px; color: #aaa; }
.unread-badge { background: #e94560; color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.thread-panel { display: flex; flex-direction: column; background: #f4f6f9; overflow: hidden; }
.thread-head  { background: #fff; border-bottom: 1px solid #eee; padding: 12px 20px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.thread-head .th-name { font-weight: 700; font-size: 15px; }
.thread-head .th-role { font-size: 12px; color: #888; }
.messages-wrap { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.msg-row { display: flex; align-items: flex-end; gap: 8px; }
.msg-row.sent { flex-direction: row-reverse; }
.msg-bub { max-width: 62%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg-row.recv .msg-bub { background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.07); }
.msg-row.sent .msg-bub { background: #e94560; color: #fff; border-bottom-right-radius: 4px; }
.msg-col { display: flex; flex-direction: column; }
.msg-time { font-size: 10px; color: #bbb; margin-top: 3px; }
.msg-row.sent .msg-time { text-align: right; }
.date-div { text-align: center; font-size: 11px; color: #bbb; margin: 8px 0; display: flex; align-items: center; gap: 8px; }
.date-div::before, .date-div::after { content: ''; flex: 1; height: 1px; background: #e5e5e5; }
.chat-input { background: #fff; border-top: 1px solid #eee; padding: 12px 16px; display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.chat-input input { flex: 1; border: 1.5px solid #ddd; border-radius: 24px; padding: 9px 16px; font-size: 14px; outline: none; }
.chat-input input:focus { border-color: #e94560; }
.chat-send { background: #e94560; border: none; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: background .2s; flex-shrink: 0; }
.chat-send:hover { background: #c73652; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #ccc; gap: 12px; font-size: 15px; }
.back-btn { display: none; background: none; border: none; font-size: 22px; color: #888; padding: 4px 10px 4px 0; cursor: pointer; flex-shrink: 0; }

/* ── AUTH PAGES ── */
.auth-wrap  { min-height: 100vh; background: linear-gradient(150deg, #0f3460, #16213e); display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card  { background: #fff; border-radius: 16px; padding: 36px; width: 100%; max-width: 500px; box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.auth-logo  { text-align: center; margin-bottom: 28px; }
.auth-logo .logo { font-size: 26px; }
.type-toggle { display: flex; background: #f5f5f5; border-radius: 8px; padding: 4px; margin-bottom: 24px; gap: 0; }
.type-btn { flex: 1; padding: 9px; border: none; background: none; border-radius: 6px; font-weight: 600; font-size: 14px; cursor: pointer; color: #888; transition: all .15s; }
.type-btn.active { background: #fff; color: #0f3460; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* ── PROFILE PAGE ── */
.profile-hero { background: #fff; padding: 32px 0; border-bottom: 1px solid #eee; margin-bottom: 28px; }
.profile-info { display: flex; gap: 24px; align-items: flex-start; }
.profile-info .name  { font-size: 24px; font-weight: 800; }
.profile-info .loc   { color: #888; font-size: 14px; margin-top: 4px; }
.profile-info .bio   { color: #555; font-size: 14px; line-height: 1.7; margin-top: 12px; max-width: 560px; }
.rate-box { background: #f4f6f9; border-radius: 10px; padding: 14px 18px; margin-top: 16px; display: inline-flex; gap: 24px; border: 1px solid #e8edf5; }
.rate-box .rate-item .lbl { font-size: 12px; color: #888; }
.rate-box .rate-item .val { font-size: 17px; font-weight: 700; margin-top: 2px; color: #0f3460; }

/* ── UTILITIES ── */
.divider { height: 1px; background: #eee; margin: 20px 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.text-muted  { color: #888; font-size: 14px; }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.empty  { text-align: center; padding: 60px 20px; color: #bbb; }
.empty .ico { font-size: 48px; margin-bottom: 12px; }
.spinner { display: inline-block; width: 22px; height: 22px; border: 2px solid #eee; border-top-color: #e94560; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FILTERS SIDEBAR ── */
.browse-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.filter-panel  { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.07); position: sticky; top: 76px; }
.filter-panel h4 { font-size: 12px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.filter-section { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #f0f0f0; }
.filter-section:last-child { border: none; margin: 0; padding: 0; }
.filter-chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 20px; border: 1.5px solid #ddd; font-size: 12px; cursor: pointer; transition: all .15s; background: #fff; margin: 2px; white-space: nowrap; }
.filter-chip.active { background: #e94560; border-color: #e94560; color: #fff; font-weight: 600; }
.filter-range { display: flex; gap: 6px; align-items: center; font-size: 12px; color: #888; }
.filter-range input { width: 70px; padding: 6px 8px; border: 1.5px solid #ddd; border-radius: 7px; font-size: 13px; outline: none; }
.filter-range input:focus { border-color: #e94560; }
.ph-count { font-size: 13px; color: #888; margin-bottom: 14px; }
.view-toggle { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; }
#map-container { height: 500px; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* ── LEVEL BADGES ── */
.level-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.level-new       { background: #f5f5f5; color: #999; }
.level-rising    { background: #fff3e0; color: #e65100; }
.level-top_rated { background: #fff8e1; color: #f9a825; }

/* ── PACKAGES ── */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.pkg-card { border: 2px solid #eee; border-radius: 12px; padding: 18px; cursor: pointer; transition: all .18s; position: relative; }
.pkg-card:hover { border-color: #e94560; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(233,69,96,.1); }
.pkg-card.selected { border-color: #e94560; background: #fff0f3; }
.pkg-name  { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.pkg-price { font-size: 20px; font-weight: 800; color: #e94560; margin-bottom: 10px; }
.pkg-days  { font-size: 12px; color: #888; margin-bottom: 10px; }
.pkg-list  { list-style: none; font-size: 13px; color: #555; }
.pkg-list li { padding: 2px 0; }
.pkg-list li::before { content: '✓ '; color: #43a047; font-weight: 700; }

/* ── FAQ ── */
.faq-wrap { }
.faq-item { border-bottom: 1px solid #f0f0f0; }
.faq-item:last-child { border: none; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 15px 0; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #222; }
.faq-q .faq-arrow { transition: transform .2s; color: #aaa; font-size: 16px; }
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 14px; font-size: 14px; color: #555; line-height: 1.7; }
.faq-a.open { display: block; }

/* ── PROFILE COMPLETENESS ── */
.completeness-wrap { background: linear-gradient(135deg, #0f3460, #16213e); border-radius: 12px; padding: 18px 20px; margin-bottom: 24px; color: #fff; }
.completeness-top  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.completeness-pct  { font-size: 22px; font-weight: 800; color: #e94560; }
.completeness-bar  { height: 8px; background: rgba(255,255,255,.2); border-radius: 4px; overflow: hidden; }
.completeness-fill { height: 100%; background: #e94560; border-radius: 4px; transition: width .5s; }
.completeness-tips { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.65); }

/* ── FLOATING BOOK NOW ── */
.floating-book { display: none; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 150; padding: 14px 36px; border-radius: 30px; font-size: 16px; font-weight: 700; box-shadow: 0 6px 20px rgba(233,69,96,.45); white-space: nowrap; }

/* ── CHAT ADDITIONS ── */
.msg-read { font-size: 10px; color: #e94560; text-align: right; margin-top: 1px; }
.chat-attach { background: none; border: none; color: #aaa; font-size: 20px; cursor: pointer; padding: 4px 6px; }
.chat-attach:hover { color: #e94560; }
.msg-file { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15); padding: 6px 10px; border-radius: 8px; font-size: 13px; text-decoration: none; color: inherit; }
.recv .msg-file { background: #f0f0f0; color: #333; }
.offer-card { background: #fff8e1; border: 2px solid #ffd54f; border-radius: 12px; padding: 16px; margin: 8px 0; }
.offer-amount { font-size: 24px; font-weight: 800; color: #0f3460; margin: 6px 0 12px; }

/* Grid children may shrink below their content width (prevents sideways scrolling on phones) */
.two-col > *, .three-col > *, .browse-layout > * { min-width: 0; }
img { max-width: 100%; }

/* ── Browse: card links, mobile filter sheet ── */
a.ph-card { display: block; color: inherit; text-decoration: none; }
a.ph-card:focus-visible { outline: 3px solid #e94560; outline-offset: 2px; }
.filter-toggle, .filter-sheet-head, .filter-sheet-done { display: none; }
body.no-scroll { overflow: hidden; }
:focus-visible { outline: 2px solid #e94560; outline-offset: 2px; }

/* ── RESPONSIVE ── */
/* ── Footer ── */
.site-footer { background: #16213e; color: rgba(255,255,255,.7); margin-top: 48px; padding: 28px 0 18px; font-size: 13px; }
.site-footer .logo { color: #fff; font-size: 17px; }
.site-footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.site-footer-note  { margin-top: 6px; color: rgba(255,255,255,.55); }
.site-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer-links a { color: rgba(255,255,255,.8); font-weight: 600; }
.site-footer-links a:hover { color: #fff; }
.site-footer-copy  { margin-top: 18px; color: rgba(255,255,255,.4); font-size: 12px; }
.auth-wrap ~ .site-footer { margin-top: 0; border-top: 1px solid rgba(255,255,255,.08); }

/* ── Homepage: onboarding empty state + photographer CTA ── */
.join-cta { background: linear-gradient(135deg, #e94560, #c73652); color: #fff; border-radius: 12px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.join-cta h3 { font-size: 18px; margin-bottom: 4px; }
.join-cta p  { font-size: 14px; opacity: .9; }
.join-cta .btn { background: #fff; color: #e94560; font-weight: 700; }
.join-cta .btn:hover { background: #fdecef; }
.onboarding-empty { background: #fff; border-radius: 12px; padding: 48px 24px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.onboarding-empty .ico { font-size: 44px; margin-bottom: 10px; }
.onboarding-empty h2 { font-size: 22px; color: #0f3460; margin-bottom: 8px; }
.onboarding-empty p  { color: #777; max-width: 440px; margin: 0 auto 20px; line-height: 1.6; }
.browse-layout.no-photographers { grid-template-columns: 1fr; }
.browse-layout.no-photographers .filter-panel, .browse-layout.no-photographers .browse-tools { display: none; }

/* ── Legal pages ── */
.legal { max-width: 820px; }
.legal .draft-banner { background: #fff3e0; color: #8a4b00; border-left: 4px solid #f0a500; padding: 12px 16px; border-radius: 8px; font-weight: 700; margin-bottom: 20px; }
.legal h1 { font-size: 2rem; color: #0f3460; margin-bottom: 6px; }
.legal .updated { color: #999; font-size: 13px; margin-bottom: 24px; }
.legal h2 { font-size: 1.15rem; color: #0f3460; margin: 28px 0 10px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: #444; }
.legal p { margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 10px; }
.legal .ph { background: #fff3e0; padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* ── Terms checkbox (signup) ── */
.terms-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #555; margin-top: 4px; }
.terms-check input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
.terms-check a { color: #e94560; font-weight: 600; }

@media (max-width: 900px) {
  .two-col      { grid-template-columns: 1fr; }
  .stats-row    { grid-template-columns: 1fr 1fr; }
  .three-col    { grid-template-columns: 1fr 1fr; }
  .chat-page    { grid-template-columns: 1fr; }
  .convo-panel  { width: 100%; }
  .thread-panel { display: none; }
  .back-btn     { display: inline-flex; }
  .browse-layout { grid-template-columns: 1fr; }
  .filter-panel  { display: none; }
  .filter-panel.open { display: block; position: fixed; inset: 0; z-index: 1000; border-radius: 0; overflow-y: auto; padding: 16px 16px 24px; }
  .filter-panel.open .filter-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 18px; }
  .filter-panel.open .filter-sheet-done { display: block; margin-top: 20px; position: sticky; bottom: 0; }
  .filter-toggle { display: inline-flex; }
  .filter-chip  { padding: 8px 14px; font-size: 13px; }
  .floating-book { display: flex; }
}
@media (max-width: 600px) {
  .hero h1  { font-size: 1.8rem; }
  .ph-grid  { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row{ grid-template-columns: 1fr 1fr; }
  .port-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 440px) {
  .ph-grid  { grid-template-columns: 1fr; }
  .hero     { padding-top: 40px; padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
