/* =============================================================================
   Urnomarket — Marketplace UI
   Navy #0B1F3A · Teal #0D9488 · Green #22C55E · Orange #F59E0B
   Fonts: Outfit (display) + DM Sans (body)
   ============================================================================= */

:root {
  --navy: #0B1F3A;
  --navy-800: #132a4a;
  --navy-700: #1a3658;
  --teal: #0D9488;
  --teal-600: #0f766e;
  --teal-50: #f0fdfa;
  --green: #22C55E;
  --green-600: #16a34a;
  --orange: #F59E0B;
  --orange-600: #d97706;
  --orange-50: #fffbeb;

  --bg: #f7faf9;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f4;
  --border: #e2e8e6;
  --border-strong: #cfd8d6;
  --text: #0B1F3A;
  --text-muted: #5b6b7c;
  --text-soft: #8a97a6;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --info: #0D9488;
  --info-bg: #f0fdfa;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06);
  --shadow: 0 4px 16px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 31, 58, 0.12);
  --ring: 0 0 0 3px rgba(13, 148, 136, 0.28);

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 64px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hero-grad: linear-gradient(135deg, #e8f7f5 0%, #f7faf9 42%, #fff8eb 100%);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5rem;
  color: var(--navy);
}
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .65rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.28);
}
.btn-primary:hover { background: var(--teal-600); color: #fff; }

.btn-accent {
  background: var(--orange);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
}
.btn-accent:hover { background: var(--orange-600); color: #fff; }

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-800); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal-600); background: var(--teal-50); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--navy); }

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

.btn-sm { min-height: 36px; padding: .4rem .9rem; font-size: .85rem; }
.btn-lg { min-height: 52px; padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ----- Badges ----- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--text-muted);
}
.badge-teal { background: var(--teal-50); color: var(--teal-600); }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-orange { background: var(--orange-50); color: var(--orange-600); }
.badge-navy { background: #e8eef6; color: var(--navy); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }

/* ----- Forms ----- */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
}
.form-hint { display: block; margin-top: .35rem; font-size: .8rem; color: var(--text-soft); }
.form-error { color: var(--danger); font-size: .85rem; margin-top: .35rem; }

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 46px;
  padding: .65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--ring);
}
.form-control.is-invalid { border-color: var(--danger); }

.form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
  .form-row-3 { grid-template-columns: repeat(3, 1fr); }
}

.checkbox,
.radio {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .95rem;
}

/* ----- Alerts / Flash ----- */
.flash-stack {
  position: fixed;
  top: calc(var(--header-h) + .75rem);
  right: 1rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  width: min(360px, calc(100% - 2rem));
  pointer-events: none;
}
.alert {
  pointer-events: auto;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .92rem;
  font-weight: 500;
  animation: slideIn .35s var(--ease);
  border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: var(--success); border-color: #bbf7d0; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: #fecaca; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: #fde68a; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #99f6e4; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Site header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-top {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: .35rem 0;
}
.header-top a { color: #fff; }
.header-top .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-main {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
}
.header-main .container {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: min(100% - 1.25rem, var(--container));
}

.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
  color: var(--navy);
}
.brand:hover { color: var(--navy); }
.brand__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.brand__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.location-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--navy);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.location-chip:hover { border-color: var(--teal); background: var(--teal-50); }
.location-chip svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }
.location-chip__label {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-search {
  flex: 1;
  min-width: 0;
  display: none;
}
@media (min-width: 768px) {
  .header-search { display: block; }
}
.header-search__form {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.header-search__form:focus-within {
  border-color: var(--teal);
  box-shadow: var(--ring);
}
.header-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: .7rem 1rem;
  outline: none;
}
.header-search__btn {
  border: 0;
  background: var(--teal);
  color: #fff;
  padding: 0 1.15rem;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
}
.header-search__btn:hover { background: var(--teal-600); }

.header-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-left: auto;
  flex-shrink: 0;
}

.account-menu { position: relative; }
.account-menu__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
  font-size: .88rem;
}
.account-menu__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .4rem;
  display: none;
  z-index: 60;
}
.account-menu.is-open .account-menu__dropdown { display: block; }
.account-menu__dropdown a {
  display: block;
  padding: .65rem .85rem;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-weight: 500;
}
.account-menu__dropdown a:hover { background: var(--teal-50); color: var(--teal-600); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
@media (min-width: 992px) {
  .nav-toggle { display: none; }
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--navy);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: .75rem 0;
}
.site-nav.is-open { display: block; }
@media (min-width: 992px) {
  .site-nav {
    display: block;
    border-top: 0;
    padding: 0;
    background: transparent;
  }
  .site-nav .container {
    display: flex;
    gap: 1.25rem;
    padding-bottom: .65rem;
  }
}
.site-nav a {
  display: block;
  padding: .55rem 0;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .92rem;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--teal-600); }
@media (min-width: 992px) {
  .site-nav a { padding: .25rem 0; }
}

.mobile-search {
  padding: .75rem 0 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .mobile-search { display: none; }
}

/* ----- Location modal ----- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.45);
  z-index: 90;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1rem 2rem;
  overflow: auto;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  width: min(480px, 100%);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.35rem;
  animation: slideIn .3s var(--ease);
}
.modal__title {
  font-size: 1.25rem;
  margin-bottom: .35rem;
}
.modal__sub { color: var(--text-muted); margin-bottom: 1rem; font-size: .92rem; }
.location-list {
  max-height: 280px;
  overflow: auto;
  margin: .75rem 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.location-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: .75rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-weight: 500;
}
.location-list button:last-child { border-bottom: 0; }
.location-list button:hover,
.location-list button.is-active { background: var(--teal-50); color: var(--teal-600); }

/* ----- Hero (brand-first, no cards) ----- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-grad);
  padding: 2.25rem 0 2.75rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 55%;
  height: 90%;
  background:
    radial-gradient(circle at 70% 30%, rgba(13, 148, 136, 0.18), transparent 55%),
    radial-gradient(circle at 40% 70%, rgba(245, 158, 11, 0.14), transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -30%;
  width: 42%;
  height: 70%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  max-width: 680px;
}
.hero__logo {
  width: min(220px, 62vw);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(11, 31, 58, 0.12));
  animation: heroRise .7s var(--ease) both;
}
.hero__title {
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  letter-spacing: -.03em;
  margin: 0;
  animation: heroRise .7s .08s var(--ease) both;
}
.hero__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin: 0;
  animation: heroRise .7s .14s var(--ease) both;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .35rem;
  animation: heroRise .7s .2s var(--ease) both;
}
.hero__search {
  margin-top: 1.5rem;
  max-width: 640px;
  animation: heroRise .7s .26s var(--ease) both;
}
.hero__search-form {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
@media (min-width: 640px) {
  .hero__search-form {
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: .35rem;
    box-shadow: var(--shadow);
    gap: 0;
  }
  .hero__search-form .form-control {
    border: 0;
    box-shadow: none;
    border-radius: 999px;
  }
  .hero__search-form .form-control:focus { box-shadow: none; }
  .hero__search-form .btn { border-radius: 999px; }
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Full-bleed photo hero */
.hero--photo {
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  background: #0b1f3a;
}
.hero--photo::before,
.hero--photo::after { display: none; }
.hero__media {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 25%;
  transform: scale(1.02);
  animation: heroZoom 12s var(--ease) both;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11, 31, 58, 0.82) 0%, rgba(11, 31, 58, 0.55) 42%, rgba(11, 31, 58, 0.28) 100%),
    linear-gradient(to top, rgba(11, 31, 58, 0.55), transparent 45%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3.5rem 0 2.75rem;
}
.hero--photo .hero__title { color: #fff; }
.hero--photo .hero__lead { color: rgba(255, 255, 255, 0.88); max-width: 40ch; }
.hero--photo .hero__search { max-width: 560px; }
.hero--photo .btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}

.seller-showcase {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 860px) {
  .seller-showcase {
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
  }
  .seller-showcase--reverse .seller-showcase__shot { order: 2; }
  .seller-showcase--reverse .seller-showcase__copy { order: 1; }
}
.seller-showcase__shot {
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  aspect-ratio: 16 / 10;
  background: #e8eef5;
}
.seller-showcase__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}
.seller-showcase__shot:hover img { transform: scale(1.04); }
.seller-showcase__copy h2 {
  margin: 0 0 .65rem;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
}
.seller-showcase__copy p {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  max-width: 42ch;
}

/* ----- Category grid (Jiji-style tiles) ----- */
.section { padding: 2.25rem 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-head h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  margin: 0;
}
.section-head p {
  margin: .25rem 0 0;
  color: var(--text-muted);
  font-size: .95rem;
}
.section-link {
  font-weight: 700;
  font-size: .9rem;
  color: var(--teal-600);
  white-space: nowrap;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
@media (min-width: 480px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .category-grid { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
}
@media (min-width: 1100px) {
  .category-grid { grid-template-columns: repeat(6, 1fr); }
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding: .85rem .5rem;
  text-align: center;
  color: var(--navy);
  border-radius: var(--radius);
  transition: background .2s, transform .2s var(--ease);
}
.category-tile:hover {
  background: var(--teal-50);
  color: var(--teal-600);
  transform: translateY(-2px);
}
.category-tile__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e8f7f5, #fff8eb);
  border: 1px solid rgba(13, 148, 136, 0.12);
  color: var(--teal-600);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.category-tile:hover .category-tile__icon {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.18);
  background: #fff;
}
.category-tile__icon img,
.category-tile__icon svg {
  width: 26px;
  height: 26px;
}
.category-tile__name {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.25;
  max-width: 9ch;
}

/* ----- Listing cards ----- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}
@media (min-width: 640px) {
  .listing-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 992px) {
  .listing-grid { grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
}

.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.listing-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(13, 148, 136, 0.35);
}
.listing-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
}
.listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.listing-card:hover .listing-card__media img { transform: scale(1.04); }
.listing-card__badge {
  position: absolute;
  top: .55rem;
  left: .55rem;
}
.listing-card__body {
  padding: .75rem .8rem .9rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1;
}
.listing-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -.02em;
}
.listing-card__title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.listing-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  margin-top: auto;
  padding-top: .45rem;
  font-size: .75rem;
  color: var(--text-soft);
}
.listing-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

/* ----- Sell CTA / trust ----- */
.sell-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, var(--navy) 0%, #134e4a 55%, var(--teal) 100%);
  color: #fff;
  padding: 2rem 1.5rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .sell-cta {
    grid-template-columns: 1.2fr 1fr;
    padding: 2.5rem 2.75rem;
  }
}
.sell-cta h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: .5rem;
}
.sell-cta p {
  color: rgba(255,255,255,.82);
  margin: 0 0 1.25rem;
  max-width: 40ch;
}
.sell-cta__actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.sell-cta__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.sell-cta__visual img {
  border-radius: var(--radius);
  width: 100%;
  height: 120px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.sell-cta__visual img:first-child {
  grid-column: 1 / -1;
  height: 140px;
}

.trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
}
@media (min-width: 640px) {
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
}
.trust-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .5rem 0;
}
.trust-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}
.trust-item h3 {
  font-size: .95rem;
  margin: 0 0 .15rem;
}
.trust-item p {
  margin: 0;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ----- Page chrome ----- */
.page-hero {
  padding: 1.5rem 0 1rem;
  background: linear-gradient(180deg, #eef8f6 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 .35rem; }
.page-hero p { margin: 0; color: var(--text-muted); }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  font-size: .82rem;
  color: var(--text-soft);
  margin-bottom: .65rem;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs span { opacity: .5; }

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filters-bar .form-control,
.filters-bar .form-select {
  min-height: 42px;
  flex: 1 1 140px;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}
.empty-state h3 { margin-bottom: .35rem; }

/* ----- Item detail ----- */
.item-layout {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0 2.5rem;
}
@media (min-width: 900px) {
  .item-layout { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.item-gallery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.item-gallery__main {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.item-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-gallery__thumbs {
  display: flex;
  gap: .5rem;
  padding: .75rem;
  overflow-x: auto;
}
.item-gallery__thumbs button {
  width: 64px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-2);
  flex-shrink: 0;
}
.item-gallery__thumbs button.is-active { border-color: var(--teal); }
.item-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.item-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}
.item-panel__price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
}
.item-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin: .75rem 0 1.15rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.vendor-chip {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  margin: 1rem 0;
}
.vendor-chip__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  overflow: hidden;
}
.vendor-chip__avatar img { width: 100%; height: 100%; object-fit: cover; }

.prose {
  line-height: 1.7;
  color: var(--text);
}
.prose h2, .prose h3 { margin-top: 1.25rem; }
.prose p { margin-bottom: .9rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }

/* ----- Auth ----- */
.auth-page {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: var(--hero-grad);
}
.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.auth-card__brand {
  text-align: center;
  margin-bottom: 1.25rem;
}
.auth-card__brand img {
  height: 64px;
  width: auto;
  margin: 0 auto .75rem;
}
.auth-card h1 {
  font-size: 1.45rem;
  text-align: center;
}
.auth-card__footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .92rem;
  color: var(--text-muted);
}

/* ----- Cart / checkout ----- */
.cart-layout,
.checkout-layout {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 0 2.5rem;
}
@media (min-width: 860px) {
  .cart-layout,
  .checkout-layout { grid-template-columns: 1.5fr 1fr; align-items: start; }
}
.cart-line {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: .85rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
}
.cart-line img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  font-size: .95rem;
}
.summary-row.is-total {
  border-top: 1px solid var(--border);
  margin-top: .5rem;
  padding-top: .85rem;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* ----- Tables ----- */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.table th,
.table td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-soft);
  background: var(--surface-2);
  font-weight: 700;
}
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(13, 148, 136, 0.03); }

/* ----- Stats ----- */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 900px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.stat-card:hover {
  box-shadow: var(--shadow);
  border-color: #d5e0de;
  transform: translateY(-1px);
}
.stat-card__label {
  font-size: .75rem;
  color: var(--text-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: .35rem;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--border);
}
.panel__head h2,
.panel__head h3 { margin: 0; font-size: 1.1rem; }

/* ----- Pagination ----- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  margin: 1.75rem 0 1rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
}
.pagination a:hover { border-color: var(--teal); color: var(--teal-600); }
.pagination .is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.pagination .is-disabled { opacity: .45; pointer-events: none; }

/* ----- Footer ----- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.78);
  margin-top: 2.5rem;
  padding: 2.5rem 0 1.25rem;
}
.site-footer a { color: rgba(255,255,255,.88); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: .75rem;
  background: #fff;
  border-radius: 10px;
  padding: .35rem;
}
.footer-brand p { font-size: .9rem; max-width: 32ch; }
.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .85rem;
}
.footer-col a {
  display: block;
  padding: .3rem 0;
  font-size: .9rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}

/* ----- Dashboard ----- */
.dash-body {
  background: #f3f6f8;
  margin: 0;
}
.dash-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 31, 58, 0.45);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.dash-overlay.is-open { display: block; }
.dash {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f3f6f8;
  width: 100%;
}
@media (min-width: 992px) {
  .dash {
    flex-direction: row;
    align-items: stretch;
  }
  .dash-overlay { display: none !important; }
}

.dash-sidebar {
  background: linear-gradient(180deg, #0b1f3a 0%, #102744 100%);
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
  width: 268px;
  flex-shrink: 0;
  z-index: 100;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 992px) {
  .dash-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }
}
@media (max-width: 991px) {
  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 88vw);
    height: 100vh;
    max-height: 100vh;
    transform: translateX(-105%);
    transition: transform 0.28s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .dash-sidebar.is-open { transform: translateX(0); }
  .dash-sidebar__close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  body.dash-nav-open { overflow: hidden; }
}

.dash-sidebar__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.dash-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  min-width: 0;
}
.dash-sidebar__brand:hover { color: #fff; }
.dash-sidebar__brand img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 0.3rem;
  flex-shrink: 0;
}
.dash-sidebar__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.dash-sidebar__brand-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-sidebar__brand-text span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dash-sidebar__close {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.dash-sidebar__close:hover { background: rgba(255, 255, 255, 0.14); }

.dash-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem 0.75rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.dash-nav__group + .dash-nav__group { margin-top: 0.35rem; }
.dash-nav__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.38);
  padding: 0.85rem 0.75rem 0.35rem;
  font-weight: 700;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem 0.8rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.dash-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.dash-nav a.is-active {
  background: rgba(13, 148, 136, 0.32);
  color: #fff;
  box-shadow: inset 3px 0 0 #2dd4bf;
}

.dash-sidebar__foot {
  flex-shrink: 0;
  padding: 0.85rem 1rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.dash-user-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.dash-user-chip strong {
  display: block;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}
.dash-user-chip a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}
.dash-user-chip a:hover { color: #fff; }
.dash-user-chip__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #22c55e);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.dash-user-chip__avatar--sm {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
}

.dash-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f3f6f8;
}
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.dash-topbar__left,
.dash-topbar__right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.dash-topbar__titles { min-width: 0; }
.dash-topbar__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.dash-topbar h1 {
  font-size: 1.15rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-topbar__user {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.55rem 0.3rem 0.3rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.dash-topbar__name {
  font-size: 0.85rem;
  font-weight: 600;
  padding-right: 0.35rem;
}
@media (min-width: 720px) {
  .dash-topbar__user { display: inline-flex; }
}

.dash-menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
  flex-shrink: 0;
}
.dash-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
}
.dash-menu-btn:hover { border-color: var(--teal); background: var(--teal-50); }
@media (min-width: 992px) {
  .dash-menu-btn { display: none; }
}

.dash-content {
  padding: 1.25rem;
  flex: 1;
}
@media (min-width: 768px) {
  .dash-content { padding: 1.5rem 1.75rem 2rem; }
}

/* ----- Misc ----- */
.muted { color: var(--text-muted); }
.text-sm { font-size: .875rem; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: .5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.stack > * + * { margin-top: .75rem; }

.maintenance-page,
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--hero-grad);
}
.maintenance-page h1,
.error-page h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: -.04em;
}
.maintenance-page p,
.error-page p {
  color: var(--text-muted);
  max-width: 40ch;
  margin: .75rem auto 1.5rem;
}

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

/* RTL support */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .dash { direction: rtl; }
html[dir="rtl"] .header-actions,
html[dir="rtl"] .hero__cta,
html[dir="rtl"] .flex { flex-direction: row-reverse; }
html[dir="rtl"] .breadcrumbs span { display: inline-block; transform: scaleX(-1); }

/* ——— In-house live chat widget ——— */
.urno-chat { font-family: 'DM Sans', system-ui, sans-serif; }
.urno-chat__fab {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 0; border-radius: 999px; padding: .85rem 1.1rem;
  background: var(--navy, #0B1F3A); color: #fff; cursor: pointer;
  box-shadow: 0 12px 28px rgba(11,31,58,.35);
  font-weight: 600; font-size: .95rem;
}
.urno-chat__fab:hover { background: var(--teal, #0D9488); }
.urno-chat__panel {
  position: absolute; right: 0; bottom: 64px; width: min(360px, calc(100vw - 24px));
  height: min(480px, 70vh); background: #fff; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15,23,42,.25); display: flex; flex-direction: column;
  overflow: hidden; border: 1px solid #e2e8f0;
}
.urno-chat__panel[hidden] { display: none !important; }
.urno-chat__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 1rem; background: linear-gradient(120deg, #0B1F3A, #0D9488); color: #fff;
}
.urno-chat__sub { font-size: .75rem; opacity: .85; margin-top: .1rem; }
.urno-chat__close {
  background: transparent; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.urno-chat__body { flex: 1; overflow: auto; padding: .85rem; background: #f8fafc; }
.urno-chat__welcome { color: #64748b; font-size: .9rem; text-align: center; padding: 1.5rem .5rem; }
.urno-chat__msg { margin-bottom: .75rem; max-width: 88%; }
.urno-chat__msg.is-mine { margin-left: auto; }
.urno-chat__msg.is-staff { margin-right: auto; }
.urno-chat__bubble {
  padding: .65rem .8rem; border-radius: 14px; font-size: .9rem; line-height: 1.4;
  white-space: pre-wrap; word-break: break-word;
}
.urno-chat__msg.is-mine .urno-chat__bubble { background: #0B1F3A; color: #fff; border-bottom-right-radius: 4px; }
.urno-chat__msg.is-staff .urno-chat__bubble { background: #fff; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; }
.urno-chat__meta { font-size: .7rem; color: #94a3b8; margin-top: .25rem; }
.urno-chat__msg.is-mine .urno-chat__meta { text-align: right; }
.urno-chat__foot { border-top: 1px solid #e2e8f0; padding: .65rem; background: #fff; }
.urno-chat__form, .urno-chat__composer { display: grid; gap: .45rem; }
.urno-chat__form input, .urno-chat__form textarea,
.urno-chat__composer textarea {
  width: 100%; border: 1px solid #e2e8f0; border-radius: 10px; padding: .55rem .7rem;
  font: inherit; resize: none;
}
.urno-chat__form button, .urno-chat__composer button {
  border: 0; border-radius: 10px; padding: .65rem; background: #0D9488; color: #fff;
  font-weight: 600; cursor: pointer;
}
.urno-chat__form button:hover, .urno-chat__composer button:hover { background: #0B1F3A; }
html[dir="rtl"] .urno-chat { right: auto !important; left: 16px !important; }
html[dir="rtl"] .urno-chat__panel { right: auto; left: 0; }

.chat-thread { display: flex; flex-direction: column; gap: .75rem; max-height: 420px; overflow: auto; padding: 1rem; background: #f8fafc; border-radius: 12px; }
.chat-bubble { max-width: 80%; padding: .7rem .9rem; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; }
.chat-bubble.is-staff { background: #0B1F3A; color: #fff; border-color: #0B1F3A; margin-left: auto; }
.chat-bubble.is-visitor { margin-right: auto; }
.chat-bubble small { display: block; opacity: .7; margin-top: .35rem; font-size: .75rem; }
