:root {
  /* Bitcoin / crypto dark theme */
  --bg-dark: #0a0b0d;
  --bg-card: #14161a;
  --bg-card-hover: #1a1d24;
  --green: #f7931a;
  --green-dim: #e68a19;
  --green-glow: rgba(247, 147, 26, 0.2);
  /* Ngjyrë e gjelbër për Blej */
  --buy-green: #22c55e;
  --buy-green-dim: #16a34a;
  --buy-green-glow: rgba(34, 197, 94, 0.25);
  --text: #f5f5f7;
  --text-muted: #8e8e93;
  --border: #2c2c2e;
  --white: #ffffff;
  --accent-subtle: rgba(247, 147, 26, 0.12);
  /* Light animations */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.4s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  animation: fadeIn 0.35s var(--ease-out);
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  /* top set via JS to avoid scroll jump */
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 5rem;
  position: relative;
}

/* Header – jo sticky, lëviz me faqen */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.btn-icon:hover {
  background: var(--bg-card);
  color: var(--green);
  transform: scale(1.05);
}

.btn-icon:active {
  transform: scale(0.95);
}

.btn-icon svg {
  display: block;
}

.profile-btn {
  position: relative;
}

.avatar {
  font-size: 1.5rem;
  line-height: 1;
}

.avatar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-icon svg {
  display: block;
}

.avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.status-dot-logged-out {
  display: none;
}

.profile-btn.logged-in .status-dot-logged-out {
  display: block;
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: var(--green);
  border: 2px solid var(--bg-dark);
  border-radius: 50%;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.header-title a:hover {
  opacity: 0.9;
}

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

/* Intro notice (above header, curtain: ▼ ul / ▲ qu, state in localStorage) */
.intro-banner {
  position: relative;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-fast);
}

.intro-banner-inner {
  padding: 1rem 1.25rem 1rem;
  padding-right: 3rem;
  max-height: 20rem;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out), padding var(--duration-normal) var(--ease-out), opacity var(--duration-normal) var(--ease-out);
}

.intro-banner--collapsed .intro-banner-inner {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
}

.intro-banner-toggle-label {
  display: none;
}

.intro-banner-toggle {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color var(--duration-fast), background var(--duration-fast);
}

.intro-banner-toggle:hover {
  color: var(--green);
  background: var(--accent-subtle);
}

.intro-banner-toggle-icon {
  display: none;
}

.intro-banner-toggle-icon--down {
  display: block;
}

.intro-banner--collapsed .intro-banner-toggle {
  position: static;
  width: 100%;
  height: auto;
  padding: 0.5rem 1rem;
  justify-content: center;
  gap: 0.35rem;
  background: transparent;
  border-radius: 0;
}

.intro-banner--collapsed .intro-banner-toggle:hover {
  background: var(--bg-card-hover);
}

.intro-banner--collapsed .intro-banner-toggle-label {
  display: inline;
  font-size: 0.875rem;
  font-weight: 500;
}

.intro-banner--collapsed .intro-banner-toggle-icon--down {
  display: none;
}

.intro-banner--collapsed .intro-banner-toggle-icon--up {
  display: block;
  font-size: 0.75rem;
}

.intro-banner-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.intro-banner-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.intro-banner-list li {
  margin-bottom: 0.2rem;
}

/* Tabs */
.tabs {
  display: flex;
  padding: 0.5rem 1rem 0;
  gap: 0.5rem;
  background: var(--bg-dark);
}

.tab {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.tab:hover {
  color: var(--text);
  background: var(--bg-card-hover);
  border-color: var(--green-dim);
  transform: translateY(-1px);
}

.tab.active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 2px 12px var(--green-glow);
  transform: translateY(-1px);
}

.tab.tab--buy.active {
  background: var(--buy-green);
  border-color: var(--buy-green);
  box-shadow: 0 2px 12px var(--buy-green-glow);
  color: var(--white);
}

.tab.tab--sell.active {
  background: #c53030;
  border-color: #c53030;
  box-shadow: 0 2px 12px rgba(197, 48, 48, 0.35);
}

.tab.tab--all.active {
  background: var(--bg-card-hover);
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
}

.tab:active {
  transform: translateY(0);
}

/* Content */
.search-wrap {
  padding: 0.5rem 1rem 0;
  background: var(--bg-dark);
}

.search-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Fsheh pikën/ikonën e portokaltë që shfaq shfletuesi te search */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}

.content {
  padding: 0 1rem 1rem;
}

.offers-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
}

.offers-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.offers-panel[hidden] {
  display: none !important;
}

.offers-empty {
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding: 1.5rem 0;
  margin: 0;
}

.offers-search-no-results {
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding: 1rem 0;
  margin: 0;
}

/* Offer card */
.offer-card {
  position: relative;
  display: flex;
  gap: 1.125rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: background var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out);
  animation: fadeInUp var(--duration-slow) var(--ease-out) backwards;
}

.offer-card:nth-child(1) { animation-delay: 0.03s; }
.offer-card:nth-child(2) { animation-delay: 0.06s; }
.offer-card:nth-child(3) { animation-delay: 0.09s; }
.offer-card:nth-child(4) { animation-delay: 0.12s; }
.offer-card:nth-child(5) { animation-delay: 0.15s; }
.offer-card:nth-child(n+6) { animation-delay: 0.18s; }

.offer-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--green-dim);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--green-glow);
}

.offer-card:active {
  transform: translateY(-1px);
}

.offer-delete-form {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.offer-delete {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s, background 0.2s;
}

.offer-delete:hover {
  color: #f85149;
  background: rgba(248, 81, 73, 0.15);
}

.offer-type .offer-amount {
  font-weight: 600;
}

.offer-type-verb--buy {
  color: var(--buy-green);
  font-weight: 600;
}

.offer-type-verb--sell {
  color: #c53030;
  font-weight: 600;
}

.offer-left {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.seller-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a1d24 0%, #14161a 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--green);
  overflow: hidden;
}

.seller-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-stars {
  color: var(--green);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.offer-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.offer-name {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.offer-type {
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.offer-location {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.seller-name {
  display: inline-block;
  background: var(--accent-subtle);
  color: var(--green);
  padding: 0.2em 0.6em;
  border-radius: 8px;
  font-weight: 600;
  margin-left: 0.001rem;
  font-size: 0.9rem;
}

.offer-badge-new {
  display: inline-block;
  margin-left: 0.35em;
  padding: 0.15em 0.45em;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: #ff8c00;
  color: #fff;
  border-radius: 6px;
  vertical-align: middle;
}

.offer-amount {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.offer-premium {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pay-icon {
  font-size: 0.9rem;
  opacity: 0.9;
}

.btn-contact-offer {
  align-self: flex-end;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--green);
  background: var(--accent-subtle);
  border: 1px solid var(--green-dim);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--duration-normal) var(--ease-out), color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.btn-contact-offer:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 2px 12px var(--green-glow);
  transform: translateY(-1px);
}

.btn-contact-offer:active {
  transform: translateY(0);
}

/* FAQ */
.faq {
  padding: 2rem 1rem 3rem;
  max-width: 480px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  position: relative;
}

.faq-inner {
  overflow: hidden;
  max-height: 2000px;
  transition: max-height 0.3s ease;
}

.faq--collapsed .faq-inner {
  max-height: 0;
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.faq-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

.faq-toggle-label {
  display: none;
}

.faq--collapsed .faq-toggle {
  margin-top: 0;
}

.faq--collapsed .faq-toggle-label {
  display: inline;
}

.faq-toggle-icon {
  display: none;
}

.faq-toggle-icon--down {
  display: block;
  font-size: 0.75rem;
}

.faq--collapsed .faq-toggle-icon--down {
  display: block;
}

.faq--collapsed .faq-toggle-icon--up {
  display: none;
}

.faq:not(.faq--collapsed) .faq-toggle-icon--down {
  display: none;
}

.faq:not(.faq--collapsed) .faq-toggle-icon--up {
  display: block;
  font-size: 0.75rem;
}

.faq-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.02em;
}

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

.faq-item {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

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

.faq-question {
  margin: 0;
  padding: 0;
}

.faq-question-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem 0;
  gap: 0.5rem;
  transition: color 0.15s ease;
}

.faq-question-btn:hover {
  color: var(--green);
}

.faq-question-icon {
  flex-shrink: 0;
  font-size: 0.7rem;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.faq-item.faq-item--open .faq-question-icon {
  transform: rotate(180deg);
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.faq-item.faq-item--open .faq-answer {
  max-height: 200px;
}

.faq-answer-inner {
  display: block;
  padding: 0 0 1rem 0;
}

/* Site footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem 2rem;
  background: var(--bg);
}

.site-footer-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.site-footer-nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer-nav a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer-nav a:hover {
  color: var(--green);
}

/* Flash toast (replaces alert) */
.flash-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  max-width: calc(100% - 2rem);
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9375rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 10000;
  pointer-events: none;
}

.flash-toast.flash-toast--visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  cursor: pointer;
}

/* FAB */
.fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  min-width: 56px;
  height: 56px;
  padding: 0 1rem 0 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dim) 100%);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 24px var(--green-glow), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
  z-index: 20;
  animation: fadeIn 0.4s var(--ease-out) 0.2s backwards;
}

.fab-text {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.fab-icon {
  flex-shrink: 0;
}

.fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px var(--green-glow), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.fab:active {
  transform: scale(0.96);
  transition-duration: var(--duration-fast);
}

/* Center FAB on desktop when max-width is used */
@media (min-width: 481px) {
  .fab {
    right: calc(50% - 240px + 1.5rem);
  }
}

@media (max-width: 360px) {
  .fab-text {
    display: none;
  }
  .fab {
    width: 56px;
    padding: 0;
    border-radius: 50%;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-overlay:not([hidden]) {
  animation: overlayFadeIn 0.25s var(--ease-out);
}

.modal-overlay:not([hidden]) .modal {
  animation: scaleIn 0.3s var(--ease-out);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0.5rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--text);
}

.modal--account .modal-header {
  padding: 0.6rem 0.9rem 0.35rem;
}

.modal--account .modal-title {
  font-size: 1rem;
}

.modal-tabs {
  display: flex;
  gap: 0;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.auth-form[hidden] {
  display: none !important;
}

.auth-form,
#create-offer-form {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.form-row .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.amount-premium-row .form-field {
  flex: 1;
}

.amount-premium-row .form-field-narrow {
  flex: 0 0 5rem;
}

.label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.label-inline {
  font-size: 0.8125rem;
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.btn-primary {
  padding: 0.85rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dim) 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
  box-shadow: 0 2px 12px var(--green-glow);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--green-glow);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
}

.radio-label input,
.checkbox-label input {
  accent-color: var(--green);
}

/* My account */
.account-info {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.account-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.account-row .label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.account-value {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}

.account-lang-select {
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  min-width: 7rem;
}

.account-lang-select:hover,
.account-lang-select:focus {
  border-color: var(--green);
  outline: none;
}

.btn-logout {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  margin-top: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  background: var(--bg-dark);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.btn-logout:hover {
  background: var(--border);
  color: var(--text);
}

.account-avatar-section {
  margin-bottom: 0.5rem;
}

.account-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.account-avatar-preview {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.account-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-avatar-placeholder {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.account-avatar-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.input-file-hidden {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.btn-avatar-choose {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--green);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-avatar-choose:hover {
  background: var(--green);
  color: var(--white);
}

.account-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.35rem 0;
}

.account-form-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.account-form .label {
  font-size: 0.7rem;
}

.account-form .input {
  padding: 0.4rem 0.6rem;
  font-size: 0.8125rem;
}

.account-form .btn-primary {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  margin-top: 0.15rem;
}

/* Profile modal (user profile when clicking offer) – compact */
.modal--profile .modal-header {
  padding: 0.6rem 1rem 0.25rem;
}

.modal--profile .modal-title {
  font-size: 1rem;
  font-weight: 600;
}

.profile-modal-body {
  padding: 0.75rem 1rem;
  min-height: 3rem;
}

.modal--profile .profile-modal-body {
  padding: 0.5rem 1rem 0.75rem;
}

.profile-loading {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.profile-avatar-wrap {
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.modal--profile .profile-avatar-wrap {
  margin-bottom: 0.35rem;
}

.profile-modal-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.modal--profile .profile-modal-avatar {
  width: 48px;
  height: 48px;
}

.profile-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.modal--profile .profile-name {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.profile-rating {
  color: var(--green);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.modal--profile .profile-rating {
  margin-bottom: 0.25rem;
}

.profile-stars-display {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.modal--profile .profile-stars-display {
  font-size: 1rem;
}

.profile-rating-num {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.modal--profile .profile-rating-num {
  font-size: 0.8125rem;
}

.btn-report {
  background: var(--bg-dark);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-report:hover {
  background: rgba(248, 81, 73, 0.15);
  color: #f85149;
  border-color: #f85149;
}

.btn-report-toggle {
  background: var(--bg-dark);
  color: var(--text);
  border: 1px solid var(--border);
}

.modal--profile .btn-report-toggle {
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
}

.btn-report-toggle:hover {
  background: var(--border);
  color: var(--text);
}

.profile-report-form-wrap {
  margin-top: 1rem;
}

.modal--profile .profile-report-form-wrap {
  margin-top: 0.5rem;
}

.profile-review-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.modal--profile .profile-review-count {
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
}

.review-list {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
  max-height: 12rem;
  overflow-y: auto;
}

.modal--profile .review-list {
  max-height: 8rem;
  margin-bottom: 0.5rem;
}

.review-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.modal--profile .review-item {
  padding: 0.4rem 0;
  font-size: 0.875rem;
}

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

.review-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.review-item-name {
  font-weight: 500;
  color: var(--green);
}

.review-item-stars {
  color: var(--green);
  font-size: 0.8rem;
}

.review-item-comment {
  color: var(--text);
}

.profile-review-section {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.modal--profile .profile-review-section {
  padding: 0.5rem 1rem 0.75rem;
  padding-top: 0.6rem;
}

.modal--profile .profile-review-section .account-form-title {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.modal--profile .profile-review-section .label {
  font-size: 0.8125rem;
  margin-bottom: 0.2rem;
}

.modal--profile .profile-review-section .btn-primary {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.modal--profile .profile-review-section textarea.input {
  min-height: 2.5rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.875rem;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.15rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}

.modal--profile .star-rating {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  gap: 0.1rem;
}

.star-label {
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.15s;
  user-select: none;
}

.star-label:hover,
.star-label:hover ~ .star-label {
  color: var(--green);
}

.star-rating .star-label:has(input:checked),
.star-rating .star-label:has(input:checked) ~ .star-label {
  color: var(--green);
}

.star-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

textarea.input {
  min-height: 4rem;
  resize: vertical;
}

/* Contact modal – compact */
.modal-small {
  max-width: 18rem;
}

.modal-small .modal-header {
  padding: 0.5rem 0.75rem 0.2rem;
}

.modal-small .modal-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.modal-small .modal-close {
  font-size: 1.25rem;
}

.contact-modal-body {
  padding: 0.5rem 0.75rem 0.75rem;
}

.contact-loading {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
}

.contact-option-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.contact-option--telegram .contact-option-icon { color: #0088cc; }
.contact-option--whatsapp .contact-option-icon { color: #25d366; }
.contact-option--viber .contact-option-icon { color: #7360f2; }
.contact-option--direct .contact-option-icon { color: var(--green); }

.contact-unset {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-unset .contact-option-icon {
  color: var(--text-muted);
  opacity: 0.8;
}

/* Header chat icon + notification badge */
.header-chat-wrap {
  position: relative;
  display: inline-flex;
}

.btn-header-chat {
  color: var(--text);
}

.btn-header-chat:hover {
  color: var(--green);
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1rem;
  color: #fff;
  background: #f85149;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.chat-badge[hidden] {
  display: none !important;
}

.header-admin-wrap {
  position: relative;
  display: inline-flex;
}

.btn-admin-icon {
  color: var(--green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-admin-icon:hover {
  color: var(--green-dim);
  opacity: 0.9;
}

.admin-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1rem;
  color: #fff;
  background: #f85149;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.admin-badge[hidden] {
  display: none !important;
}

/* My chats modal */
.chats-list {
  padding: 0.5rem;
  max-height: 20rem;
  overflow-y: auto;
}

.chats-empty {
  padding: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.chat-list-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  text-align: left;
  color: var(--text);
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.chat-list-item:hover {
  background: var(--border);
  border-color: var(--green);
}

.chat-list-name {
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.2rem;
}

.chat-list-preview {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Single chat modal */
.modal-chat {
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.chat-messages {
  flex: 1;
  min-height: 12rem;
  max-height: 22rem;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-loading {
  color: var(--text-muted);
  padding: 0.5rem 0;
}

.chat-msg {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  max-width: 85%;
  align-self: flex-start;
  background: var(--bg-dark);
  border: 1px solid var(--border);
}

.chat-msg-mine {
  align-self: flex-end;
  background: rgba(35, 134, 54, 0.2);
  border-color: var(--green);
}

.chat-msg-sender {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.2rem;
}

.chat-msg-text {
  display: block;
  font-size: 0.9375rem;
  word-break: break-word;
}

.chat-msg-time {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.chat-send-form {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-send-form .chat-input {
  flex: 1;
  min-width: 0;
}

.btn-chat-send {
  flex-shrink: 0;
}

