:root {
  --navy: #10243e;
  --navy-2: #193a59;
  --teal: #08786e;
  --teal-dark: #065f57;
  --mint: #dff7f0;
  --gold: #f3b64d;
  --ink: #16263b;
  --muted: #5e6b7a;
  --line: #e5ebf2;
  --bg: #f4f7fa;
  --white: #ffffff;
  --danger: #c45252;
  --shadow: 0 18px 48px rgba(23, 48, 75, .10);
  --radius-lg: 26px;
  --radius-md: 17px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #dfe8ee;
  color: var(--ink);
  font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 34px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(229,235,242,.9);
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -.6px;
  font-size: 22px;
  white-space: nowrap;
}
.brand-button { border: 0; padding: 0; background: transparent; text-align: inherit; cursor: pointer; }
.brand-button:hover .brand-mark { transform: translateY(-1px); box-shadow: 0 12px 23px rgba(13,155,140,.23); }
.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  color: white;
  background: linear-gradient(145deg, #10243e, #0d9b8c);
  box-shadow: 0 8px 16px rgba(16,36,62,.18);
  transition: .2s ease;
}
.brand-mark svg { width: 43px; height: 43px; }
.brand-mark .phoneak-logo-svg { width: 43px; height: 43px; }
.brand-wordmark { display: grid; gap: 4px; line-height: 1; text-align: start; }
.brand-wordmark strong { font-size: 22px; letter-spacing: -.7px; }
.brand-wordmark small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .15px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .avatar-button {
  width: 42px; height: 42px; border: 1px solid var(--line);
  background: white; color: var(--navy); border-radius: 13px; display: grid; place-items: center;
  transition: .2s ease;
}
.icon-button:hover, .avatar-button:hover { border-color: var(--teal); transform: translateY(-1px); }
.icon-button svg, .avatar-button svg { width: 19px; height: 19px; }
.avatar-button { background: var(--mint); border-color: transparent; color: var(--teal-dark); font-weight: 800; }
.language-toggle { min-width: 47px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--teal-dark); font-size: 12px; font-weight: 900; transition: .2s ease; }
.language-toggle:hover { border-color: var(--teal); background: #f4fcfa; transform: translateY(-1px); }
body.ltr .profile-benefits { text-align: left; }
body.ltr .profile-contact-copy strong { text-align: left; }
body.ltr .location-picker, body.ltr .city-option { text-align: left; }
body.ltr .seller-box .seller-status { margin-right: 0; margin-left: auto; }
body.ltr .listing-heart { left: auto; right: 12px; }
body.ltr .section-heading, body.ltr .detail-head { text-align: left; }
.profile-modal .modal-body { padding-top: 4px; }
.profile-empty { text-align: center; padding: 11px 4px 2px; }
.profile-avatar-large { width: 76px; height: 76px; display: grid; place-items: center; margin: 4px auto 15px; border-radius: 25px; color: var(--teal-dark); background: var(--mint); font-size: 27px; font-weight: 900; box-shadow: 0 10px 20px rgba(13,155,140,.12); }
.profile-empty h4 { margin: 0; color: var(--navy); font-size: 20px; }
.profile-empty > p { margin: 9px auto 19px; color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 330px; }
.profile-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.profile-benefits { display: grid; gap: 10px; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); text-align: right; list-style: none; }
.profile-benefits li { display: flex; align-items: center; gap: 9px; color: #526777; font-size: 11px; }
.benefit-check { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: var(--teal-dark); background: var(--mint); font-weight: 900; }
.profile-card { display: grid; gap: 17px; }
.profile-identity { display: flex; align-items: center; gap: 12px; padding: 6px 0 16px; border-bottom: 1px solid var(--line); }
.profile-identity .profile-avatar-large { width: 56px; height: 56px; margin: 0; border-radius: 18px; font-size: 21px; }
.profile-identity h4 { margin: 0; color: var(--navy); font-size: 18px; }
.profile-identity p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.verified-pill { margin-inline-start: auto; align-self: start; padding: 5px 8px; border-radius: 999px; background: var(--mint); color: var(--teal-dark); font-size: 10px; font-weight: 800; white-space: nowrap; }
.profile-contact { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fbfdfd; }
.profile-contact-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--teal-dark); background: var(--mint); }
.profile-contact-icon svg { width: 16px; height: 16px; }
.profile-contact-copy { display: grid; gap: 3px; }
.profile-contact-copy strong { color: var(--navy); font-size: 12px; direction: ltr; text-align: right; }
.profile-contact-copy span { color: var(--muted); font-size: 10px; }
.profile-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.profile-stat { padding: 11px 6px; border-radius: 12px; background: #f5f8fa; text-align: center; }
.profile-stat strong { display: block; color: var(--navy); font-size: 16px; }
.profile-stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.profile-city { display: flex; align-items: center; gap: 8px; color: #5d7180; font-size: 12px; }
.profile-city svg { width: 17px; height: 17px; color: var(--teal); }
.profile-edit-form, .auth-form { display: grid; gap: 13px; }
.profile-edit-form h4 { margin: 0 0 2px; color: var(--navy); font-size: 17px; }
.field-group { display: grid; gap: 6px; }
.field-group label { color: var(--navy); font-size: 11px; font-weight: 800; }
.field-group input, .field-group select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; outline: 0; color: var(--ink); background: #fcfdfe; }
.field-group input:focus, .field-group select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,155,140,.10); }
.auth-intro { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 4px; margin-bottom: 15px; border-radius: 13px; background: #f1f5f7; }
.auth-tab { border: 0; border-radius: 10px; padding: 10px 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; }
.auth-tab.active { color: var(--navy); background: white; box-shadow: 0 3px 10px rgba(31,57,78,.08); }
.auth-help { margin: -3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.auth-switch { border: 0; background: transparent; color: var(--teal-dark); padding: 4px; font-size: 11px; font-weight: 800; }
.otp-card { padding: 13px; border: 1px solid #ccece4; border-radius: 13px; background: #f1fbf8; }
.otp-card strong { display: block; color: var(--navy); font-size: 13px; }
.otp-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.otp-card input { margin-top: 11px; width: 100%; border: 1px solid #b9dfd6; border-radius: 10px; padding: 12px; outline: 0; text-align: center; letter-spacing: 6px; font-size: 19px; background: white; }
.otp-card input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,155,140,.10); }
.auth-note { margin: 0; color: #8a98a4; font-size: 10px; line-height: 1.7; }
.auth-inline-link { border: 0; background: transparent; color: var(--teal-dark); padding: 2px 0; font-size: 11px; font-weight: 800; text-align: right; }
.otp-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.otp-actions .secondary-button { padding: 8px 10px; font-size: 11px; }
.otp-actions .secondary-button:disabled { opacity: .55; cursor: not-allowed; }
.otp-countdown { color: var(--muted); font-size: 10px; }
.profile-completion-note { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid #ccece4; border-radius: 12px; background: #f1fbf8; }
.profile-completion-note strong { color: var(--navy); font-size: 13px; }
.profile-completion-note span { color: var(--muted); font-size: 10px; line-height: 1.6; }
@media (max-width: 610px) {
  .profile-action-grid { grid-template-columns: 1fr 1fr; }
}
.page { padding: 34px 34px 104px; }
.hero {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 38px 42px;
  background: linear-gradient(125deg, #0d7f76 0%, #0b9b8c 47%, #1b536f 100%);
  color: white;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero:before, .hero:after {
  content: ""; position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; z-index: -1;
}
.hero:before { width: 410px; height: 410px; left: -150px; top: -210px; }
.hero:after { width: 500px; height: 500px; right: -220px; bottom: -340px; }
.hero-copy { width: min(610px, 100%); position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px;
  background: rgba(255,255,255,.15); color: #effffc; font-size: 12px; font-weight: 700; margin-bottom: 16px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #ffd47c; }
h1 { font-size: clamp(28px, 4vw, 47px); line-height: 1.18; margin: 0 0 13px; letter-spacing: -1.4px; }
.hero p { margin: 0; max-width: 520px; line-height: 1.8; font-size: 16px; color: rgba(255,255,255,.86); }
.hero-visual { position: absolute; left: 58px; bottom: -14px; width: 230px; height: 250px; opacity: .98; transform: rotate(-9deg); }
.hero-phone { position: absolute; width: 128px; height: 236px; border: 7px solid #e8fffa; border-radius: 25px; left: 47px; top: 5px; background: linear-gradient(150deg, #244868, #0a7773); box-shadow: 18px 18px 0 rgba(6,53,74,.25), 0 22px 32px rgba(3,42,58,.3); }
.hero-phone:before { content: ""; position: absolute; width: 45px; height: 7px; border-radius: 10px; background: #e8fffa; top: 7px; left: 34px; opacity: .8; }
.hero-phone:after { content: ""; position: absolute; width: 66px; height: 66px; border-radius: 19px; border: 2px solid rgba(255,255,255,.38); left: 24px; top: 72px; box-shadow: inset 0 0 0 14px rgba(255,255,255,.07); }
.phone-lens { position: absolute; border-radius: 50%; border: 3px solid #f1c35d; width: 18px; height: 18px; left: 42px; top: 91px; z-index: 2; }
.phone-lens.two { left: 65px; top: 112px; border-color: #94e6dc; }
.search-panel { margin-top: -29px; margin-inline: 28px; position: relative; z-index: 3; background: white; padding: 13px; border-radius: 18px; box-shadow: 0 14px 32px rgba(35,69,92,.16); display: block; }
.search-row { display: flex; align-items: center; gap: 10px; }
.location-picker { width: 100%; margin-top: 10px; border: 1px solid #dfe9ec; background: #f8fcfb; color: var(--navy); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; text-align: right; transition: .2s ease; }
.location-picker:hover { border-color: var(--teal); background: #f0faf7; }
.location-pin { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; color: var(--teal-dark); background: var(--mint); }
.location-pin svg { width: 17px; height: 17px; }
.location-copy { display: grid; gap: 2px; }
.location-copy small { color: var(--muted); font-size: 10px; }
.location-copy strong { font-size: 12px; }
.location-change { margin-inline-start: auto; color: var(--teal-dark); font-size: 11px; font-weight: 800; }
.location-hint { display: block; margin: 7px 3px 0; color: var(--muted); font-size: 10px; }
.location-modal-note { margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.location-options { display: grid; gap: 9px; }
.city-option { border: 1px solid var(--line); background: white; border-radius: 13px; padding: 13px 14px; color: var(--navy); display: flex; align-items: center; gap: 10px; text-align: right; transition: .2s ease; }
.city-option:hover { border-color: var(--teal); background: #f5fcfa; }
.city-option-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: var(--teal-dark); background: var(--mint); flex: 0 0 auto; }
.city-option-icon svg { width: 16px; height: 16px; }
.city-option-copy { display: grid; gap: 3px; }
.city-option-copy strong { font-size: 13px; }
.city-option-copy span { color: var(--muted); font-size: 10px; }
.city-option-arrow { margin-inline-start: auto; color: #9aabb7; font-size: 16px; }
.location-footnote { margin: 16px 0 0; color: #8a98a4; font-size: 10px; line-height: 1.7; }
.search-input-wrap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 15px; color: var(--muted); }
.search-input-wrap svg { width: 20px; height: 20px; flex: 0 0 auto; }
.search-input { border: 0; outline: 0; width: 100%; color: var(--ink); font-size: 15px; background: transparent; }
.search-input::placeholder { color: #a0adba; }
.search-action, .primary-button { border: 0; color: white; background: var(--teal); border-radius: 12px; padding: 13px 22px; font-weight: 800; transition: .2s ease; }
.search-action:hover, .primary-button:hover { background: var(--teal-dark); transform: translateY(-1px); }
.section { margin-top: 36px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.4px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.text-button { border: 0; background: transparent; color: var(--teal-dark); font-weight: 800; font-size: 13px; padding: 7px 0; }
.text-button:hover { color: var(--navy); }
.chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 3px; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; border: 1px solid var(--line); background: #fff; color: #5d6d7e; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; transition: .2s ease; }
.chip:hover, .chip.active { background: var(--navy); color: white; border-color: var(--navy); }
.chip-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; margin-inline-start: 4px; vertical-align: -5px; color: var(--teal-dark); background: var(--mint); font-size: 10px; }
.chip.active .chip-icon { color: var(--navy); background: white; }
.listing-tools { display: flex; gap: 10px; align-items: center; }
.filter-button { border: 1px solid var(--line); background: white; color: var(--navy); border-radius: 11px; padding: 9px 13px; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12px; }
.filter-button svg { width: 16px; height: 16px; }
.filters-panel { display: none; background: white; border: 1px solid var(--line); border-radius: 15px; padding: 15px; margin: -3px 0 17px; gap: 10px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.filters-panel.open { display: grid; }
.filters-panel label { font-size: 11px; color: var(--muted); display: grid; gap: 5px; }
.filters-panel select { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; }
.listings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.listing-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.backend-status { display: inline-block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.backend-status.ready { color: var(--teal-dark); }
.backend-status.error { color: var(--danger); }
.listing-card { background: white; border-radius: var(--radius-md); border: 1px solid #edf1f5; overflow: hidden; transition: .25s ease; cursor: pointer; }
.listing-card:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(25,55,80,.11); }
.product-image { height: 183px; position: relative; display: grid; place-items: center; overflow: hidden; }
.product-image:before { content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%; border: 1px solid rgba(255,255,255,.34); top: -78px; right: -38px; }
.product-image.blue { background: linear-gradient(145deg, #dfeaf5, #bcd4e8); }
.product-image.lilac { background: linear-gradient(145deg, #ede8fa, #d3c9ed); }
.product-image.sand { background: linear-gradient(145deg, #f7ead9, #efd2b6); }
.product-image.mint { background: linear-gradient(145deg, #e0f5ee, #b8e3d7); }
.listing-heart { position: absolute; top: 12px; left: 12px; width: 35px; height: 35px; display: grid; place-items: center; background: rgba(255,255,255,.82); border: 0; border-radius: 50%; color: var(--navy); z-index: 2; }
.listing-heart svg { width: 17px; height: 17px; }
.listing-heart.saved { color: #d65865; background: #fff1f2; }
.card-content { padding: 15px 16px 16px; }
.card-title-row { display: flex; align-items: start; justify-content: space-between; gap: 9px; }
.card-title { font-size: 16px; margin: 0; font-weight: 900; }
.condition { font-size: 10px; padding: 4px 7px; border-radius: 6px; background: var(--mint); color: var(--teal-dark); white-space: nowrap; font-weight: 800; }
.specs { color: var(--muted); font-size: 12px; margin-top: 6px; }
.card-bottom { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 15px; }
.price { font-size: 17px; font-weight: 900; color: var(--navy); }
.listing-seo-link { display: inline-block; margin-top: 6px; color: var(--teal-dark); font-size: 10px; font-weight: 800; }
.listing-seo-link:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.currency { font-size: 11px; color: var(--muted); font-weight: 700; }
.location { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; }
.location svg { width: 13px; height: 13px; color: var(--teal); }
.empty-state { display: none; grid-column: 1/-1; background: white; border: 1px dashed #ccd8e2; border-radius: var(--radius-md); text-align: center; padding: 45px 20px; color: var(--muted); }
.empty-state.is-visible { display: block; }
.empty-state strong { display: block; color: var(--navy); margin-bottom: 5px; }
.trust-banner { display: flex; align-items: center; gap: 14px; margin-top: 38px; padding: 17px 20px; border-radius: 17px; background: #e9f7f3; border: 1px solid #d5f0e8; }
.trust-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--teal-dark); background: white; }
.trust-icon svg { width: 21px; height: 21px; }
.trust-banner strong { font-size: 13px; display: block; margin-bottom: 4px; color: var(--navy); }
.trust-banner span { color: #547268; font-size: 12px; line-height: 1.7; }
.bottom-nav { position: fixed; z-index: 12; bottom: 17px; left: 50%; transform: translateX(-50%); width: min(515px, calc(100% - 32px)); display: flex; justify-content: space-around; padding: 9px 12px; border: 1px solid rgba(255,255,255,.72); border-radius: 20px; background: rgba(255,255,255,.91); box-shadow: 0 14px 34px rgba(33,58,82,.18); backdrop-filter: blur(18px); }
[hidden] { display: none !important; }
.favorites-view { min-height: 330px; }
.favorites-count { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--teal-dark); background: var(--mint); font-size: 13px; font-weight: 900; }
.favorite-empty { display: block; grid-column: 1 / -1; }
.favorite-empty .primary-button { margin-top: 15px; }
.nav-item { border: 0; background: transparent; min-width: 65px; display: grid; gap: 4px; place-items: center; color: #586979; font-size: 10px; font-weight: 700; }
.nav-item svg { width: 20px; height: 20px; }
.nav-item.active { color: var(--teal-dark); }
.nav-item.post { color: white; background: var(--navy); width: 47px; min-width: 47px; height: 47px; border-radius: 15px; margin-top: -22px; border: 4px solid var(--bg); box-shadow: 0 7px 15px rgba(16,36,62,.2); }
.nav-item.post span { display: none; }
.nav-item.post svg { width: 21px; height: 21px; }
.drawer-overlay { position: fixed; inset: 0; z-index: 28; background: rgba(10,25,43,.42); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.side-drawer { position: fixed; z-index: 31; top: 0; right: 0; width: min(382px, calc(100vw - 34px)); height: 100dvh; overflow-y: auto; padding: 25px 20px 22px; background: rgba(255,255,255,.98); box-shadow: -18px 0 48px rgba(15,35,57,.2); transform: translateX(105%); transition: transform .28s cubic-bezier(.22,.8,.28,1); }
.side-drawer.open { transform: translateX(0); }
body.ltr .side-drawer { right: auto; left: 0; transform: translateX(-105%); box-shadow: 18px 0 48px rgba(15,35,57,.2); }
body.ltr .side-drawer.open { transform: translateX(0); }
body.drawer-open, body.modal-open { overflow: hidden; }
.modal-backdrop[inert] { pointer-events: none; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.drawer-brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 0; }
.drawer-brand-lockup .brand-mark { width: 49px; height: 49px; border-radius: 17px; flex: 0 0 auto; }
.drawer-brand-lockup .brand-mark .phoneak-logo-svg { width: 49px; height: 49px; }
.drawer-brand-copy { display: grid; gap: 5px; }
.drawer-brand-copy strong { color: var(--navy); font-size: 20px; letter-spacing: -.5px; }
.drawer-brand-copy span { color: var(--muted); font-size: 10px; font-weight: 700; }
.drawer-close { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--navy); background: white; }
.drawer-close:hover { border-color: var(--teal); color: var(--teal-dark); }
.drawer-close svg { width: 17px; height: 17px; }
.drawer-discovery { display: flex; align-items: center; gap: 11px; margin: 22px 0 18px; padding: 13px; border: 1px solid #d7f0ea; border-radius: 15px; background: linear-gradient(135deg, #effbf8, #f7fcfb); }
.drawer-discovery-icon { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--teal-dark); background: white; box-shadow: 0 5px 12px rgba(13,155,140,.1); }
.drawer-discovery-icon svg { width: 19px; height: 19px; }
.drawer-discovery-copy { display: grid; gap: 4px; }
.drawer-discovery-copy strong { color: var(--navy); font-size: 12px; }
.drawer-discovery-copy span { color: #5d7b79; font-size: 10px; line-height: 1.55; }
.drawer-section-label { display: block; margin: 20px 5px 8px; color: #9aa9b4; font-size: 10px; font-weight: 900; letter-spacing: .3px; }
.drawer-nav { display: grid; gap: 6px; }
.drawer-nav-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid transparent; border-radius: 13px; color: #526777; background: transparent; text-align: start; font-size: 12px; font-weight: 800; transition: .2s ease; }
.drawer-nav-item:hover, .drawer-nav-item.active { color: var(--teal-dark); background: #effaf7; border-color: #d9f1eb; }
.drawer-nav-item svg { width: 19px; height: 19px; flex: 0 0 auto; }
.drawer-nav-item .drawer-badge { min-width: 22px; height: 22px; display: grid; place-items: center; margin-inline-start: auto; border-radius: 8px; color: var(--teal-dark); background: white; font-size: 10px; }
.drawer-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 27px; padding: 16px 5px 0; border-top: 1px solid var(--line); color: #9aa9b4; font-size: 10px; font-weight: 700; }
.modal-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(10,25,43,.52); display: none; align-items: end; justify-content: center; padding: 18px; }
.modal-backdrop.open { display: flex; }
.modal { width: min(540px, 100%); max-height: min(760px, calc(100vh - 36px)); overflow: auto; background: white; border-radius: 23px; box-shadow: 0 30px 75px rgba(9,27,45,.3); animation: rise .22s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.modal-header h3 { margin: 0; font-size: 18px; }
.close-modal { border: 0; width: 34px; height: 34px; border-radius: 10px; background: #f1f4f7; color: var(--navy); display: grid; place-items: center; }
.close-modal svg { width: 17px; height: 17px; }
.modal-body { padding: 20px; }
.detail-image { height: 220px; border-radius: 17px; margin-bottom: 17px; display: grid; place-items: center; }
.detail-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.detail-head h4 { margin: 0; font-size: 23px; }
.detail-head p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.detail-price { color: var(--teal-dark); font-weight: 900; font-size: 19px; white-space: nowrap; }
.detail-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 20px 0; }
.detail-stat { padding: 11px; border-radius: 12px; background: #f5f8fa; text-align: center; }
.detail-stat b { font-size: 13px; display: block; }
.detail-stat span { font-size: 10px; color: var(--muted); display: block; margin-top: 4px; }
.seller-box { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.seller-avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--mint); color: var(--teal-dark); display: grid; place-items: center; font-weight: 900; }
.seller-box strong { display: block; font-size: 13px; }
.seller-box span { color: var(--muted); font-size: 11px; display: block; margin-top: 3px; }
.seller-box .seller-status { margin-right: auto; color: var(--teal-dark); font-size: 10px; font-weight: 800; }
.seller-box { width: 100%; text-align: right; font: inherit; cursor: pointer; transition: .2s ease; }
.seller-box:hover { border-color: #b9dfd6; background: #f7fcfb; transform: translateY(-1px); }
.seller-box:focus-visible { outline: 3px solid rgba(13,155,140,.18); outline-offset: 2px; }
.seller-unverified { margin-inline-start: auto; color: #8795a1; font-size: 10px; font-weight: 800; text-align: end; }
.seller-profile-modal .modal { width: min(680px, 100%); }
.seller-profile { display: grid; gap: 16px; }
.seller-profile-hero { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid #d8eee9; border-radius: 17px; background: linear-gradient(135deg, #f0fbf8, #fbfdfd); }
.seller-profile-avatar { width: 62px; height: 62px; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; border-radius: 20px; color: var(--teal-dark); background: var(--mint); font-size: 23px; font-weight: 900; }
.seller-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-profile-identity { min-width: 0; display: grid; gap: 5px; }
.seller-profile-identity h4 { margin: 0; color: var(--navy); font-size: 20px; }
.seller-profile-identity p { margin: 0; color: var(--muted); font-size: 11px; }
.seller-profile-identity .verified-pill { margin-inline-start: 0; justify-self: start; }
.seller-profile-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.seller-metric { min-height: 70px; display: grid; align-content: center; gap: 6px; padding: 11px 8px; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-align: center; }
.seller-metric strong { color: var(--navy); font-size: 17px; line-height: 1.15; }
.seller-metric span { color: var(--muted); font-size: 10px; line-height: 1.35; }
.seller-metric.pending strong { color: #8795a1; font-size: 12px; }
.seller-profile-note { margin: 0; padding: 10px 12px; border-radius: 11px; color: #6e7f89; background: #f5f8fa; font-size: 10px; line-height: 1.7; }
.profile-verification-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 12px; }
.trust-score-panel { display: grid; gap: 10px; padding: 14px; border: 1px solid #cfe8e2; border-radius: 16px; background: linear-gradient(145deg, #f7fdfb, #ffffff); }
.trust-score-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trust-score-head > div { display: grid; gap: 4px; }
.trust-score-head strong { color: var(--navy); font-size: 14px; }
.trust-score-head span { color: var(--muted); font-size: 10px; }
.trust-score-number { color: var(--teal-dark); font-size: 22px; line-height: 1; white-space: nowrap; }
.trust-score-number.pending { color: #8795a1; font-size: 13px; }
.trust-score-note, .trust-score-rubric { margin: 0; color: #607684; font-size: 10px; line-height: 1.7; }
.trust-score-rubric { color: var(--navy); font-weight: 700; }
.trust-evidence-list { display: grid; gap: 7px; }
.trust-evidence-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.trust-evidence-row > div { min-width: 0; display: grid; gap: 3px; }
.trust-evidence-row strong { color: var(--navy); font-size: 11px; }
.trust-evidence-row span { color: var(--muted); font-size: 9px; line-height: 1.55; }
.trust-evidence-row b { flex: 0 0 auto; color: #6b7e89; font-size: 10px; }
.trust-evidence-row[data-state="verified"] { border-color: #bce4db; background: #fbfffe; }
.trust-evidence-row[data-state="verified"] b { color: var(--teal-dark); }
.trust-evidence-row[data-state="not_met"] b { color: #9b6870; }
.seller-profile-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 4px; border-radius: 13px; background: #f1f5f7; }
.seller-profile-tab { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 10px 8px; color: var(--muted); background: transparent; font: inherit; font-size: 11px; font-weight: 800; }
.seller-profile-tab span { min-width: 20px; padding: 2px 5px; border-radius: 7px; color: var(--teal-dark); background: #e4f6f2; font-size: 10px; }
.seller-profile-tab.active { color: var(--navy); background: white; box-shadow: 0 3px 10px rgba(31,57,78,.08); }
.seller-profile-listings { display: grid; gap: 11px; }
.seller-review-list { display: grid; gap: 10px; }
.seller-review { display: grid; gap: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.seller-review-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.seller-review-head strong { color: var(--navy); font-size: 12px; }
.seller-review-head span { color: #b47c15; font-size: 11px; font-weight: 900; }
.seller-review p { margin: 0; color: #526777; font-size: 11px; line-height: 1.75; }
.seller-review small { color: var(--muted); font-size: 10px; }
.seller-profile-empty { display: grid; gap: 7px; padding: 20px 10px; border: 1px dashed #cbd9df; border-radius: 13px; color: var(--muted); text-align: center; }
.seller-profile-empty strong { color: var(--navy); font-size: 13px; }
.seller-profile-empty span { font-size: 10px; line-height: 1.7; }
@media (max-width: 520px) {
  .seller-profile-metrics { grid-template-columns: 1fr 1fr; }
  .seller-metric:last-child { grid-column: 1 / -1; }
}
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.secondary-button { border: 1px solid var(--line); color: var(--navy); background: white; border-radius: 12px; padding: 12px; font-weight: 800; }
.secondary-button:hover { background: #f7fafb; }
.form-grid { display: grid; gap: 14px; }
.form-group { display: grid; gap: 6px; }
.form-group label, .form-group .form-label { font-size: 12px; font-weight: 800; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; outline: none; color: var(--ink); background: #fcfdfe; }
.form-group textarea { min-height: 78px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,155,140,.10); }
.form-note { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 0; }
.image-manager { display: grid; gap: 10px; }
.image-manager-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.image-manager-count { color: var(--navy); font-size: 12px; font-weight: 900; }
.image-manager-recommendation { color: var(--muted); font-size: 10px; line-height: 1.5; text-align: start; }
.image-dropzone { position: relative; display: grid; place-items: center; gap: 5px; min-height: 112px; padding: 17px 14px; overflow: hidden; border: 1.5px dashed #a9cbc5; border-radius: 14px; color: var(--teal-dark); background: linear-gradient(135deg, #f1fcfa, #fbfdfd); text-align: center; cursor: pointer; transition: .2s ease; }
.image-dropzone:hover, .image-dropzone:focus-within, .image-dropzone.is-dragover { border-color: var(--teal); background: #ecfaf7; box-shadow: 0 0 0 3px rgba(13,155,140,.08); }
.image-dropzone.is-busy { opacity: .65; pointer-events: none; }
.image-dropzone svg { width: 27px; height: 27px; }
.image-dropzone strong { color: var(--navy); font-size: 12px; }
.image-dropzone span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.image-dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.image-feedback { min-height: 18px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.image-feedback.warning { color: #94621f; }
.image-feedback.error { color: #b23b45; }
.image-feedback.success { color: var(--teal-dark); }
.image-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.image-list-empty { grid-column: 1 / -1; padding: 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: #fafcfc; font-size: 11px; text-align: center; }
.image-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: white; transition: .18s ease; }
.image-card:hover { border-color: #9bcfc6; box-shadow: 0 5px 14px rgba(23,61,97,.08); }
.image-card.is-primary { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(13,155,140,.12); }
.image-card.drag-over { border-color: var(--teal-dark); outline: 2px dashed rgba(13,155,140,.45); outline-offset: 2px; }
.image-card-preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #eef3f4; }
.image-card-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-card-order { position: absolute; top: 7px; left: 7px; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 8px; color: white; background: rgba(16,36,62,.76); font-size: 10px; font-weight: 900; }
.image-card-badge { position: absolute; top: 7px; right: 7px; padding: 5px 7px; border-radius: 999px; color: white; background: rgba(13,125,115,.92); font-size: 9px; font-weight: 900; }
.image-card-body { display: grid; gap: 7px; padding: 8px; }
.image-card-name { overflow: hidden; color: var(--navy); font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: left; }
.image-card-size { color: var(--muted); font-size: 9px; }
.image-card-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.image-card-btn { min-height: 28px; padding: 5px 3px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); background: #fbfcfd; font-size: 9px; font-weight: 800; }
.image-card-btn:hover { border-color: var(--teal); color: var(--teal-dark); background: #f0fbf8; }
.image-card-btn.active { border-color: var(--teal); color: white; background: var(--teal-dark); }
.image-card-btn.danger { color: #a83b47; }
.image-card-btn.danger:hover { border-color: #e6aeb4; color: #a83b47; background: #fff6f7; }
@media (max-width: 420px) {
  .image-manager-head { align-items: start; flex-direction: column; gap: 3px; }
  .image-card-tools { grid-template-columns: repeat(2, 1fr); }
}
.toast { position: fixed; z-index: 60; bottom: 88px; left: 50%; transform: translate(-50%, 15px); background: var(--navy); color: white; padding: 11px 16px; border-radius: 11px; font-size: 12px; opacity: 0; pointer-events: none; transition: .22s ease; box-shadow: 0 10px 24px rgba(16,36,62,.2); white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.data-note { text-align: center; color: #586979; font-size: 10px; margin-top: 23px; }
@media (max-width: 850px) {
  .hero-visual { left: -18px; opacity: .38; }
  .hero-copy { max-width: 90%; }
  .listings { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 610px) {
  body { background: var(--bg); }
  .topbar { height: 66px; padding: 0 17px; }
  .brand { font-size: 20px; }
  .brand-wordmark small { display: none; }
  .brand-mark, .brand-mark .phoneak-logo-svg { width: 39px; height: 39px; }
  .side-drawer { width: min(355px, calc(100vw - 24px)); padding-inline: 16px; }
  .page { padding: 20px 14px 105px; }
  .hero { min-height: 319px; padding: 29px 23px; border-radius: 21px; }
  .hero p { font-size: 14px; line-height: 1.75; }
  .hero-visual { left: -45px; bottom: -21px; opacity: .25; transform: scale(.85) rotate(-9deg); }
  .search-panel { margin-inline: 11px; padding: 9px; border-radius: 15px; gap: 4px; }
  .search-input-wrap { padding: 0 9px; }
  .search-input { font-size: 13px; }
  .search-action { padding: 11px 12px; font-size: 12px; }
  .section { margin-top: 29px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading p { font-size: 11px; }
  .listing-tools .filter-button span { display: none; }
  .listings { gap: 10px; }
  .product-image { height: 145px; }
  .card-content { padding: 12px 11px 13px; }
  .card-title { font-size: 13px; }
  .condition { font-size: 8px; padding: 4px 5px; }
  .specs { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-bottom { margin-top: 12px; display: block; }
  .price { font-size: 14px; }
  .location { margin-top: 7px; font-size: 10px; }
  .detail-head h4 { font-size: 20px; }
  .detail-price { font-size: 16px; }
  .trust-banner { align-items: start; padding: 14px; }
  .trust-banner span { font-size: 11px; }
}

.data-chips { flex-wrap: wrap; min-height: 39px; }
.data-chip { display: inline-flex; align-items: center; gap: 6px; }
.data-chip small { font-size: 10px; opacity: .72; font-weight: 800; }
.section-count { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.data-loading { color: var(--muted); font-size: 12px; padding: 12px 0; }
.listing-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.view-count { color: var(--teal-dark); font-weight: 800; }
.data-badge { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--teal-dark); font-size: 10px; font-weight: 900; }
.no-image { width: 100%; height: 100%; min-height: 145px; display: grid; place-items: center; padding: 16px; color: var(--muted); background: #f4f7f8; font-size: 11px; text-align: center; }
.detail-image.no-image { min-height: 220px; }
.location-options .data-empty { width: 100%; }

.filters-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.filters-panel label { min-width: 0; }
.filters-panel input, .filters-panel select { width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; outline: 0; }
.filters-panel input:focus, .filters-panel select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,155,140,.10); }
.filter-field-wide { grid-column: span 2; }
.filter-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filter-reset { border: 1px solid #dbe5eb; background: #f7fafb; color: var(--navy); border-radius: 9px; padding: 9px 13px; font-size: 11px; font-weight: 800; }
.filter-reset:hover { border-color: var(--teal); color: var(--teal-dark); background: #f1fbf8; }
.filter-help { color: var(--muted); font-size: 10px; line-height: 1.5; }
.publish-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 850px) {
  .filters-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .filters-panel { grid-template-columns: 1fr; }
  .filter-field-wide { grid-column: auto; }
  .filter-actions { align-items: stretch; flex-direction: column; }
  .filter-reset { width: 100%; }
  .publish-spec-grid { grid-template-columns: 1fr; }
}

/* Real buyer-seller chat */
.notification-badge, .chat-badge { min-width: 18px; height: 18px; display: grid; place-items: center; position: absolute; top: 5px; right: 5px; padding: 0 5px; border-radius: 999px; color: white; background: var(--danger); font-size: 9px; font-weight: 900; line-height: 1; }
.top-actions .icon-button { position: relative; }
.notification-badge[hidden], .chat-badge[hidden] { display: none; }
.chat-modal { width: min(980px, 100%); max-height: min(820px, calc(100vh - 28px)); overflow: hidden; }
.chat-modal .modal-header { padding: 15px 18px; }
.chat-modal .modal-header h3 { display: flex; align-items: center; gap: 8px; }
.chat-header-note { color: var(--muted); font-size: 10px; font-weight: 700; }
.chat-modal-body { padding: 0; }
.chat-layout { min-height: min(680px, calc(100vh - 125px)); display: grid; grid-template-columns: 300px minmax(0, 1fr); background: #f7fafb; }
.chat-sidebar { min-width: 0; padding: 15px; border-inline-end: 1px solid var(--line); background: white; overflow: auto; }
.chat-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.chat-sidebar-head strong { color: var(--navy); font-size: 13px; }
.chat-sidebar-head span { color: var(--muted); font-size: 10px; }
.chat-conversation-list { display: grid; gap: 7px; }
.chat-conversation { width: 100%; min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 8px; border: 1px solid transparent; border-radius: 13px; color: var(--ink); background: transparent; text-align: start; }
.chat-conversation:hover, .chat-conversation.active { border-color: #d6eee8; background: #f0fbf8; }
.chat-avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: var(--teal-dark); background: var(--mint); font-size: 15px; font-weight: 900; }
.chat-avatar.large { width: 42px; height: 42px; border-radius: 14px; }
.chat-conversation-copy { min-width: 0; display: grid; gap: 3px; }
.chat-conversation-copy strong, .chat-conversation-copy small, .chat-conversation-copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-conversation-copy strong { color: var(--navy); font-size: 11px; }
.chat-conversation-copy small { color: var(--teal-dark); font-size: 9px; }
.chat-conversation-copy > span { color: var(--muted); font-size: 10px; }
.chat-conversation-meta { min-width: 38px; display: grid; justify-items: end; gap: 6px; color: #9aa7b1; font-size: 8px; text-align: end; }
.chat-conversation-meta b { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 999px; color: white; background: var(--teal); font-size: 9px; }
.chat-empty-list, .chat-login-card { display: grid; gap: 7px; padding: 22px 12px; border: 1px dashed #cbd9df; border-radius: 13px; color: var(--muted); text-align: center; }
.chat-empty-list strong, .chat-login-card strong { color: var(--navy); font-size: 12px; }
.chat-empty-list span, .chat-login-card span { font-size: 10px; line-height: 1.7; }
.chat-login-card .primary-button { margin-top: 4px; }
.chat-thread { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #f7fafb; }
.chat-thread-header { position: relative; z-index: 2; }
.chat-messages { position: relative; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; }
.chat-composer-area { position: sticky; bottom: 0; z-index: 4; padding-bottom: max(12px, env(safe-area-inset-bottom)); box-shadow: 0 -5px 16px rgba(21,53,75,.05); }
.chat-composer textarea { resize: none; overflow-y: auto; }
.chat-scroll-latest { position: sticky; bottom: 10px; z-index: 3; display: block; justify-self: end; min-height: 30px; margin: 0; padding: 6px 10px; border: 1px solid #cfe6e1; border-radius: 999px; color: var(--teal-dark); background: rgba(255,255,255,.96); box-shadow: 0 5px 15px rgba(21,53,75,.12); font-size: 10px; font-weight: 800; }
.chat-scroll-latest:hover { border-color: var(--teal); background: #f0fbf8; }
.chat-unread-divider { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; color: var(--teal-dark); font-size: 9px; font-weight: 900; }
.chat-unread-divider::before, .chat-unread-divider::after { content: ''; height: 1px; flex: 1; background: #bfe5dc; }
.chat-unread-divider span { padding: 4px 8px; border-radius: 999px; background: #e5f7f2; white-space: nowrap; }
.chat-message.pending .chat-bubble { border-color: #c9e4df; background: #f8fdfc; }
.chat-message.failed .chat-bubble { border-color: #f0cfd2; background: #fffafa; }
.chat-message-status { color: #8b9aa3; font-size: 8px; }
.chat-message.failed .chat-message-status { color: var(--danger); }
.chat-retry-message { border: 0; padding: 0; color: var(--teal-dark); background: transparent; font: inherit; font-size: 8px; font-weight: 900; cursor: pointer; }
.chat-retry-message:hover { text-decoration: underline; }
.chat-image-local { cursor: default; }
.chat-thread-skeleton { display: grid; align-content: start; gap: 12px; padding: 10px 4px; }
.chat-skeleton-bubble { width: 57%; height: 48px; border-radius: 15px 15px 15px 4px; background: linear-gradient(90deg, #e7eff0 25%, #f6fafa 42%, #e7eff0 63%); background-size: 300% 100%; animation: phoneakChatShimmer 1.2s infinite; }
.chat-skeleton-bubble.mine { justify-self: end; width: 64%; border-radius: 15px 15px 4px 15px; }
.chat-list-skeleton { display: grid; gap: 8px; }
.chat-list-skeleton span { display: block; height: 58px; border-radius: 13px; background: linear-gradient(90deg, #edf3f4 25%, #fbfdfd 42%, #edf3f4 63%); background-size: 300% 100%; animation: phoneakChatShimmer 1.2s infinite; }
@keyframes phoneakChatShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.chat-thread-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: white; }
.chat-thread-person { min-width: 0; display: flex; align-items: center; gap: 9px; }
.chat-thread-person > span:last-child { min-width: 0; display: grid; gap: 4px; }
.chat-thread-person strong, .chat-thread-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread-person strong { color: var(--navy); font-size: 13px; }
.chat-thread-person small { color: var(--muted); font-size: 9px; }
.chat-thread-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.chat-icon-action { min-height: 29px; padding: 5px 8px; border: 1px solid #dce6eb; border-radius: 9px; color: var(--navy); background: #fbfcfd; font-size: 9px; font-weight: 800; }
.chat-icon-action:hover { border-color: var(--teal); color: var(--teal-dark); background: #f0fbf8; }
.chat-icon-action.danger { color: var(--danger); }
.chat-icon-action.disabled { opacity: .55; cursor: not-allowed; }
.chat-messages { min-height: 0; overflow: auto; display: grid; align-content: start; gap: 9px; padding: 17px 15px; background: linear-gradient(180deg, #f8fbfc 0%, #f2f7f8 100%); }
.chat-message { display: flex; max-width: 82%; }
.chat-message.mine { justify-self: end; }
.chat-message.theirs { justify-self: start; }
.chat-bubble { min-width: 74px; padding: 9px 11px 7px; border: 1px solid #dce8eb; border-radius: 15px 15px 4px 15px; background: white; box-shadow: 0 4px 12px rgba(21,53,75,.05); }
.chat-message.theirs .chat-bubble { border-radius: 15px 15px 15px 4px; background: #eef9f6; }
.chat-bubble p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.7; white-space: normal; overflow-wrap: anywhere; }
.chat-bubble footer { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 5px; color: #91a0a9; font-size: 8px; direction: ltr; }
.chat-receipt { color: var(--teal-dark); font-weight: 900; letter-spacing: -2px; }
.chat-image-link { display: block; overflow: hidden; margin: -2px -3px 7px; border-radius: 10px; background: #e8f0f1; }
.chat-image-link img { display: block; width: min(260px, 100%); max-height: 270px; object-fit: cover; }
.chat-image-link.is-unavailable { padding: 10px 12px; color: #627382; background: #eef3f4; font-size: 11px; text-decoration: none; }
.chat-thread-placeholder, .chat-error { align-self: center; justify-self: center; display: grid; gap: 7px; max-width: 300px; padding: 25px 18px; color: var(--muted); text-align: center; }
.chat-thread-placeholder strong, .chat-error { color: var(--navy); font-size: 13px; }
.chat-thread-placeholder span { font-size: 10px; line-height: 1.7; }
.chat-composer-area { padding: 9px 12px 12px; border-top: 1px solid var(--line); background: white; }
.chat-composer { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: end; gap: 7px; }
.chat-composer textarea { min-height: 38px; max-height: 120px; resize: vertical; border: 1px solid var(--line); border-radius: 11px; padding: 10px; outline: 0; color: var(--ink); background: #fcfdfe; font-size: 12px; }
.chat-composer textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,155,140,.10); }
.chat-attach-button { width: 36px; height: 38px; display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; color: var(--teal-dark); background: #f0fbf8; font-size: 22px; font-weight: 400; cursor: pointer; }
.chat-attach-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.chat-send-button { min-height: 38px; padding: 8px 13px; }
.chat-attachment-preview { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 7px; }
.chat-attachment-status { width: 100%; margin: 0 0 6px; color: var(--muted); font-size: 11px; }
.chat-draft-image { width: 47px; height: 47px; display: block; position: relative; overflow: hidden; border: 1px solid #b9dfd6; border-radius: 9px; }
.chat-draft-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.chat-draft-image button { width: 18px; height: 18px; display: grid; place-items: center; position: absolute; top: 3px; inset-inline-end: 3px; border: 0; border-radius: 50%; color: white; background: rgba(16,36,62,.75); font-size: 14px; line-height: 1; }
.chat-blocked-note, .chat-composer-disabled { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #f1d2d5; border-radius: 11px; color: var(--danger); background: #fff7f7; font-size: 10px; line-height: 1.6; }
.chat-blocked-note strong { font-size: 11px; }
.notifications-modal, .report-modal { width: min(520px, 100%); }
.notifications-list { display: grid; gap: 8px; }
.notification-row { width: 100%; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; text-align: start; }
.notification-row:hover, .notification-row.unread { border-color: #ccece4; background: #f3fcfa; }
.notification-row.unread { box-shadow: inset 3px 0 0 var(--teal); }
.notification-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--teal-dark); background: var(--mint); font-size: 17px; font-weight: 900; }
.notification-row > span:last-child { min-width: 0; display: grid; gap: 4px; }
.notification-row strong { color: var(--navy); font-size: 12px; }
.notification-row small { color: var(--muted); font-size: 10px; line-height: 1.6; }
.notification-row time { color: #95a2ab; font-size: 9px; }
.notification-list-wrap { padding: 15px; }
.report-form { display: grid; gap: 12px; padding: 15px; }
.report-form select, .report-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; outline: 0; color: var(--ink); background: #fcfdfe; font: inherit; font-size: 12px; }
.report-form textarea { min-height: 100px; resize: vertical; }
.report-form select:focus, .report-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,155,140,.10); }
.report-form label { display: grid; gap: 6px; color: var(--navy); font-size: 11px; font-weight: 800; }
@media (max-width: 700px) {
  .chat-modal { max-height: calc(100vh - 16px); border-radius: 18px; }
  .chat-layout { grid-template-columns: 1fr; min-height: calc(100vh - 92px); }
  .chat-sidebar { max-height: 205px; padding: 10px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .chat-sidebar-head { margin-bottom: 7px; }
  .chat-conversation-list { display: flex; overflow-x: auto; gap: 7px; padding-bottom: 3px; }
  .chat-conversation { min-width: 245px; background: #fbfdfd; }
  .chat-thread { min-height: calc(100vh - 310px); }
  .chat-message { max-width: 91%; }
  .chat-thread-header { padding: 10px; }
  .chat-thread-actions { gap: 4px; }
  .chat-icon-action { padding-inline: 6px; }
  .chat-messages { padding: 13px 10px; }
}
@media (max-width: 420px) {
  .chat-thread-actions .chat-icon-action:first-child { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chat-composer { grid-template-columns: 34px minmax(0, 1fr); }
  .chat-send-button { grid-column: 1 / -1; width: 100%; }
}
