:root {
  --app-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bs-body-font-family: var(--app-font);
  --brand-primary: #116466;
  --brand-primary-hover: #0b4e50;
  --text-primary: #182c37;
  --text-secondary: #51626a;
  --text-muted: #718087;
  --border-color: #e2e9e9;
  --background: #f4f7f7;
  --success: #18794e;
  --warning: #9a6700;
  --danger: #b42318;
  --bs-primary: #116466;
  --bs-primary-rgb: 17, 100, 102;
  --link-color: #202322;
  --link-hover-color: #515653;
  --bs-link-color: var(--link-color);
  --bs-link-color-rgb: 32, 35, 34;
  --bs-link-hover-color: var(--link-hover-color);
  --bs-link-hover-color-rgb: 81, 86, 83;
  --ink: #182c37;
  --muted: #6b7a84;
  --surface: #ffffff;
  --canvas: #f4f7f7;
  --line: #e2e9e9;
  --accent: #f3b33d;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--app-font);
  line-height: 1.55;
}

/* Shared text links, including recovery pages that do not load Bootstrap. */
a {
  color: var(--link-color);
  text-decoration: none;
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}
a:where(:hover, :focus-visible) { color: var(--link-hover-color); text-decoration: underline; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

h1, h2, h3, h4, h5, h6, .brand {
  color: var(--ink);
  font-family: var(--app-font);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin-bottom: 1.25rem; }
.page-heading { margin-bottom: 1.35rem; }
.page-heading h2 { margin-bottom: .3rem; }
.eyebrow { margin-bottom: .25rem; color: #167174; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.navbar {
  min-height: 74px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(226, 233, 233, .9);
  backdrop-filter: blur(14px);
}

.navbar-brand.brand {
  color: #0d5052;
  font-size: 1.45rem;
  letter-spacing: -0.06em;
}

.navbar-brand.brand span {
  color: #829095;
  font-family: var(--app-font);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.navbar-brand.brand::before {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 9px;
  place-items: center;
  border-radius: 9px;
  background: #116466;
  color: #fff;
  content: "A";
  font-family: var(--app-font);
  font-size: .85rem;
  letter-spacing: 0;
  vertical-align: 2px;
}

.navbar .nav-link {
  color: #51626a;
  font-weight: 600;
  padding: .55rem .8rem;
}

.navbar .nav-link:hover, .navbar .nav-link:focus { color: #0d5052; }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(17, 100, 102, .15); }
.profile-link { display: inline-flex; align-items: center; justify-content: center; margin: .25rem .2rem; text-decoration: none; }
.profile-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #b8d7d5; border-radius: 50%; background: #e9f5f4; color: #0d6264; font-size: .8rem; font-weight: 700; }
.profile-link:hover .profile-icon, .profile-link:focus .profile-icon { border-color: #116466; background: #116466; color: #fff; }

.market-tools { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: #fff; }
.market-tools-inner { display: flex; min-height: 58px; align-items: center; gap: 1rem; }
.header-location-picker { position: relative; display: flex; width: 220px; flex: 0 0 220px; align-items: center; border: 1px solid #d9e3e3; border-radius: 10px; background: #fff; }
.header-location-picker:focus-within { border-color: #54a0a1; box-shadow: 0 0 0 .22rem rgba(17, 100, 102, .13); }
.location-pin { margin-left: .7rem; color: #116466; font-size: 1.2rem; line-height: 1; }
.header-location-picker input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: .48rem .7rem; color: var(--ink); font-size: .9rem; }
.header-location-results { position: absolute; z-index: 1100; top: calc(100% + .35rem); right: 0; left: 0; overflow-y: auto; max-height: 250px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 28px rgba(23, 55, 60, .18); }
.header-location-results:empty { display: none; }
.header-location-option { display: block; width: 100%; border: 0; border-bottom: 1px solid #edf1f1; background: #fff; color: var(--ink); padding: .6rem .75rem; text-align: left; font-size: .82rem; }
.header-location-option:hover, .header-location-option:focus { background: #edf7f6; outline: 0; }
.header-category-list { display: flex; min-width: 0; align-items: center; gap: .2rem; overflow-x: auto; scrollbar-width: thin; }
.header-category { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .35rem; border-radius: 8px; color: #43555d; padding: .43rem .55rem; font-size: .78rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-category:hover, .header-category:focus { background: #edf7f6; color: #0d6264; }
.header-category span { display: inline-grid; width: 21px; height: 21px; place-items: center; border: 1px solid #cfe0df; border-radius: 6px; background: #f4faf9; color: #116466; font-size: .68rem; font-weight: 800; line-height: 1; }

main.container { max-width: 1240px; padding-top: 2rem; padding-bottom: 2rem; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  align-items: center;
  border-radius: 24px !important;
  box-shadow: 0 20px 45px rgba(19, 49, 54, .15);
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 37, 43, .82), rgba(7, 37, 43, .43));
  content: "";
}

.hero .container-fluid { position: relative; z-index: 1; max-width: 900px; margin-left: 0; }
.hero h1 { color: #fff; max-width: 520px; }
.hero .lead { max-width: 470px; color: rgba(255,255,255,.88); }
.hero form { margin-top: 1.75rem; }

.form-control, .form-select {
  min-height: 46px;
  border: 1px solid #d9e3e3;
  border-radius: 10px;
  color: var(--ink);
  padding: .65rem .85rem;
}

.form-control:focus, .form-select:focus {
  border-color: #54a0a1;
  box-shadow: 0 0 0 .22rem rgba(17, 100, 102, .13);
}
.auth-card { padding: 1.5rem; }
.social-auth-list { display: grid; gap: .65rem; }
.social-auth { display: flex; width: 100%; align-items: center; justify-content: center; gap: .65rem; border: 1px solid #d6e1e1; border-radius: 10px; background: #fff; color: #263b43; padding: .65rem 1rem; font: inherit; font-weight: 600; text-decoration: none; }
.social-auth:hover, .social-auth:focus { border-color: #9abfbd; background: #f6fbfb; color: #0d5052; }
.social-auth span { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; font-weight: 700; }
.social-auth-google span { color: #fff; background: #4285f4; }
.social-auth-facebook span { color: #fff; background: #1877f2; font-family: var(--app-font); }
.social-auth-instagram span { color: #fff; background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.social-auth:disabled { cursor: not-allowed; opacity: .55; }
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.2rem 0; color: #718087; font-size: .78rem; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }

.hero .form-control { border: 0; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.hero .btn { box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.aura-hero { background: linear-gradient(115deg, #083f42 0%, #116466 54%, #328384 100%); }
.aura-hero::before { position: absolute; top: -110px; right: -80px; width: 370px; height: 370px; border: 54px solid rgba(255,255,255,.09); border-radius: 50%; content: ""; }

.btn {
  border-radius: 10px;
  font-weight: 600;
  padding: .62rem 1rem;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-dark, .btn-tag-primary {
  border-color: #116466;
  background: #116466;
  color: #fff;
}
.btn-dark:hover, .btn-dark:focus, .btn-tag-primary:hover, .btn-tag-primary:focus {
  border-color: #0b4e50;
  background: #0b4e50;
  color: #fff;
  box-shadow: 0 8px 20px rgba(17, 100, 102, .22);
}
.btn-outline-dark { border-color: #b9c9c9; color: #164e50; }
.btn-outline-dark:hover { border-color: #116466; background: #116466; }
.btn-tag { display: inline-block; border-radius: 9px; padding: .52rem .95rem !important; text-decoration: none; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(23, 55, 60, .05) !important;
}

.card-body { padding: 1.2rem; }
.card h5 { font-size: 1.05rem; margin-bottom: .5rem; }
.card .fw-bold { color: #0d5052; }
.card:hover { box-shadow: 0 12px 25px rgba(23, 55, 60, .1) !important; }

.listing-thumb { height: 220px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.listing-fallback { display: grid; place-items: center; background: linear-gradient(135deg,#e2eeee,#f8fbfb); color: #5d7478; font-size: .9rem; font-weight: 600; }
.listing-free { color: var(--success) !important; }
.section-heading { margin: 3rem 0 1.15rem; }
.giveaway-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 18px; background: #0d5052; color: #fff; padding: 2rem; }
.giveaway-panel h2, .giveaway-panel .eyebrow { color: #fff; }
.giveaway-panel p:not(.eyebrow) { max-width: 620px; margin: .45rem 0 0; color: rgba(255,255,255,.82); }
.giveaway-panel .btn { flex: 0 0 auto; color: #0d5052; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.trust-grid article { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 1.15rem; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid span { margin-top: .25rem; color: var(--muted); font-size: .9rem; }
.listing-image { width: 100%; height: 330px; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 4px 15px rgba(24,44,55,.07); }
.placeholder { display: flex; min-height: 260px; align-items: center; justify-content: center; border: 1px dashed #b8caca; border-radius: var(--radius); background: #edf4f4; color: var(--muted); }
.photo-preview { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.photo-preview img { width: 74px; height: 74px; border: 1px solid var(--line); border-radius: 10px; object-fit: cover; }

.listing-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.listing-gallery-item, .listing-gallery-lock { position: relative; display: block; min-height: 230px; overflow: hidden; border-radius: 14px; background: #eaf1f1; }
.listing-gallery-item:only-child { grid-column: 1 / -1; }
.listing-gallery-item img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .2s ease; }
.listing-gallery-item:hover img { transform: scale(1.03); }
.listing-gallery-lock { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; border: 1px solid #c6dbd9; background: linear-gradient(135deg, #e6f2f1, #f9fcfc); color: #0d6264; text-align: center; text-decoration: none; padding: 1rem; }
.listing-gallery-lock:hover, .listing-gallery-lock:focus { border-color: #116466; color: #0b4e50; }
.listing-gallery-lock-icon { font-size: 1.5rem; }
.listing-gallery-lock small { color: #60747a; }
.listing-summary { position: sticky; top: 92px; }
.listing-summary .card-body { padding: 1.5rem; }
.listing-category-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.listing-category-badges { flex: 1; min-width: 0; }
.listing-edit-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; }
.listing-title { margin: .75rem 0 .35rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.listing-price { color: #0d5052; font-family: var(--app-font); font-size: 1.75rem; font-weight: 700; }
.listing-meta { display: flex; flex-wrap: wrap; gap: .45rem .9rem; margin-top: .65rem; color: #65757b; font-size: .9rem; }
.listing-meta span + span::before { content: "•"; margin-right: .9rem; color: #9eadaf; }
.seller-card strong, .seller-card small, .seller-label { display: block; }
.seller-label { color: #718087; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.seller-card small { color: #718087; margin-top: .15rem; }
.listing-information-tabs { flex-wrap: nowrap; gap: .25rem; padding: .5rem .75rem 0; border-bottom-color: var(--line); }
.listing-information-tabs .nav-link { flex: 1; min-height: 44px; padding: .75rem .5rem; border: 0; border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; color: var(--text-secondary); font-size: .875rem; font-weight: 600; }
.listing-information-tabs .nav-link.active { border-bottom-color: var(--brand-primary); background: #edf7f6; color: var(--brand-primary); }
.listing-information-tabs .nav-link:hover { color: var(--brand-primary); }
.listing-information-tabs .nav-link:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: -4px; }
.listing-description { max-width: 760px; }
.listing-description h2 { font-size: 1.25rem; margin-bottom: .75rem; }
.listing-description p { margin: 0; white-space: normal; }
.listing-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.listing-specs > div { border: 1px solid #e4eded; border-radius: 10px; background: #fbfdfd; padding: .7rem .8rem; }
.listing-specs dt { color: #718087; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.listing-specs dd { margin: .15rem 0 0; color: #1e3d42; font-weight: 600; }

.badge.text-bg-light {
  border: 1px solid #d8e6e4;
  background: #edf6f5 !important;
  color: #176568 !important;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .4rem .55rem;
}

label { color: #43555d; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; }
textarea.form-control { min-height: 130px; }
.listing-form { max-width: 900px; }
.location-picker { position: relative; }
.location-results { position: absolute; z-index: 1050; top: calc(100% - 1.45rem); right: .75rem; left: .75rem; max-height: 245px; overflow-y: auto; border-radius: 10px; box-shadow: 0 12px 28px rgba(23, 55, 60, .18); }
.location-results:empty { display: none; }
.location-results .list-group-item { border-color: var(--line); color: var(--ink); font-size: .9rem; text-align: left; }
@media (max-width: 575.98px) { .listing-specs { grid-template-columns: 1fr; } }
.alert { border: 0; border-radius: 12px; }
.table { --bs-table-bg: transparent; --bs-table-border-color: var(--line); }
.table th { color: #51626a; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.table td { padding-top: .9rem; padding-bottom: .9rem; }
.table a { color: #0d6466; font-weight: 600; text-decoration: none; }
.table a:hover { text-decoration: underline; }

.chat {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 6px 18px rgba(23, 55, 60, .05);
  padding: 1.25rem;
}

.messenger { display: grid; min-height: 580px; grid-template-columns: minmax(230px, .8fr) minmax(0, 2fr); overflow: hidden; }
.messenger-sidebar { border-right: 1px solid var(--line); background: #fbfdfd; }
.messenger-sidebar-title { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); color: #65757b; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.conversation { display: flex; gap: .75rem; align-items: center; padding: .9rem 1.05rem; border-bottom: 1px solid #edf1f1; color: var(--ink); text-decoration: none; }
.conversation:hover, .conversation.active { background: #edf7f6; color: var(--ink); }
.conversation-avatar { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border-radius: 50%; background: #d9efed; color: #0d6264; font-size: .82rem; font-weight: 700; }
.conversation-copy { min-width: 0; }
.conversation-copy b, .conversation-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy small { color: #76858b; font-size: .78rem; }
.messenger-thread { display: flex; min-width: 0; flex-direction: column; background: #fff; }
.thread-header { display: flex; gap: .75rem; align-items: center; min-height: 67px; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); }
.thread-header b, .thread-header small { display: block; }
.thread-header small { color: #718087; font-size: .78rem; }
.thread-messages { display: flex; flex: 1; flex-direction: column; gap: .65rem; min-height: 350px; max-height: 500px; overflow-y: auto; padding: 1.25rem; background: #f7faf9; }
.message-row {
  display: block;
  width: 100%;
}
.message-bubble {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .15rem .5rem;
  width: fit-content;
  max-width: min(78%, 530px);
  margin-right: auto;
  border-radius: 14px 14px 14px 3px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(23,55,60,.08);
  padding: .65rem .8rem;
}
.message-row.mine .message-bubble { margin-right: 0; margin-left: auto; }
.message-row.mine .message-bubble { border-radius: 14px 14px 3px 14px; background: #d9fdd3; color: #172b2d; }
.message-body { min-width: 0; max-width: 100%; white-space: pre-wrap; }
.message-attachments { width: 100%; min-width: 0; }
.message-meta { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; margin-left: auto; padding-top: .2rem; color: #66756b; font-size: .7rem; line-height: 16px; white-space: nowrap; }
.message-status { display: inline-flex; flex: 0 0 auto; width: 22px; height: 16px; align-items: center; color: #66756b; }
.message-status svg { display: block; width: 22px; height: 16px; overflow: visible; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.message-status[data-status="sent"] { width: 16px; }
.message-status[data-status="sent"] svg { width: 22px; flex-shrink: 0; }
.message-status[data-status="sent"] .message-status-second { display: none; }
.message-status[data-status="read"] { color: #009de0; }
.thread-empty { margin: auto; color: #718087; text-align: center; }
.message-composer { display: flex; gap: .65rem; align-items: flex-end; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.message-composer textarea { min-height: 46px; max-height: 130px; }
.message-composer .btn { flex: 0 0 auto; }
.new-message-panel { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 1rem; padding: 2rem; }
.new-message-panel .message-composer { align-items: stretch; flex-direction: column; max-width: 640px; padding: 0; border: 0; }
.new-message-panel .message-composer .btn { align-self: flex-end; }

.site-footer {
  background: #fff;
  border-top: 1px solid #e8ebe9;
  color: var(--link-color);
}
.site-footer .container { max-width: 1240px; }
.footer-policies { padding-top: 3.5rem; padding-bottom: 3rem; }
.footer-policy-grid { row-gap: 2rem; }
.site-footer .footer-heading {
  margin: 0 0 .8rem;
  color: #737775;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}
.site-footer .footer-links li { margin: 0; }
.site-footer .footer-links a {
  display: inline-block;
  padding: .5rem 0;
  color: var(--link-color);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.6;
}
.site-footer .footer-links a:hover { color: var(--link-hover-color); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid #eef0ef;
  font-size: .8125rem;
}
.footer-copyright, .footer-credit { color: #737775; }
.footer-credit { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.footer-install { border-radius: 999px; padding: .45rem .85rem; }
@media (max-width: 575.98px) {
  .footer-policies { padding-top: 2.25rem; padding-bottom: 2rem; }
  .site-footer .footer-links a { min-height: 44px; }
  .footer-meta { align-items: flex-start; flex-direction: column; }
}

/* Keep the listing setup as a short, guided flow without adding an extra row wrapper. */
#listing-details-form:not([hidden]) { display: contents; }
.notification-link { position: relative; padding: .45rem .55rem; color: var(--ink); font-size: 1.1rem; text-decoration: none; }
.notification-link span { position: absolute; top: .05rem; right: 0; min-width: 1.05rem; border-radius: 99px; background: #c84335; color: #fff; font-size: .62rem; font-weight: 700; line-height: 1.05rem; text-align: center; }
.profile-icon { display: inline-grid; width: 36px; height: 36px; place-items: center; overflow: hidden; border-radius: 50%; object-fit: cover; }
.profile-photo-large { width: 96px; height: 96px; font-size: 2rem; }

@media (max-width: 575.98px) {
  main.container { padding-top: 1.25rem; }
  .hero { min-height: 390px; border-radius: 18px !important; }
  .hero .container-fluid { padding: 1rem !important; }
  .listing-thumb { height: 205px; }
  .listing-gallery-item, .listing-gallery-lock { min-height: 155px; }
  .listing-summary { position: static; }
  .market-tools-inner { align-items: stretch; flex-direction: column; gap: .45rem; padding-top: .55rem; padding-bottom: .55rem; }
  .header-location-picker { width: 100%; flex-basis: auto; }
  .header-category-list { padding-bottom: .1rem; }
  .messenger { display: block; }
  .messenger-sidebar { max-height: 220px; overflow-y: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .thread-messages { max-height: 390px; }
  .message-composer { padding: .8rem; }
  .giveaway-panel { align-items: flex-start; flex-direction: column; padding: 1.4rem; }
  .trust-grid { grid-template-columns: 1fr; }
}

/* Long user content must wrap within cards and chat columns. */
.card, .card-body, .messenger-sidebar { min-width: 0; }
.listing-title, .listing-description, .message-bubble, .card-body, .table td { overflow-wrap: anywhere; }
.listing-thumb { max-width: 100%; }
.pagination { flex-wrap: wrap; gap: .25rem; }
@media (max-width: 767.98px) {
  .messenger { grid-template-columns: minmax(160px, .7fr) minmax(0, 1fr); }
  .message-composer { flex-wrap: wrap; }
  .message-composer textarea { flex: 1 1 100%; }
}

/* Marketplace discovery: a single global search and category/facet navigation. */
.global-search { position:relative; display:flex; gap:.55rem; padding:.8rem 0; max-width:100%; }
.global-search input { flex:1; min-width:0; }
.global-search button { flex:0 0 auto; }
.search-suggestions { position:absolute; top:calc(100% - .6rem); left:0; right:0; z-index:1100; margin:0; padding:.35rem; list-style:none; max-height:390px; overflow:auto; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 12px 28px #17373c26; }
.search-suggestions a { display:block; padding:.65rem .85rem; text-decoration:none; color:var(--ink); overflow-wrap:anywhere; }
.search-suggestions small { display:block; color:var(--muted); }
.search-suggestions li[aria-selected="true"],.search-suggestions li:hover { background:#edf7f6; border-radius:8px; }
.category-navigation { position:relative; display:flex; gap:.7rem; align-items:center; padding:0 0 .7rem; }
.all-categories { flex:0 0 auto; }
.all-categories>summary { cursor:pointer; list-style:none; border-radius:24px; background:var(--brand-primary); color:white; padding:.55rem 1rem; font-size:.85rem; font-weight:700; }
.all-categories>summary::-webkit-details-marker { display:none; }
.category-mega-menu { position:absolute; z-index:1050; top:100%; left:0; right:0; max-height:75vh; overflow:auto; padding:1.5rem; background:white; border:1px solid var(--line); border-radius:18px; box-shadow:0 12px 28px #17373c26; }
.category-mega-grid { columns:4 210px; column-gap:2rem; }
.category-mega-grid section { break-inside:avoid; margin:0 0 1.5rem; }
.category-mega-grid h3 { font-size:.95rem; padding-bottom:.6rem; border-bottom:1px solid var(--line); }
.category-mega-grid a,.mega-browse-all { text-decoration:none; color:var(--ink); }
.category-mega-grid a:hover,.mega-browse-all:hover { color:var(--brand-primary); text-decoration:underline; }
.category-mega-grid small { color:var(--muted); font-size:.75rem; }
.mega-subcategory { display:flex; justify-content:space-between; gap:.6rem; padding:.28rem 0; font-size:.83rem; }
.mega-browse-all { display:block; font-weight:700; margin-bottom:1rem; }
.browse-layout { display:grid; grid-template-columns:265px minmax(0,1fr); gap:1.5rem; align-items:start; }
.browse-sidebar,.browse-results { min-width:0; }
.filter-panel { background:white; padding:1rem; border:1px solid var(--line); border-radius:14px; }
.mobile-filters>summary { display:none; }
.filter-group { border-top:1px solid var(--line); padding:.85rem 0; }
.filter-group>summary { cursor:pointer; font-weight:700; font-size:.86rem; margin-bottom:.65rem; }
.facet-options { max-height:245px; overflow:auto; }
.facet-link { display:flex; align-items:center; gap:.5rem; padding:.4rem .3rem; color:var(--text-secondary); font-size:.82rem; text-decoration:none; overflow-wrap:anywhere; }
.facet-link>span:not(.facet-check) { flex:1; min-width:0; }
.facet-link small { flex:0 0 auto; color:var(--muted); font-variant-numeric:tabular-nums; }
.facet-link.selected,.facet-link:hover { color:var(--brand-primary); background:#edf7f6; border-radius:5px; }
.facet-link.selected { font-weight:700; }
.facet-check { width:16px; height:16px; flex:0 0 16px; border:1px solid #9bb2b3; border-radius:3px; text-align:center; line-height:14px; }
.selected .facet-check { color:white; background:var(--brand-primary); border-color:var(--brand-primary); }
.subcategory-filters { margin:.5rem 0 0 .6rem; border-left:2px solid var(--line); padding-left:.45rem; max-height:310px; overflow:auto; }
.browse-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; flex-wrap:wrap; }
.browse-toolbar label { display:flex; align-items:center; gap:.6rem; margin:0; white-space:nowrap; }
.browse-toolbar select { width:auto; max-width:100%; }
.active-filters { display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:1rem; }
.filter-chip { padding:.35rem .7rem; border:1px solid #bed8d5; border-radius:20px; color:var(--brand-primary); font-size:.75rem; text-decoration:none; overflow-wrap:anywhere; }
@media(max-width:991.98px){.browse-layout{grid-template-columns:220px minmax(0,1fr);gap:1rem}.filter-panel{padding:.75rem}.browse-toolbar label{width:100%;white-space:normal}.browse-toolbar select{flex:1;min-width:0}}
@media(max-width:767.98px){.browse-layout{display:block}.browse-sidebar{margin-bottom:1rem}.mobile-filters>summary{display:block;cursor:pointer;padding:.7rem 1rem;background:white;border:1px solid var(--line);border-radius:10px;font-weight:700}.mobile-filters[open]>summary{margin-bottom:.5rem}.category-mega-menu{padding:1rem}.category-mega-grid{columns:2 150px}.category-navigation{gap:.35rem}.all-categories>summary{padding:.5rem .7rem;font-size:.77rem}}
.browse-sort { display:flex; align-items:center; gap:.6rem; min-width:0; }
.browse-sort label { white-space:nowrap; }
.browse-sort select { width:auto; min-width:0; }
@media(max-width:991.98px){.browse-sort{width:100%}.browse-sort label{width:auto}.browse-sort select{flex:1}}

/* Shared typography includes native form controls and their option lists. */
body, h1, h2, h3, h4, h5, h6, input, textarea, button, select, option, optgroup,
.form-control, .form-select, .btn, .dropdown-menu, .tooltip, .popover {
  font-family: var(--app-font);
}
.listing-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:.55rem; color:var(--muted); font-size:.85rem; margin-bottom:1.25rem; }
.listing-breadcrumb a { color:var(--brand-primary); text-decoration:none; }
.product-summary { position:static; }
.product-summary .card-body { padding:1.5rem; }
.product-summary .badge { margin:0 .2rem .4rem 0; white-space:normal; text-align:left; }
.product-summary .listing-title { font-size:clamp(1.5rem,2.5vw,2rem); line-height:1.3; margin:.6rem 0 1rem; }
.product-summary .listing-price { font-size:2rem; line-height:1.2; }
.listing-posted { font-size:.78rem; color:var(--muted); margin:.5rem 0; }
.listing-owner-actions { display:flex; flex-wrap:wrap; gap:.5rem; }
.listing-description { max-width:none; }
.listing-description h2 { font-size:1.2rem; margin-bottom:1.25rem; }
.listing-description p { line-height:1.8; margin-bottom:0; }
.product-gallery { background:#fff; border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.gallery-stage { position:relative; height:440px; background:#f0f3f5; }
.gallery-slide, .gallery-open { width:100%; height:100%; }
.gallery-open { display:flex; align-items:center; justify-content:center; padding:0; border:0; background:transparent; cursor:zoom-in; }
.gallery-open img { width:100%; height:100%; object-fit:contain; }
.gallery-unavailable { color:var(--muted); }
.gallery-arrow { position:absolute; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:42px; height:42px; border:1px solid #d7dfe4; border-radius:50%; background:#fff; color:#182b35; box-shadow:0 2px 10px #142b3526; font-size:1.1rem; z-index:1; }
.gallery-prev { left:12px; }
.gallery-next { right:12px; }
.gallery-arrow:disabled { opacity:.35; cursor:default; }
.gallery-arrow:not(:disabled):hover { background:#e8f2ef; }
.gallery-bottom { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.8rem; padding:1rem 1.2rem .5rem; }
.gallery-dots { display:flex; flex-wrap:wrap; gap:2px; }
.gallery-dot { display:grid; place-items:center; width:26px; height:26px; padding:0; background:transparent; border:0; border-radius:50%; }
.gallery-dot::after { content:''; width:8px; height:8px; border-radius:50%; background:#bcc8ce; }
.gallery-dot[aria-current="true"]::after { background:var(--brand-primary); width:11px; height:11px; }
.gallery-counter, .gallery-hint { color:var(--muted); font-size:.8rem; }
.gallery-hint { margin:0; padding:0 1.2rem 1rem; }
.gallery-login { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.6rem; padding:2rem 3.5rem; text-align:center; }
.gallery-login h2 { font-size:1.35rem; margin:0; }
.gallery-login p { margin:0 0 .5rem; }
.gallery-lock-icon { font-size:2rem; }
.gallery-empty { min-height:350px; padding:2rem; border-radius:18px; text-align:center; }
.product-gallery [hidden], #similar-products [hidden] { display:none !important; }
.product-gallery button:focus-visible, .product-gallery a:focus-visible { outline:3px solid #1674c4; outline-offset:3px; }
.photo-viewer-open { overflow:hidden; }
.photo-dialog { padding:0; width:min(1100px,calc(100vw - 24px)); max-width:none; max-height:92vh; max-height:92dvh; border:0; border-radius:16px; background:#111b23; color:#fff; }
.photo-dialog::backdrop { background:rgb(5 12 19 / 85%); }
.photo-dialog-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem 1rem; font-size:.9rem; }
.photo-dialog-close { width:40px; height:40px; border:1px solid #73818c; border-radius:50%; background:transparent; color:#fff; font-size:1.2rem; }
.photo-dialog-stage { position:relative; display:flex; align-items:center; justify-content:center; min-height:260px; height:72vh; height:72dvh; }
.photo-dialog-stage>img { width:100%; height:100%; object-fit:contain; }
.photo-dialog .gallery-login { background:#f0f3f5; color:var(--ink); width:100%; height:100%; }
.similar-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; margin:0 0 1.25rem; }
.similar-heading h2 { font-size:1.5rem; margin:0 0 .35rem; }
.similar-heading p { margin:0; }
.similar-match-label { display:block; font-size:.75rem; color:var(--muted); margin-bottom:.45rem; }
#similar-products .card-body { display:flex; flex-direction:column; align-items:stretch; }
#similar-products h5 { font-size:1rem; line-height:1.4; }
#similar-products .card-body>a { margin-top:auto !important; }
#similar-products .card-body>small { margin-bottom:1rem; }
@media(max-width:767.98px) {
  .gallery-stage { height:300px; }
  .gallery-arrow { width:36px; height:36px; }
  .gallery-prev { left:8px; } .gallery-next { right:8px; }
  .product-summary .card-body { padding:1.1rem; }
  .gallery-login { padding:1.5rem 3rem; }
  .gallery-login h2 { font-size:1.1rem; }
  .gallery-login .btn { font-size:.85rem; }
  .photo-dialog-stage { height:65vh; height:65dvh; }
}

/* Slideshow indicators sit over the image, never below the listing card. */
.gallery-bottom { position:absolute; bottom:10px; left:10px; right:10px; z-index:2; justify-content:center; gap:.6rem; padding:.25rem .6rem; width:fit-content; max-width:calc(100% - 20px); margin:auto; border-radius:20px; background:rgb(255 255 255 / 92%); box-shadow:0 2px 8px #142b3526; }
.gallery-bottom .gallery-counter { color:#253e49; }
.gallery-hint { padding:.65rem 1.2rem; }
.gallery-login { padding-bottom:4rem; }
.card-gallery { position:relative; overflow:hidden; border-radius:var(--bs-card-inner-border-radius,12px) var(--bs-card-inner-border-radius,12px) 0 0; background:#f0f3f5; }
.card-gallery-link, .card-gallery-slide { display:block; }
.card-gallery-link { color:var(--muted); text-decoration:none; }
.card-gallery .listing-thumb { display:block; width:100%; height:220px; object-fit:cover; }
.card-gallery .listing-fallback { display:grid; place-items:center; }
.card-gallery [hidden] { display:none !important; }
.card-gallery-controls { position:absolute; bottom:10px; left:50%; transform:translateX(-50%); display:flex; align-items:center; justify-content:center; gap:.4rem; padding:.3rem .55rem; max-width:calc(100% - 20px); background:rgb(255 255 255 / 92%); border-radius:20px; box-shadow:0 2px 8px #142b3526; }
.card-gallery-controls .gallery-dots { justify-content:center; gap:6px; padding:0 .25rem; }
.card-gallery-dot { width:7px; height:7px; border-radius:50%; background:#a5b1b7; }
.card-gallery-dot[aria-current="true"] { background:var(--brand-primary); }
.card-gallery-pause { display:grid; place-items:center; border:0; width:28px; height:28px; flex:0 0 28px; border-radius:50%; background:transparent; color:#253e49; font-size:.8rem; }
.card-gallery-pause:hover { background:#dcebe7; }
.card-gallery-pause:focus-visible { outline:2px solid #1674c4; outline-offset:2px; }

.sold-ribbon { position:absolute; top:28px; left:-42px; width:180px; transform:rotate(-35deg); text-align:center; z-index:3; background:#616161; color:white; padding:.45rem 0; font-size:1rem; font-weight:800; letter-spacing:.12em; pointer-events:none; box-shadow:0 2px 5px #0003; }
.sold-status { display:inline-block; border-radius:6px; background:#e0e0e0; color:#424242; padding:.4rem .7rem; font-weight:700; }

/* Auction discovery remains readable during the gentle emphasis animation. */
.auction-badge { display:inline-block; width:fit-content; padding:.22rem .5rem; border-radius:5px; background:#d9eee7; color:#0b4e50; font-size:.7rem; font-weight:750; letter-spacing:.025em; vertical-align:middle; }
.auction-nav { display:flex; align-items:center; flex-wrap:wrap; gap:.35rem; border:1px solid #91bdb2; border-radius:9px; padding:.45rem .6rem !important; max-width:100%; font-size:.82rem; color:var(--brand-primary) !important; animation:auction-pulse 1.8s ease-in-out infinite; }
@keyframes auction-pulse { 0%,100% { box-shadow:0 0 0 0 rgb(17 100 102 / 0%); } 50% { box-shadow:0 0 0 4px rgb(17 100 102 / 14%); } }
@media(prefers-reduced-motion:reduce){.auction-nav{animation:none}}
.auction-card-summary { display:flex; flex-direction:column; gap:.3rem; margin:.6rem 0; font-size:.85rem; }
.auction-card-summary strong { color:var(--brand-primary); }
.auction-disclaimer { padding:.65rem; background:#f0f6f4; border:1px solid #d5e6df; border-radius:7px; font-size:.8rem; line-height:1.6; margin-top:1rem; }
.auction-disclaimer p { margin:.5rem 0 0; }
@media(min-width:992px){.navbar .navbar-nav{flex-wrap:wrap;justify-content:flex-end}.navbar .navbar-collapse{min-width:0}}
@media(max-width:991.98px){.auction-nav{align-self:flex-start;margin:.5rem 0;white-space:normal}.navbar .navbar-nav{min-width:0}}

/* Comfortable form gutters and a compact, responsive administration layout. */
.listing-form { padding:clamp(1.1rem,3vw,2.5rem); max-width:1100px; margin-inline:auto; }
.listing-form label { margin-bottom:.45rem; font-size:.9rem; font-weight:600; }
.listing-form .form-control,.listing-form .form-select { min-height:46px; border-radius:9px; }
.listing-form textarea.form-control { min-height:130px; }
.listing-form #dynamic-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.35rem 1.5rem; margin:0; padding:1.5rem 0; width:100%; }
.listing-form #dynamic-details>div { width:auto; margin:0; padding:0; min-width:0; }
.listing-form #dynamic-details label { display:block; }
.listing-form #listing-details-form>.row { --bs-gutter-x:1.75rem; --bs-gutter-y:1.5rem; }
.listing-form .photo-preview { gap:.8rem; margin-top:1rem; }
.admin-nav { display:flex; flex-wrap:wrap; gap:.65rem; padding:1rem; background:#edf5f2; border-radius:12px; }
.admin-nav a { color:var(--brand-primary); font-weight:600; padding:.25rem .5rem; }
.admin-editor { display:flex; flex-direction:column; gap:1rem; }
.admin-editor label { display:block; }
.admin-editor input,.admin-editor select { margin-top:.35rem; }
.admin-inline { display:flex; flex-wrap:wrap; gap:1rem; align-items:end; }
.admin-inline label:first-of-type { flex:1 1 220px; }
.admin-inline input[type=number] { max-width:100px; }
.admin-banner-preview { width:100%; max-height:220px; object-fit:contain; background:#e8f0ee; border-radius:9px; }
.home-banners { position:relative; overflow:hidden; border-radius:20px; background:#0d5154; }
.home-banners [hidden] { display:none !important; }
.home-banner { position:relative; min-height:360px; }
.home-banner>img { position:absolute; inset:0; height:100%; width:100%; object-fit:cover; }
.home-banner::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,rgba(4,32,35,.8),rgba(4,32,35,.15)); pointer-events:none; }
.home-banner-copy { position:relative; z-index:1; padding:clamp(2rem,5vw,4rem); max-width:650px; color:#fff; }
.home-banner-copy h2 { font-size:clamp(1.7rem,4vw,3rem); font-weight:750; line-height:1.15; }
.home-banner-copy p { margin:1rem 0 1.5rem; font-size:1.05rem; line-height:1.6; }
.home-banner-controls { position:absolute; bottom:12px; left:50%; transform:translateX(-50%); display:flex; align-items:center; background:rgba(255,255,255,.95); border-radius:24px; z-index:2; padding:.15rem .5rem; max-width:95%; }
@media(max-width:767.98px){.listing-form #dynamic-details{grid-template-columns:1fr;gap:1.2rem}.home-banner{min-height:390px}.home-banner-copy{padding:2rem 1.3rem 4rem}.home-banner>img{object-position:65% center}.admin-inline>button{width:100%}}
.listing-form #listing-details-form { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:1.5rem; margin-top:1.5rem; }
.listing-form #listing-details-form[hidden], .listing-form #listing-details-form [hidden] { display:none !important; }
.listing-form #listing-details-form>div { grid-column:1 / -1; width:100%; min-width:0; }
.listing-form #listing-details-form>.col-md-6 { grid-column:span 6; }
.listing-form #listing-details-form>.col-md-4 { grid-column:span 4; }
@media(max-width:767.98px){.listing-form #listing-details-form>.col-md-6,.listing-form #listing-details-form>.col-md-4{grid-column:1 / -1}}

.header-india-location { position:relative; flex:0 0 290px; min-width:0; }
.header-india-location>.form-control { border-radius:24px; padding:.75rem 1rem; }
.header-location-panel { position:absolute; top:calc(100% + 8px); left:0; width:max(100%,320px); max-width:calc(100vw - 32px); z-index:1200; padding:.65rem; border:1px solid var(--line); background:#fff; border-radius:14px; box-shadow:0 12px 28px #17373c26; }
.location-action,.location-option { display:block; width:100%; text-align:left; background:#fff; color:var(--ink); border:0; border-bottom:1px solid var(--line); padding:.85rem; overflow-wrap:anywhere; }
.location-action { color:var(--brand-primary); font-weight:650; }
.location-option:hover,.location-option[aria-selected=true] { background:#e8f4ef; }
.india-address-picker { position:relative; margin:1rem 0; }
.india-address-picker .india-location-options { position:absolute; top:75px; left:0; right:0; z-index:1100; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 22px #17373c26; }
.india-location-options { max-height:310px; overflow:auto; }
.header-location-panel small { display:block; padding:.5rem; }
.location-attribution { font-size:.7rem; color:var(--muted); }
[data-header-location] [hidden],[data-india-address] [hidden] { display:none !important; }
@media(max-width:767.98px){.global-search{flex-wrap:wrap}.header-india-location{flex-basis:100%}.global-search>input[name=q]{flex-basis:65%;width:0}.header-location-panel{width:100%}.india-address-picker .india-location-options{top:75px}}

/* Engagement controls inherit the marketplace's responsive typography. */
.share-options{display:flex;flex-wrap:wrap;gap:.5rem}
.listing-share{max-width:100%}
.listing-share input{max-width:100%;overflow-wrap:anywhere}
.saved-search-item{min-width:0;overflow-wrap:anywhere}
.seller-public-avatar{width:80px;height:80px;object-fit:cover;border-radius:50%}
[data-install-app][hidden],.listing-share [hidden]{display:none!important}

.seller-public-heading .d-flex>div{min-width:0;overflow-wrap:anywhere}
@media(min-width:992px){.navbar-nav{flex-wrap:wrap;justify-content:flex-end}.navbar-collapse{min-width:0}}

.listing-share .share-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;list-style:none}
.listing-share .share-icon::-webkit-details-marker{display:none}
.gallery-views{display:flex;align-items:center;gap:.35rem}
.listing-share [data-share-feedback]:empty{display:none}

.account-navigation .nav-link{color:var(--ink)}
.account-navigation .nav-link.active{background:#0f766e;color:#fff}
.registration-otp{width:min(440px,calc(100% - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;border:0;border-radius:16px;margin:auto}
.registration-otp::backdrop{background:rgba(15,35,40,.55)}
.registration-otp[open]:not(:modal){position:relative;margin:1rem auto}

/* PHP web messaging, completion and reviews. */
.aura-modal { width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 1.5rem; border: 0; border-radius: 18px; color: var(--ink, #172b2d); box-shadow: 0 16px 64px #102d3833; }
.aura-modal::backdrop { background: #102d3866; }
.aura-modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.aura-modal .form-control, .aura-modal .form-select { min-height: 44px; }
.aura-check { display: flex; align-items: center; gap: .65rem; min-height: 44px; }
.aura-check input { width: 18px; height: 18px; accent-color: #116466; }
.aura-toast { position: fixed; z-index: 1080; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: .85rem 1.1rem; border-radius: 12px; background: #183b3c; color: #fff; box-shadow: 0 6px 24px #102d3826; }
.aura-context-menu { position: fixed; z-index: 1070; min-width: 170px; padding: 6px; border: 1px solid #e7eeed; border-radius: 12px; background: #fff; box-shadow: 0 8px 30px #102d3826; }
.aura-context-menu button { display: block; width: 100%; min-height: 44px; padding: .55rem .75rem; border: 0; border-radius: 8px; background: transparent; color: #233b3c; text-align: left; font-size: .9rem; }
.aura-context-menu button:hover, .aura-context-menu button:focus-visible { background: #edf6f3; }
.aura-reaction-picker { display: flex; min-width: 0; max-width: calc(100vw - 16px); }
.aura-reaction-picker button { width: 44px; padding: 4px; text-align: center; font-size: 1.35rem; }
.message-bubble { position: relative; }
.message-bubble.has-message-actions { padding-right: 2.5rem; }
.message-menu-trigger { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 0 14px 0 10px; background: transparent; color: #61756a; font-size: 1.2rem; }
.message-menu-trigger:hover, .message-menu-trigger[aria-expanded="true"] { background: #173b3810; }
.message-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.message-reactions:empty { display: none; }
.message-row.mine .message-reactions { justify-content: flex-end; }
.reaction-chip { min-width: 44px; min-height: 32px; border: 1px solid #dce5e2; border-radius: 16px; padding: 3px 9px; background: #fff; color: #48645c; font-size: .8rem; }
.reaction-chip[aria-pressed="true"] { border-color: #116466; background: #e2f3ef; }
.reaction-chip:disabled { opacity: 1; cursor: default; }
.deal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.deal-card, .review-card { display: flex; flex-direction: column; gap: 1rem; min-width: 0; padding: 1.25rem; border-radius: 16px; background: #fff; box-shadow: 0 2px 14px #17373c0a; overflow-wrap: anywhere; }
.deal-listing { display: flex; gap: 1rem; align-items: center; }
.deal-image { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 12px; object-fit: cover; background: #edf5f2; }
.deal-image-placeholder { display: grid; place-items: center; font-size: 1.6rem; color: #116466; }
.completion-badge { display: inline-block; padding: .25rem .55rem; border-radius: 6px; background: #edf6f1; color: #24614a; font-size: .72rem; font-weight: 600; }
.review-person { display: flex; align-items: center; gap: .7rem; }
.review-avatar { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #e3f0ed; color: #116466; font-weight: 600; }
.review-stars { color: #a86300; white-space: nowrap; letter-spacing: 2px; }
.review-stars-empty { color: #c9d1ce; }
.deal-review-preview { padding: .9rem; border-radius: 10px; background: #f7faf8; }
.review-feed { display: grid; gap: 1rem; max-width: 860px; }
.review-comment { margin: 0; line-height: 1.7; }
.review-report-button { align-self: flex-start; min-height: 44px; padding: 0 .25rem; border: 0; background: transparent; color: #677976; font-size: .8rem; }
.review-summary { display: flex; flex-wrap: wrap; gap: 2rem; max-width: 860px; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; border-radius: 16px; background: #edf5f2; }
.review-average { font-size: 2.2rem; font-weight: 600; margin-right: .5rem; }
.rating-input { display: flex; gap: .5rem; border: 0; padding: 0; }
.rating-input label { position: relative; display: flex; align-items: center; gap: 4px; padding: .5rem; border-radius: 8px; background: #f2f5f3; cursor: pointer; min-height: 44px; }
.rating-input label:has(input:checked) { background: #d9eee6; outline: 2px solid #116466; }
.rating-input label:has(input:focus-visible) { outline: 3px solid #116466; outline-offset: 3px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label > span:first-of-type { color: #a86300; }
.aura-empty { padding: 2rem 1.25rem; border-radius: 16px; text-align: center; background: #fff; color: #647672; }
.aura-empty-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 1rem; place-items: center; border-radius: 50%; background: #edf5f2; color: #116466; font-size: 1.5rem; }
.aura-modal :focus-visible, .message-menu-trigger:focus-visible, .reaction-chip:focus-visible, .aura-context-menu button:focus-visible { outline: 2px solid #116466; outline-offset: 2px; }
@media (max-width: 640px) {
  .deal-grid { grid-template-columns: minmax(0, 1fr); }
  .deal-card, .review-card, .aura-modal { padding: 1rem; }
  .review-person { flex-wrap: wrap; }
  .message-menu-trigger { width: 40px; height: 40px; }
  .reaction-chip { min-height: 40px; }
}

/* Engagement and retention panels reuse the existing card and modal language. */
.retention-panel, .notification-card { padding: 1.25rem; border-radius: 16px; background: #fff; box-shadow: 0 2px 14px #17373c0a; overflow-wrap: anywhere; }
.preference-row { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: 1rem 0; border-bottom: 1px solid #edf1ef; }
.preference-row .form-switch { flex: 0 0 auto; margin: 0; padding: .65rem .35rem .65rem 2.8rem; }
.preference-row .form-check-input { width: 2.6em; height: 1.4em; cursor: pointer; }
.preference-row .form-check-input:checked { background-color: #116466; border-color: #116466; }
.insight-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; }
.insight-stat { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border-radius: 12px; background: #eaf3ef; }
.insight-stat strong { font-size: 1.6rem; color: #116466; }
.insight-stat span { color: #61756e; font-size: .8rem; }
.notification-feed { display: grid; gap: .75rem; max-width: 900px; }
.notification-card.is-unread { border-left: 4px solid #116466; }
.legal-links li { margin-bottom: .4rem; }
.legal-links a { display: inline-block; padding: .2rem 0; overflow-wrap: anywhere; }
.legal-links a[aria-current="page"] { font-weight: 700; }
.legal-policy { overflow-wrap: anywhere; }
.legal-policy p { max-width: 78ch; line-height: 1.75; }
.legal-policy h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
@media(max-width: 640px) { .insight-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .retention-panel,.notification-card { padding: 1rem; } }
