:root {
  --bg: #faf8fb;
  --bg-2: #f8d8ee;
  --bg-subtle: #fdfafd;
  --panel: #ffffff;
  --line: #e8dfe8;
  --text: #242038;
  --text-muted: #6f6472;
  --muted: #6f6472;
  --brand: #df75bb;
  --primary: #df75bb;
  --brand-strong: #c95fa6;
  --brand-hover: #c95fa6;
  --brand-soft: #f8d8ee;
  --accent: #3a8dad;
  --accent-soft: #e4f1f6;
  --chat-left: #f4eef4;
  --chat-right: #f8d8ee;
  --warning: #e4a11b;
  --warning-bg: #fff4d8;
  --warning-hover: #c9830f;
  --success: #4f9d69;
  --success-bg: #e3f3e8;
  --success-hover: #3e8055;
  --info: #3a8dad;
  --info-bg: #e4f1f6;
  --danger: #d94f5c;
  --danger-hover: #bd3d4a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 52%, #f4eef4 100%);
  min-height: 100vh;
}

.app-root {
  max-width: 1250px;
  margin: 0 auto;
  padding: 1.25rem;
}

.logo {
  max-width: 180px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0.5rem 0;
  border-radius: 8px;
}

.sidebar .logo {
  max-width: 140px;
  margin: 0.25rem 0 0.75rem;
}

.auth-page .logo {
  max-width: 200px;
  margin: 0 auto 1.5rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--brand);
  font-weight: 700;
}

.auth-view {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  align-items: start;
  gap: 1rem;
}

.auth-page {
  display: grid;
  gap: 1rem;
}

.welcome-panel,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 26px rgba(36, 32, 56, 0.08);
}

.welcome-panel {
  padding: 1.6rem;
  background:
    linear-gradient(180deg, #ffffff, var(--bg-subtle));
}

.welcome-panel h1 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.auth-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.welcome-lead {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
  color: var(--text);
}

.welcome-story {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.welcome-story p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-info-section {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px dashed var(--line);
}

.auth-info-section h3 {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  color: var(--brand-strong);
}

.auth-section-subtitle {
  margin: 0.35rem 0 0.65rem;
}

.auth-info-list {
  display: grid;
  gap: 0.6rem;
}

.auth-info-item {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
}

.auth-info-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.auth-info-item p {
  margin: 0;
}

.auth-info-item p:first-child {
  font-weight: 700;
  color: var(--text);
}

.auth-info-item p + p {
  margin-top: 0.2rem;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.94rem;
}

.auth-entry-panel {
  position: sticky;
  top: 1rem;
  padding: 1.15rem;
}

.auth-entry-panel h2 {
  margin-bottom: 0.45rem;
}

#auth-submit-btn {
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
}

#auth-submit-btn:hover {
  background: linear-gradient(180deg, var(--brand-strong), #b94f96);
}

#auth-recovery-page .panel {
  max-width: 560px;
}

.text-link-btn {
  width: auto;
  margin-top: 0.7rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
}

.text-link-btn:hover {
  background: transparent;
  color: var(--brand-strong);
  transform: none;
}

.panel {
  padding: 1rem;
}

.subtle {
  margin-top: 0.75rem;
}

.muted-panel {
  background: var(--bg-subtle);
}

h2,
h3 {
  margin: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.8rem 0;
}

.stack-form {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.form-label span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}

input,
textarea,
select,
button {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

textarea {
  min-height: 105px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(223, 117, 187, 0.18);
}

button {
  cursor: pointer;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 650;
  transition: transform 0.15s ease, background 0.15s ease;
}

button:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.hidden {
  display: none !important;
}

.app-view {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1rem;
  min-height: 72vh;
}

/* Anonymous mode - full width without sidebar */
.app-view.anonymous-mode {
  grid-template-columns: 1fr;
}

.sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  background: #242038;
  color: #faf8fb;
  border-radius: 18px;
  border: 1px solid #3a334f;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar .eyebrow {
  color: #f8d8ee;
}

.sidebar-nav {
  display: grid;
  gap: 0.45rem;
}

.nav-link {
  text-align: left;
  background: #332d49;
  border: 1px solid #463f5f;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.nav-link > * {
  min-width: 0;
}

.nav-link .unread-badge {
  margin-left: auto;
  flex-shrink: 0;
}

.nav-link.active {
  background: var(--accent);
  color: #ffffff;
}

.logout-btn {
  margin-top: auto;
  background: #d94f5c;
}

.unread-badge {
  min-width: 1.35rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: #d94f5c;
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
  font-weight: 700;
}

.main-content {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 0;
}

/* Anonymous Header Styles */
.anonymous-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  margin: -1rem -1rem 1.5rem -1rem;
  padding: 1rem;
  border-radius: 20px 20px 0 0;
}

.anonymous-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.anonymous-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 0;
}

.anonymous-logo img {
  width: 40px;
  height: 40px;
}

.anonymous-logo span {
  white-space: normal;
  overflow-wrap: anywhere;
}

.anonymous-header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.anonymous-header-actions button {
  width: auto;
  flex: 0 1 auto;
  white-space: normal;
}

.anonymous-header .language-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

.anonymous-header .language-select:hover {
  border-color: #f8d8ee;
}

.anonymous-header .language-select:focus {
  outline: 2px solid #f8d8ee;
  outline-offset: 2px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.muted {
  color: var(--muted);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.address-input-wrap {
  position: relative;
}

.address-input-wrap input {
  padding-right: 2.9rem;
}

.locate-inside-btn {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #e7c1dc;
  background: #f8d8ee;
  color: #9a4380;
  font-size: 1.05rem;
  line-height: 1;
}

.locate-inside-btn:hover {
  background: #f2c7e4;
  transform: translateY(-50%);
}

.inline-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.inline-buttons button {
  flex: 1 1 150px;
}

.offer-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 0.7rem;
}

.offer-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  min-height: 240px;
  cursor: pointer;
  touch-action: pan-y;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  position: relative;
  z-index: 1;
}

.offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(36, 32, 56, 0.13);
  z-index: 2;
}

.offer-image,
.detail-offer-image {
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  user-select: none;
  -webkit-user-drag: none;
}

.offer-image {
  height: 132px;
}

.offer-meta {
  padding: 0.75rem 0.8rem 0.85rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.offer-item {
  font-size: 0.98rem;
  font-weight: 700;
}

.offer-distance {
  color: var(--accent);
  font-size: 0.9rem;
}

.offer-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.price-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-input-row input {
  flex: 1;
}

.price-currency {
  font-weight: 600;
  color: var(--muted);
}

.offer-detail {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.offer-detail-media {
  display: grid;
  gap: 0.5rem;
}

.detail-offer-image {
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: zoom-in;
}

.offer-detail-meta {
  display: grid;
  gap: 0.45rem;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  color: var(--text);
}

.location-badge.private {
  background: var(--warning-bg);
  border-color: #f0d08a;
  color: #7b540f;
}

.location-badge.owner {
  background: var(--success-bg);
  border-color: #b9ddc4;
  color: #2f6d46;
}

.detail-offer-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.35rem;
}

.detail-offer-thumb {
  width: 100%;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--line);
  cursor: pointer;
}

.detail-offer-thumb.active {
  border-color: var(--brand);
}

.offer-photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
}

.offer-photo-preview img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
}

.model-thumb {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.model-image-dropzone {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  margin: 0.35rem 0;
}

#offer-photos-dropzone,
#edit-offer-photos-dropzone,
#new-model-image-dropzone {
  margin-top: 0.5rem;
}

.model-match-value {
  margin-top: 0.4rem;
  font-weight: 650;
}

.model-suggestion-list {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.35rem;
}

.model-suggestion-btn {
  text-align: left;
  background: var(--bg-subtle);
  color: var(--text);
  border: 1px solid var(--line);
}

.model-suggestion-btn:hover {
  background: var(--brand-soft);
  transform: none;
}

pre {
  margin: 0;
  background: #242038;
  color: #faf8fb;
  border-radius: 10px;
  padding: 0.75rem;
  overflow: auto;
}

.messages-layout {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0.8rem;
}

.thread-list-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  max-height: 540px;
  overflow: auto;
}

.thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.thread-list button {
  border-radius: 0;
  border-bottom: 1px solid #e7ece5;
  background: #fff;
  color: var(--text);
  text-align: left;
  padding: 0.7rem;
}

.thread-list button:hover {
  background: var(--bg-subtle);
  transform: none;
}

.thread-list button.active {
  background: var(--brand-soft);
}

.thread-list button.unread {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning);
  padding-left: 0.5rem;
}

.thread-list button.unread .thread-title {
  color: #7b540f;
}

.thread-list button.unread .thread-sub {
  color: #7b540f;
  font-weight: 600;
}

.thread-title {
  font-weight: 700;
  font-size: 0.92rem;
}

.thread-sub {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 0.2rem;
}

.thread-panel {
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) auto;
  min-height: 540px;
}

.thread-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.thread-header {
  font-weight: 700;
}

.thread-borrow-requests {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.thread-borrow-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-subtle);
  padding: 0.7rem;
}

.thread-borrow-card.pending {
  background: var(--warning-bg);
  border-color: #f0d08a;
}

.thread-borrow-card.approved {
  background: var(--success-bg);
  border-color: #b9ddbf;
}

.thread-borrow-card.rejected {
  background: #fff0f2;
  border-color: #e7b8c0;
}

.thread-borrow-title {
  font-weight: 700;
}

.thread-borrow-body {
  color: var(--muted);
  margin-top: 0.2rem;
}

.thread-borrow-rating-summary {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.thread-borrow-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.borrow-rating-panel {
  margin-top: 0.7rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0.65rem;
  display: grid;
  gap: 0.45rem;
}

.borrow-rating-form {
  display: grid;
  gap: 0.45rem;
}

.borrow-rating-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.borrow-rating-stars {
  display: inline-flex;
  gap: 0.18rem;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
}

.borrow-rating-star {
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid transparent;
  background: #fff;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.borrow-rating-star.filled {
  background: #fff3c4;
  border-color: #e0b84f;
  box-shadow: 0 0 0 1px rgba(224, 184, 79, 0.18);
}

.borrow-rating-star.empty {
  background: #f4f6f3;
  border-color: #d8ddd4;
  color: #b8beb3;
}

.borrow-rating-star:hover {
  transform: scale(1.06);
}

@media (max-width: 700px) {
  .borrow-rating-field {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

.chat-thread {
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-subtle);
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
  padding: 0.65rem;
  display: grid;
  gap: 0.5rem;
}

.chat-message {
  max-width: 70%;
  border-radius: 14px;
  padding: 0.55rem 0.7rem;
  font-size: 0.94rem;
  line-height: 1.32;
}

.chat-message.sent {
  justify-self: end;
  background: var(--chat-right);
  border: 1px solid #e7c1dc;
}

.chat-message.received {
  justify-self: start;
  background: var(--chat-left);
  border: 1px solid var(--line);
}

.chat-meta {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.thread-reply-form {
  margin-top: 0.75rem;
}

.calendar-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.borrow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.borrow-calendar-panel,
.borrow-side-panel {
  min-width: 0;
}

.borrow-calendar-grid {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.borrow-calendar-weekday {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.borrow-calendar-day {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-subtle);
  padding: 0.3rem;
  display: grid;
  align-content: start;
  gap: 0.18rem;
  cursor: pointer;
}

.borrow-calendar-day.filler {
  background: transparent;
  border-style: dashed;
  min-height: 60px;
}

.borrow-calendar-day.today {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px #e7c1dc;
}

.borrow-calendar-day.selection-range {
  background: var(--brand-soft);
}

.borrow-calendar-day.selection-start,
.borrow-calendar-day.selection-end {
  border-color: var(--brand-strong);
  box-shadow: inset 0 0 0 2px #e7c1dc;
}

.borrow-calendar-date {
  font-weight: 700;
  font-size: 0.82rem;
}

.borrow-pill {
  border-radius: 999px;
  padding: 0.12rem 0.38rem;
  font-size: 0.66rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.borrow-pill.pending {
  background: var(--warning-bg);
  color: #7a4f00;
}

.borrow-pill.approved {
  background: var(--success-bg);
  color: #2f6d46;
}

.borrow-pill.rejected {
  background: #f6dcdc;
  color: #7b3030;
}

.borrow-pill.more {
  background: var(--bg-subtle);
  color: var(--muted);
}

.borrow-calendar-legend {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.25rem;
}

.borrow-legend-item {
  font-size: 0.8rem;
  color: var(--muted);
}

.borrow-side-panel {
  display: grid;
  gap: 0.9rem;
}

.borrow-form {
  margin-top: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-subtle);
}

.borrow-owner-requests {
  display: grid;
  gap: 0.6rem;
}

.borrow-owner-request-card {
  border: 1px solid #f0d08a;
  border-radius: 12px;
  background: var(--warning-bg);
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.borrow-owner-request-card.approved {
  border-color: #b9ddbf;
  background: var(--success-bg);
}

.borrow-owner-request-body {
  font-weight: 600;
}

.success-note {
  color: var(--success);
  font-weight: 700;
}

.my-offers-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.65rem;
}

.my-offer-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-subtle);
  padding: 0.7rem;
  display: grid;
  gap: 0.5rem;
}

.my-offer-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: flex-start;
}

.my-offer-title {
  font-weight: 700;
}

.my-offer-actions {
  display: flex;
  gap: 0.45rem;
}

.offers-visibility-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.offers-visibility-status {
  margin: 0;
  font-weight: 600;
}

.notification-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

.checkbox-row input {
  width: 1.1rem;
  height: 1.1rem;
}

.notification-devices-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.notification-device-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-subtle);
}

.notification-device-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.notification-device-name {
  font-weight: 700;
}

.notification-device-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.notification-device-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.offer-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--warning-bg);
  color: #7b540f;
  font-size: 0.78rem;
  font-weight: 700;
}

.danger-btn {
  background: var(--danger);
}

.edit-offer-form {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.my-offer-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 0.45rem;
}

.my-offer-photo-tile {
  display: grid;
  gap: 0.25rem;
}

.my-offer-photo-tile img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.small-btn {
  padding: 0.35rem 0.45rem;
  font-size: 0.8rem;
}

.log {
  margin-top: 0.9rem;
  min-height: 56px;
  white-space: pre-wrap;
}

.app-footer {
  margin-top: 1rem;
  padding: 0.85rem 0.4rem 0.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.app-footer a {
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 600;
}

.app-footer a:hover {
  text-decoration: underline;
}

.footer-sep {
  color: #7a8c7f;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(36, 32, 56, 0.82);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.image-lightbox-img {
  max-width: min(1200px, 95vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.image-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: auto;
  padding: 0.45rem 0.7rem;
  background: #242038;
}

.image-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  padding: 0;
  font-size: 1.7rem;
  line-height: 1;
  background: rgba(36, 32, 56, 0.85);
}

.image-lightbox-prev {
  left: 1rem;
}

.image-lightbox-next {
  right: 1rem;
}

@media (max-width: 960px) {
  .auth-cards {
    grid-template-columns: 1fr;
  }

  .auth-view {
    grid-template-columns: 1fr;
  }

  .auth-entry-panel {
    position: static;
  }

  .app-view {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .messages-layout {
    grid-template-columns: 1fr;
  }

  .offer-detail {
    grid-template-columns: 1fr;
  }

  .calendar-head-row {
    flex-direction: column;
  }

  .borrow-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .split-grid {
    grid-template-columns: 1fr;
  }

  .chat-message {
    max-width: 88%;
  }

  .borrow-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .borrow-calendar-weekday {
    display: none;
  }

  .borrow-calendar-day {
    min-height: 82px;
  }
}

/* Catalog Selector Component Styles */
.catalog-selector {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.catalog-search-bar {
  display: flex;
  gap: 0.5rem;
}

.catalog-search-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.catalog-search-input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(223, 117, 187, 0.16);
}

.catalog-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.catalog-breadcrumb {
  padding: 0.35rem 0.75rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.catalog-breadcrumb:hover:not(:disabled) {
  background: var(--bg);
  transform: none;
}

.catalog-breadcrumb:disabled {
  background: var(--bg-2);
  color: var(--text);
  cursor: default;
  border-color: transparent;
}

.catalog-breadcrumb-separator {
  color: var(--muted);
  font-weight: 300;
}

.catalog-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 500px;
  overflow-y: auto;
  padding: 0.5rem;
  margin: -0.5rem;
}

.catalog-section-title {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.catalog-section-separator {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
  margin: 1.5rem 0;
}

.catalog-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.catalog-brand-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.catalog-tool-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.catalog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 100px;
}

.catalog-card:hover {
  border-color: var(--brand);
  background: var(--bg-subtle);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(223, 117, 187, 0.16);
}

.catalog-card.selected {
  border-color: var(--brand);
  background: linear-gradient(135deg, #f8d8ee 0%, #e4f1f6 100%);
  box-shadow: 0 0 0 3px rgba(223, 117, 187, 0.2);
}

.catalog-category-card {
  min-height: 120px;
  position: relative;
}

.catalog-category-card.has-children {
  border-left: 4px solid var(--brand);
}

.catalog-category-card.has-children::after {
  content: '→';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.2rem;
  color: var(--brand);
  opacity: 0.6;
}

.catalog-category-card.has-children:hover::after {
  opacity: 1;
  transform: translateX(2px);
  transition: all 0.2s ease;
}

.catalog-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.catalog-card-name {
  font-weight: 650;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.catalog-card-count {
  font-size: 0.8rem;
  color: var(--muted);
}

.catalog-brand-card {
  min-height: 80px;
  padding: 0.75rem;
}

.catalog-tool-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  min-height: auto;
  text-align: left;
}

.catalog-tool-card.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.catalog-tool-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--bg);
}

.catalog-tool-image-placeholder {
  border: 1px dashed #c4cbd6;
  background: var(--bg-subtle);
}

.catalog-tool-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.catalog-tool-brand {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

.catalog-tool-model {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.catalog-tool-category {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
  overflow-wrap: anywhere;
}

.catalog-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  font-style: italic;
}

.catalog-more-hint {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.5rem;
  margin: 0;
}

.catalog-create-new-btn {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--accent) 0%, #d48c15 100%);
  color: var(--text);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.catalog-create-new-btn:hover {
  background: linear-gradient(135deg, #d48c15 0%, #bd7710 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 165, 36, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .catalog-tool-grid {
    grid-template-columns: 1fr;
  }
  
  .catalog-content {
    max-height: 400px;
  }
}

/* Toggle button styles for catalog/search view */
.inline-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.small-btn.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.small-btn.active:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

/* Moderation Approval Styles */
.pending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.5rem;
  background: var(--accent);
  color: var(--text);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.moderation-pending-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.moderation-pending-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--warning-bg);
  border: 2px solid var(--accent);
  border-radius: 8px;
  align-items: start;
}

.moderation-pending-info {
  display: grid;
  gap: 0.25rem;
}

.moderation-pending-name {
  font-weight: 700;
  color: var(--text);
}

.moderation-pending-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.moderation-pending-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.moderation-pending-duplicate-hint {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
}

.moderation-pending-duplicate-list,
.moderation-tool-duplicate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.moderation-pending-duplicate-item,
.moderation-tool-duplicate-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.moderation-pending-duplicate-item .moderation-duplicate-link,
.moderation-tool-duplicate-item .moderation-duplicate-link {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.moderation-duplicate-link {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.moderation-duplicate-link:hover {
  border-color: var(--brand);
  background: rgba(223, 117, 187, 0.1);
  transform: translateY(-1px);
}

.moderation-duplicate-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.moderation-duplicate-merge-btn {
  flex-shrink: 0;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

.moderation-pending-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.approve-btn {
  padding: 0.5rem 1rem;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.approve-btn:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.reject-btn {
  padding: 0.5rem 1rem;
  background: #d94f5c;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reject-btn:hover {
  background: #7a2525;
  transform: translateY(-1px);
}

.approval-status-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.approval-status-badge.approved {
  background: var(--success-bg);
  color: #2f6d46;
}

.approval-status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.approval-status-badge.used-in-offers,
.moderation-tool-badge.used-in-offers {
  background: #e4f1ff;
  color: #1b5b8c;
}

.approval-status-badge.moderation-tool-offer-link,
.moderation-tool-badge.moderation-tool-offer-link {
  appearance: none;
  border: none;
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.approval-status-badge.moderation-tool-offer-link:hover,
.moderation-tool-badge.moderation-tool-offer-link:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.approval-status-badge.moderation-tool-offer-link:focus-visible,
.moderation-tool-badge.moderation-tool-offer-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.moderation-tool-offer-popover {
  position: fixed;
  z-index: 900;
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  width: min(360px, calc(100vw - 24px));
  max-height: min(60vh, 420px);
  overflow: hidden;
}

.moderation-tool-offer-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.moderation-tool-offer-popover-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.moderation-tool-offer-popover-subtitle {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.moderation-tool-offer-popover-close {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.moderation-tool-offer-popover-close:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(223, 117, 187, 0.08);
}

.moderation-tool-offer-popover-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.moderation-tool-offer-popover-list {
  display: grid;
  gap: 0.5rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.moderation-tool-offer-popover-item {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.moderation-tool-offer-popover-item:hover {
  border-color: var(--brand);
  background: rgba(223, 117, 187, 0.08);
  transform: translateY(-1px);
}

.moderation-tool-offer-popover-item:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.moderation-tool-offer-popover-item-main {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.moderation-tool-offer-popover-item-title {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text);
  overflow-wrap: anywhere;
}

.moderation-tool-offer-popover-item-meta {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.moderation-tool-offer-popover-action {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

.moderation-tool-offer-popover-state {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.moderation-tool-offer-popover-state.error {
  color: var(--danger);
}

.approval-status-badge.duplicate,
.moderation-tool-badge.duplicate {
  background: #f3e8ff;
  color: #7a3fa0;
}

.category-hierarchy-indent {
  padding-left: 1.5rem;
  position: relative;
}

.category-hierarchy-indent::before {
  content: '└─';
  position: absolute;
  left: 0.25rem;
  color: var(--muted);
}

.empty-pending-message {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-style: italic;
}

/* Moderation Catalog UI */
.moderation-catalog-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.moderation-catalog-controls select {
  min-width: 180px;
}

#moderation-tool-actions-panel {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-subtle);
  border-radius: 8px;
  border: 2px solid var(--primary);
}

#moderation-tool-actions-panel.hidden {
  display: none;
}

.moderation-tool-actions-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.moderation-tool-actions-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.moderation-tool-actions-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.moderation-tool-actions-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.moderation-tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.moderation-tool-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}

.moderation-tool-badge.pending {
  background: var(--warning-bg);
  color: var(--warning);
}

.moderation-tool-badge.approved {
  background: var(--success-bg);
  color: var(--success);
}

.moderation-tool-badge.user-submitted {
  background: var(--info-bg);
  color: var(--info);
}

.moderation-tool-review-notes {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcf8;
}

.moderation-tool-review-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.moderation-tool-duplicate-hint {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.moderation-tool-merge-section {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdfdfb;
}

.moderation-tool-merge-section h5 {
  margin: 0;
  font-size: 1rem;
}

.moderation-tool-merge-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.moderation-tool-merge-target {
  width: 100%;
}

.merge-btn {
  background: var(--brand);
  color: white;
}

.merge-btn:hover {
  background: var(--brand-strong);
}

.moderation-tool-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.moderation-tool-actions button {
  flex: 1;
  min-width: 100px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.moderation-tool-actions button.danger {
  background: var(--danger);
  color: white;
}

.moderation-tool-actions button.danger:hover {
  background: var(--danger-hover);
}

.moderation-tool-actions button.success {
  background: var(--success);
  color: white;
}

.moderation-tool-actions button.success:hover {
  background: var(--success-hover);
}

/* Catalog Editor Tabs */
.catalog-editor-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--line);
}

.catalog-editor-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.catalog-editor-tab:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.catalog-editor-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: transparent;
}

.catalog-editor-tab .tab-icon {
  font-size: 1.2rem;
}

.catalog-editor-tab .tab-label {
  font-size: 0.95rem;
}

/* Tab Content */
.catalog-editor-tab-content {
  display: none;
}

.catalog-editor-tab-content.active {
  display: block;
}

/* Layout */
.catalog-editor-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  min-height: 500px;
}

@media (max-width: 1024px) {
  .catalog-editor-layout {
    grid-template-columns: 1fr;
  }
}

.catalog-editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.catalog-editor-main {
  display: flex;
  flex-direction: column;
}

/* Sections */
.catalog-editor-section {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}

.catalog-editor-section-title {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Placeholder */
.catalog-editor-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-radius: 8px;
  border: 2px dashed var(--line);
}

.catalog-editor-placeholder .placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.catalog-editor-placeholder p {
  margin: 0;
  font-size: 0.95rem;
}

/* Select Lists */
.catalog-editor-section select[size] {
  width: 100%;
  min-height: 200px;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--bg);
}

.catalog-editor-section select[size] option {
  padding: 0.5rem;
  border-radius: 4px;
  margin-bottom: 2px;
}

.catalog-editor-section select[size] option:hover {
  background: var(--bg-subtle);
}

/* Button Groups */
.button-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.button-group button {
  flex: 1;
}

.button-group .danger-btn {
  background: var(--danger);
  color: white;
  flex: 0 0 auto;
  min-width: 120px;
}

.button-group .danger-btn:hover {
  background: var(--danger-hover);
}

#moderation-category-edit-form .button-group,
#moderation-tool-edit-form .button-group {
  flex-wrap: wrap;
}

#moderation-category-edit-form .button-group button,
#moderation-tool-edit-form .button-group button {
  width: auto;
  min-width: 0;
  flex: 1 1 12rem;
}

#moderation-category-edit-form .button-group .danger-btn,
#moderation-tool-edit-form .button-group .danger-btn {
  min-width: 0;
  flex: 1 1 12rem;
}

/* Form Improvements */
.catalog-editor-section .stack-form {
  gap: 0.75rem;
}

.catalog-editor-section .stack-form input,
.catalog-editor-section .stack-form select {
  padding: 0.65rem;
  font-size: 0.95rem;
}

.catalog-editor-section .stack-form button[type="submit"] {
  background: var(--brand);
  color: white;
  font-weight: 600;
  padding: 0.75rem;
}

.catalog-editor-section .stack-form button[type="submit"]:hover {
  background: var(--brand-hover);
}

.catalog-editor-section .stack-form button.danger-btn[type="submit"] {
  background: var(--danger);
  color: #ffffff;
}

.catalog-editor-section .stack-form button.danger-btn[type="submit"]:hover {
  background: var(--danger-hover);
}

.category-merge-summary {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  line-height: 1.4;
}

.visual-catalog-hint {
  margin: -0.35rem 0 1rem;
  line-height: 1.45;
}

.visual-catalog-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.visual-catalog-section-head .catalog-editor-section-title {
  margin: 0;
}

.visual-catalog-editor {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: min(70vh, 820px);
  overflow: auto;
  padding-right: 0.25rem;
}

.visual-catalog-category {
  margin-left: calc(var(--category-depth, 0) * 1rem);
}

.visual-catalog-category-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: grab;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.visual-catalog-category-header:active {
  cursor: grabbing;
}

.visual-catalog-category-header.dragging,
.visual-catalog-tool.dragging {
  opacity: 0.52;
}

.visual-catalog-category-header.drop-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(223, 117, 187, 0.18);
}

.visual-catalog-toggle {
  width: 1.75rem;
  height: 1.75rem;
  min-width: 1.75rem;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.visual-catalog-category-title {
  min-width: 0;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.visual-catalog-category-meta {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.visual-catalog-tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.55rem 0 0.25rem 0.8rem;
}

.visual-catalog-tool {
  max-width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 650;
  cursor: grab;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-catalog-tool:active {
  cursor: grabbing;
}

.visual-catalog-children {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.visual-catalog-popout-body {
  min-height: 100vh;
}

.visual-catalog-popout {
  max-width: none;
  width: min(1500px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1rem;
}

.visual-catalog-popout-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.visual-catalog-popout-header h1 {
  margin: 0;
  font-size: 1.45rem;
}

.visual-catalog-popout-header p {
  margin: 0.25rem 0 0;
}

.visual-catalog-editor-popout {
  max-height: calc(100vh - 6.5rem);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-subtle);
}

@media (max-width: 680px) {
  .visual-catalog-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .visual-catalog-category {
    margin-left: calc(var(--category-depth, 0) * 0.55rem);
  }

  .visual-catalog-category-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .visual-catalog-category-meta {
    grid-column: 2;
    white-space: normal;
  }
}

/* Offer Edit Mode */
.page-head-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.edit-offer-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.edit-photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.edit-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-photo-delete {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  color: #c53030;
  font-weight: 600;
  transition: background 0.2s;
}

.edit-photo-delete:hover {
  background: #fff;
  border-color: #c53030;
}

.button-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.secondary-btn {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
}

.secondary-btn:hover {
  background: var(--line);
}

@media (max-width: 768px) {
  .page-head-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .page-head-actions button {
    width: 100%;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .button-group button {
    width: 100%;
  }
  
  .edit-offer-gallery {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

/* Anonymous Landing Page Styles */
.landing-view {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.landing-hero {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 26px rgba(36, 32, 56, 0.08);
  background:
    linear-gradient(180deg, #ffffff, var(--bg-subtle));
}

.landing-hero h1 {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.search-box-large {
  display: flex;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  gap: 0.5rem;
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(36, 32, 56, 0.06);
}

.search-box-large input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--text);
  min-width: 0;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.landing-logo img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(36, 32, 56, 0.1);
}

.landing-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.language-selector {
  position: relative;
}

.language-selector select {
  appearance: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23768475" d="M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 12px;
}

.language-selector select:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(36, 32, 56, 0.08);
}

.language-selector select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(223, 117, 187, 0.14);
}

.search-box-large input::placeholder {
  color: var(--muted);
}

.search-box-large button {
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box-large button:hover {
  background: linear-gradient(180deg, var(--brand-strong), #b94f96);
  transform: translateY(-1px);
}

.login-prompt {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.login-prompt a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.login-prompt a:hover {
  text-decoration: underline;
}

.location-indicator {
  margin: 1rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: rgba(223, 117, 187, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(223, 117, 187, 0.22);
}

.location-indicator .location-text {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.locate-me-btn-inline {
  background: white;
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.locate-me-btn-inline:hover:not(:disabled) {
  background: var(--brand);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(223, 117, 187, 0.24);
}

.locate-me-btn-inline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.locate-me-btn-inline:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(223, 117, 187, 0.24);
}

.location-loading {
  margin: 1rem 0 0;
}

.location-loading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.recent-offers-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(36, 32, 56, 0.06);
}

.recent-offers-section h2 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  color: var(--text);
  text-align: center;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1rem;
}

.offer-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(36, 32, 56, 0.04);
}

.offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(36, 32, 56, 0.12);
  border-color: var(--brand);
}

.offer-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg);
}

.offer-card-content {
  padding: 1rem;
}

.offer-card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.32;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-card-category {
  margin: 0;
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.25;
}

.offer-card-model {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-card-description {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.offer-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.offer-card-owner {
  font-size: 0.85rem;
  color: var(--muted);
}

.distance-badge,
.location-badge {
  display: inline-block;
  background: var(--bg-2);
  color: var(--text);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  margin: 0.25rem 0.25rem 0.25rem 0;
  font-weight: 500;
}

.login-to-contact-badge {
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .landing-view {
    padding: 1rem 0.5rem;
    gap: 1.5rem;
  }
  
  .landing-header {
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
  }
  
  .landing-logo-text {
    font-size: 1.25rem;
  }
  
  .landing-logo img {
    width: 48px;
    height: 48px;
  }
  
  .landing-hero {
    padding: 2rem 1rem;
  }
  
  .landing-hero h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .location-indicator {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .locate-me-btn-inline {
    width: 100%;
    text-align: center;
  }
  
  .search-box-large {
    flex-direction: column;
    max-width: 100%;
  }
  
  .search-box-large button {
    padding: 1rem;
  }
  
  .offer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .recent-offers-section {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .landing-hero {
    padding: 1.5rem 0.75rem;
  }
  
  .recent-offers-section {
    padding: 1rem;
  }
  
  .offer-card-content {
    padding: 0.75rem;
  }
}

/* Profile page improvements */
input:disabled,
input[readonly] {
  background-color: var(--bg-subtle);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label > span {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

/* Danger zone styling */
.danger-zone {
  border: 2px solid var(--danger);
  background-color: #fff0f2;
}

.danger-zone h3 {
  color: var(--danger);
}

.danger-btn {
  background-color: var(--danger);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

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

.danger-btn:active {
  background-color: #a9313c;
}

/* Share Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(36, 32, 56, 0.82);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: #242038;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #faf8fb;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #faf8fb;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 1.5rem;
}

.share-loading {
  text-align: center;
  padding: 2rem 0;
}

.share-loading p {
  color: #d9d2de;
  margin: 0;
}

.share-result {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.share-link-input-group {
  display: flex;
  gap: 0.5rem;
}

.share-link-input-group input {
  flex: 1;
  background: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #faf8fb;
  padding: 0.75rem;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9rem;
}

.share-link-input-group button {
  white-space: nowrap;
  min-width: 80px;
  max-width: 100px;
  flex-shrink: 0;
}

.share-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.share-message {
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
}

.share-message.success {
  background: rgba(79, 157, 105, 0.22);
  color: #9fd4ae;
  border: 1px solid rgba(79, 157, 105, 0.34);
}

.share-message.error {
  background: rgba(244, 67, 54, 0.2);
  color: #e57373;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* QR Code Modal Styles */
.qr-code-container {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
}

#qr-canvas {
  display: block;
  line-height: 0;
}

#qr-canvas canvas,
#qr-canvas img {
  display: block;
  max-width: 100%;
  height: auto;
}

.qr-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

/* Responsive Modal Styles */
@media (max-width: 600px) {
  .modal-content {
    max-width: 100%;
    margin: 0.5rem;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .share-link-input-group {
    flex-direction: column;
  }

  .share-actions,
  .qr-actions {
    flex-direction: column;
  }

  /* Anonymous header responsive */
  .anonymous-header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .anonymous-logo {
    justify-content: center;
  }

  .anonymous-header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .anonymous-header .language-select {
    flex: 1;
    min-width: 120px;
  }

  .share-actions button,
  .qr-actions button {
    width: 100%;
  }
}
/* Offer success message styles */
.offer-success-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  padding: 2rem;
}

.success-content {
  max-width: 500px;
  padding: 2rem;
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.success-content h3 {
  color: var(--brand);
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.success-content p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 2rem 0;
}

.primary-btn {
  background: var(--brand);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.primary-btn:hover {
  background: var(--brand-strong);
}

.primary-btn:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.error-note {
  background: rgba(244, 67, 54, 0.1);
  color: #d32f2f;
  padding: 0.75rem;
  border-radius: 6px;
  border-left: 4px solid #d32f2f;
  margin: 1rem 0;
  font-size: 0.9rem;
}
/* Catalog tool selection highlighting */
.catalog-tool-selected {
  background: var(--brand) !important;
  color: white !important;
  border: 2px solid var(--brand-strong) !important;
  box-shadow: 0 0 0 2px rgba(223, 117, 187, 0.24) !important;
}

.catalog-tool-selected .catalog-tool-brand,
.catalog-tool-selected .catalog-tool-model,
.catalog-tool-selected .catalog-tool-category {
  color: white !important;
}

.catalog-tool-selected:hover {
  background: var(--brand-strong) !important;
}

.tool-image-dropzone {
  border: 2px dashed #c4cbd6;
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--muted);
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.tool-image-dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #1e40af;
}

.tool-image-dropzone.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Address Suggestions Dropdown */
.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.address-suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: background-color 0.15s ease;
}

.address-suggestion-item:last-child {
  border-bottom: none;
}

.address-suggestion-item:hover,
.address-suggestion-item.selected {
  background-color: var(--bg);
}

.address-suggestion-item .location-name {
  font-weight: bold;
  margin-bottom: 2px;
  color: var(--text);
}

.address-suggestion-item .full-address {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

/* Ensure address input containers have relative positioning */
.address-input-wrap {
  position: relative;
}
