@import url('/css/mobile-critical.css?v=9');

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

:root {
  --bg-body: #f4f6fa;
  --bg-white: #ffffff;
  --bg-soft: #f8fafc;
  --burgundy-pale: #f4ecef;
  --burgundy-light: #cfa5b8;
  --burgundy-mid: #a84d72;
  --burgundy-deep: #7a2e4a;
  --burgundy-bg-card: rgba(168, 77, 114, 0.06);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8a8aa8;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 8px 28px rgba(168, 77, 114, 0.08);
  --radius: 24px;
  --radius-sm: 14px;
  --radius-full: 60px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --border-light: #eaeaef;
  --error: #e06b7a;
}

body {
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
  font-variant-numeric: lining-nums;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-body);
  padding: 20px;
  color: var(--text-primary);
}

.main-wrap {
  width: 1400px;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(360px, 1.4fr);
  gap: 28px;
  align-items: center;
  direction: ltr;
}

@media (max-width: 1100px) {
  .main-wrap {
    grid-template-columns: 1fr;
  }

  .forms-panel {
    grid-row: 1;
  }

  .cards-panel {
    grid-row: 2;
  }
}

.toast {
  position: fixed;
  bottom: 30px;
  inset-inline-start: 30px;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transform: translateY(140px);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 420px;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast i { font-size: 22px; color: var(--burgundy-mid); }
.toast.error i { color: var(--error); }

.hidden { display: none !important; }

/* ── Site branding (all pages) ───────────────────────────── */
.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 36px;
}

.logo-link img,
[data-site-logo-img] {
  width: 100px;
  height: 50px;
  max-width: 100px;
  max-height: 50px;
  object-fit: contain;
}

.logo-link[data-site-logo-compact] img,
.logo-link[data-site-logo-compact] [data-site-logo-img] {
  width: 100px;
  height: 50px;
  max-width: 100px;
  max-height: 50px;
}

.logo-link.logo-fallback {
  font-size: 18px;
  font-weight: 800;
  color: var(--burgundy-deep);
  letter-spacing: 0.4px;
}

.page-brand-mark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header-with-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-with-brand .page-brand-mark {
  margin-inline-start: auto;
}

/* Unified «Back» control — text label instead of arrow-only icon */
.site-back-btn,
[data-site-back].site-back-btn {
  width: auto !important;
  min-width: 72px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-family: inherit;
  text-decoration: none;
}

.site-back__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: inherit;
}

.btn-back-home.site-back-btn {
  margin-bottom: 0;
}

.btn-back-home.site-back-btn .site-back__label {
  color: var(--burgundy-mid);
}

.auction-back.site-back-btn {
  border-radius: 999px;
  border: none;
  min-width: 64px;
  padding: 0 14px;
}

.category-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.category-top-row .btn-back-home {
  margin-bottom: 0;
}

.mini-brand.logo-link {
  gap: 0;
}

.mini-brand.logo-link img {
  width: 100px;
  height: 50px;
  max-width: 100px;
  max-height: 50px;
}

.admin-brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.admin-brand-link img {
  width: 100px;
  height: 50px;
  max-width: 100px;
  max-height: 50px;
  object-fit: contain;
}

.sidebar-brand .admin-brand-link img {
  width: 100px;
  height: 50px;
  max-width: 100px;
  max-height: 50px;
}

a.user-profile-link {
  color: var(--burgundy-deep);
  font-weight: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.user-profile-link:hover {
  text-decoration: underline;
}

h2 a.user-profile-link,
h3 a.user-profile-link,
strong a.user-profile-link {
  color: inherit;
}

.conv-item__name.user-profile-link {
  font-weight: 800;
  color: var(--text-primary);
}

.chat-header__name.user-profile-link {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.ad-comment__author.user-profile-link {
  font-weight: 800;
}

.ad-view-seller__name.user-profile-link {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

