@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Phosphor icons ── */
.ph, .ph-fill {
  font-size: 1.1em;
  vertical-align: middle;
  line-height: 1;
  display: inline-block;
}
button .ph, button .ph-fill,
.btn .ph, .btn .ph-fill {
  margin-right: 0;
}

/* ── Nav icon buttons (nav-widget.js) ── */
.nav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(155, 105, 82, 0.85) 0%, rgba(105, 65, 50, 0.85) 100%);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  box-shadow:
    0 4px 12px rgba(80, 45, 30, 0.25),
    0 1px 2px rgba(80, 45, 30, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.nav-icon-btn:hover {
  background: linear-gradient(180deg, rgba(170, 115, 90, 0.9) 0%, rgba(115, 72, 55, 0.9) 100%);
  box-shadow: 0 6px 16px rgba(80, 45, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* ── Global inbox widget (legacy) ── */
.nav-inbox-widget {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 500;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(155, 105, 82, 0.85) 0%, rgba(105, 65, 50, 0.85) 100%);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  text-decoration: none;
  box-shadow:
    0 4px 12px rgba(80, 45, 30, 0.25),
    0 1px 2px rgba(80, 45, 30, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}
.nav-inbox-widget:hover {
  background: linear-gradient(180deg, rgba(170, 115, 90, 0.9) 0%, rgba(115, 72, 55, 0.9) 100%);
  transform: translateY(-1px);
}

/* ── Global profile widget ── */
.nav-profile-widget {
  position: fixed;
  top: 18px;
  right: 68px;
  z-index: 500;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5c4033;
  color: #f0e6df;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  overflow: hidden;
  transition: opacity 0.2s;
}
.nav-profile-widget:hover { opacity: 0.82; }
.nav-inbox-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #e53935;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* 🎯 Embarino Logo — kapsułka frosted glass */
a:has(.logo) {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 8px 20px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

.logo {
  height: auto;
  width: 240px;
  display: block;
  object-fit: contain;
}

/* 🔝 Add Button */
.add-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(180deg, rgba(155, 105, 82, 0.85) 0%, rgba(105, 65, 50, 0.85) 100%);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  box-shadow:
    0 4px 12px rgba(80, 45, 30, 0.25),
    0 1px 2px rgba(80, 45, 30, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.add-button:hover {
  background: linear-gradient(180deg, rgba(170, 115, 90, 0.9) 0%, rgba(115, 72, 55, 0.9) 100%);
  box-shadow: 0 6px 16px rgba(80, 45, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* � Auth Buttons */
.auth-buttons {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
}

.auth-button {
  background: linear-gradient(180deg, rgba(155, 105, 82, 0.85) 0%, rgba(105, 65, 50, 0.85) 100%);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  box-shadow:
    0 4px 16px rgba(80, 45, 30, 0.25),
    0 1px 2px rgba(80, 45, 30, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  font-size: 14px;
}

.auth-button:hover {
  background: linear-gradient(180deg, rgba(170, 115, 90, 0.9) 0%, rgba(115, 72, 55, 0.9) 100%);
  box-shadow: 0 6px 20px rgba(80, 45, 30, 0.3), 0 2px 4px rgba(80, 45, 30, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.user-profile {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(155, 105, 82, 0.85) 0%, rgba(105, 65, 50, 0.85) 100%);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 10px 5px 5px;
  border-radius: 50px;
  box-shadow:
    0 4px 12px rgba(80, 45, 30, 0.25),
    0 1px 2px rgba(80, 45, 30, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.user-profile:hover {
  background: linear-gradient(180deg, rgba(170, 115, 90, 0.9) 0%, rgba(115, 72, 55, 0.9) 100%);
  transform: translateY(-1px);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #5c4033;
  color: #f0e6df;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  overflow: hidden;
  flex-shrink: 0;
  pointer-events: none;
}

#userEmail {
  font-size: 12px;
  color: #d8d8d8;
  font-weight: 600;
  pointer-events: none;
}

.logout-button {
  display: inline-block;
  width: auto;
  max-width: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #777;
  border: none;
  padding: 4px 6px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  font-weight: bold;
  box-shadow: none;
  transition: color 0.2s;
  margin: 0 0 0 2px;
}

.logout-button:hover {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

/* ── Avatar + dropdown (index.html) ── */
.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #7B5040;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: box-shadow 0.2s, opacity 0.2s;
  user-select: none;
}
.avatar-btn:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.3); opacity: 0.88; }

.user-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  min-width: 180px;
  z-index: 600;
  overflow: hidden;
  animation: dropFadeIn 0.14s ease;
}
@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}
.user-drop-header {
  padding: 11px 14px 10px;
  border-bottom: 1px solid #f0e8e4;
}
.user-drop-name {
  font-size: 13px;
  font-weight: 700;
  color: #111 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  display: block;
}
.user-drop-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  color: #111 !important;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.13s;
  border: none;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  width: 100%;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
  max-width: none;
}
.user-drop-item:hover { background: #f5ede9; box-shadow: none; }
.user-drop-logout { color: #c0392b !important; border-top: 1px solid #f5f0ee; }

/* 🔙 Back Button */
.back-button {
  display: inline-block;
  margin-top: 20px;
  color: #007bff;
  text-decoration: none;
}

.back-button:hover {
  text-decoration: underline;
}

.back-button-pill {
  position: fixed;
  top: 49px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(155, 105, 82, 0.85) 0%, rgba(105, 65, 50, 0.85) 100%);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow:
    0 4px 12px rgba(80, 45, 30, 0.25),
    0 1px 2px rgba(80, 45, 30, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  z-index: 490;
}

.back-button-pill:hover {
  background: linear-gradient(180deg, rgba(170, 115, 90, 0.9) 0%, rgba(115, 72, 55, 0.9) 100%);
  transform: translateY(-1px);
}

input, select, textarea, button {
  font-family: inherit;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 20px;
  padding-top: 130px;
  min-height: 100vh;
  box-sizing: border-box;
  background: transparent;
  position: relative;
}

/* ── Marble background ── */
html {
  min-height: 100%;
}

.marble-bg-fixed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(to bottom,
    #d8c3a5 0%, #e3d2b8 25%, #f0e5d2 50%, #faf4ea 75%, #ffffff 100%);
  pointer-events: none;
}

.marble-bg-fixed > svg,
.marble-bg-fixed > .white-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.marble-clouds  { mix-blend-mode: multiply; opacity: 0.12; }
.marble-veins-a { mix-blend-mode: multiply; opacity: 0.32; }
.marble-veins-b { mix-blend-mode: multiply; opacity: 0.20; }

.white-wash {
  background: linear-gradient(to bottom,
    rgba(255,255,255,0)    30%,
    rgba(255,255,255,0.35) 60%,
    rgba(255,255,255,0.8)  85%,
    #ffffff                100%);
}

h1, h2 {
  text-align: center;
}

select, input, button {
  padding: 10px;
  margin: 5px auto;
  display: block;
  width: 100%;
  max-width: 300px;
  border-radius: 15px;
  border: 1px solid #ddd;
}

button {
  background: linear-gradient(180deg, rgba(155, 105, 82, 0.85) 0%, rgba(105, 65, 50, 0.85) 100%);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-weight: bold;
  box-shadow:
    0 4px 16px rgba(80, 45, 30, 0.25),
    0 1px 2px rgba(80, 45, 30, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

button:hover {
  background: linear-gradient(180deg, rgba(170, 115, 90, 0.9) 0%, rgba(115, 72, 55, 0.9) 100%);
  box-shadow:
    0 6px 20px rgba(80, 45, 30, 0.3),
    0 2px 4px rgba(80, 45, 30, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
  box-shadow:
    0 2px 8px rgba(80, 45, 30, 0.2),
    inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.search-card {
  max-width: 800px;
  margin: 40px auto 24px auto;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 20px 30px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  position: relative;
  z-index: 10;
}

.search-card h2 {
  margin: 0 0 12px 0;
}

#list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
  padding: 0 120px;
}

/* ===== SEKCJE REKOMENDOWANE (index.html) ===== */
#recommendedSections {
  margin-top: 20px;
  padding: 0 120px;
}

.rec-section {
  position: relative;
  margin-bottom: 36px;
}

.rec-section::after {
  content: '';
  position: absolute;
  top: 44px;
  right: 0;
  bottom: 6px;
  width: 36px;
  background: linear-gradient(to right, rgba(255,255,255,0), #fff);
  pointer-events: none;
  z-index: 1;
}

.rec-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 14px;
  width: fit-content;
}

.rec-section-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #5a3828;
}

.rec-section-title i {
  color: #7B5040;
  font-size: 26px;
  vertical-align: middle;
}

.rec-section-arrow {
  font-size: 20px;
  color: #7B5040;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
}

.rec-section-header:hover .rec-section-arrow {
  transform: translateX(4px);
}

.rec-section-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rec-section-grid::-webkit-scrollbar {
  display: none;
}

.rec-section-grid .card {
  flex: 0 0 160px;
  width: 160px;
  scroll-snap-align: start;
}

.rec-section-more {
  flex: 0 0 100px;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: #7B5040;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 12px;
  text-align: center;
  background: #f7f3ef;
  border-radius: 10px;
  border: 1.5px dashed #d9b48c;
  transition: all 0.2s;
  scroll-snap-align: start;
}

.rec-section-more:hover {
  background: #f0ebe8;
  transform: translateY(-3px);
}

.rec-section-more i {
  font-size: 22px;
}

.fade-scroll-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-scroll-section.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-scroll-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.show-all-listings-btn {
  display: block;
  margin: 30px auto 20px;
  padding: 14px 36px;
  background: linear-gradient(180deg, rgba(155, 105, 82, 0.85) 0%, rgba(105, 65, 50, 0.85) 100%);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  border-radius: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow:
    0 4px 16px rgba(80, 45, 30, 0.25),
    0 1px 2px rgba(80, 45, 30, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.show-all-listings-btn:hover {
  background: linear-gradient(180deg, rgba(170, 115, 90, 0.9) 0%, rgba(115, 72, 55, 0.9) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(80, 45, 30, 0.3), 0 2px 4px rgba(80, 45, 30, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* ===== LISTINGS BAR (listings.html) ===== */
#listingsBar {
  padding: 0 120px;
  margin-bottom: 4px;
}

#activeFiltersBar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 10px;
  border-bottom: 1.5px solid #e8e0d8;
  margin-bottom: 16px;
}

#activeFiltersText {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #7B5040;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#sortDropdownLive {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #5a3828;
  background: #f7f3ef;
  border: 1.5px solid #d9b48c;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

#sortDropdownLive:hover { border-color: #7B5040; }

.search-toggle-btn {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  padding: 6px 7px;
  color: #7B5040;
  font-size: 22px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: background 0.15s;
  line-height: 1;
}

.search-toggle-btn:hover { background: #f0ebe8; }

/* Collapsible panel */
#listingsSearchPanel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.32s ease, opacity 0.25s ease;
}

#listingsSearchPanel.open {
  max-height: 1200px;
  opacity: 1;
}

.lsp-inner {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 18px 20px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
  margin: 0 auto 16px;
  max-width: 800px;
  position: relative;
}

.lsp-row {
  display: flex;
  gap: 10px;
}

.lsp-row select,
.lsp-row input[type="text"] {
  flex: 1;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border: 1.5px solid #d9b48c;
  border-radius: 8px;
  background: #faf8f5;
  color: #5a3828;
  outline: none;
  transition: border-color 0.15s;
}

.lsp-row select:hover, .lsp-row input[type="text"]:hover { border-color: #7B5040; }
.lsp-row select:focus, .lsp-row input[type="text"]:focus { border-color: #7B5040; }

.lsp-cena {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lsp-cena input[type="number"] {
  flex: 1;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border: 1.5px solid #d9b48c;
  border-radius: 8px;
  background: #faf8f5;
  color: #5a3828;
  outline: none;
  transition: border-color 0.15s;
}

.lsp-cena input[type="number"]:hover,
.lsp-cena input[type="number"]:focus { border-color: #7B5040; }

.lsp-cena > span {
  color: #bbb;
  font-size: 13px;
  flex-shrink: 0;
}

.lsp-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 2px;
}

.lsp-search-btn {
  background: linear-gradient(180deg, rgba(155, 105, 82, 0.85) 0%, rgba(105, 65, 50, 0.85) 100%);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  border-radius: 8px;
  padding: 9px 24px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow:
    0 4px 16px rgba(80, 45, 30, 0.25),
    0 1px 2px rgba(80, 45, 30, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.lsp-search-btn:hover {
  background: linear-gradient(180deg, rgba(170, 115, 90, 0.9) 0%, rgba(115, 72, 55, 0.9) 100%);
  transform: translateY(-1px);
}

.lsp-clear-btn {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #aaa;
  border: 1.5px solid #e0d0c0;
  border-radius: 8px;
  padding: 9px 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: none;
}

.lsp-clear-btn:hover { color: #7B5040; border-color: #7B5040; }

.card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transform: translateY(-5px);
}

.card img {
  width: 100% !important;
  height: auto !important;
  object-fit: unset;
  border-radius: 10px;
}

/* ===== HEADER AREAS (index.html) ===== */
.header-left-area {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 510;
}

.header-right-area {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

/* All nav icon buttons — static circles inside flex row */
.header-right-area .add-button,
#addButton {
  position: static;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

.header-right-area .add-button::after,
#addButton::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: white;
}

.inbox-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(155, 105, 82, 0.85) 0%, rgba(105, 65, 50, 0.85) 100%);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  text-decoration: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  position: relative;
  font-size: 18px;
  box-shadow:
    0 4px 12px rgba(80, 45, 30, 0.25),
    0 1px 2px rgba(80, 45, 30, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  position: relative;
  box-sizing: border-box;
  flex-shrink: 0;
}

.inbox-label {
  display: none;
}

.inbox-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e53935;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.inbox-pill:hover {
  background: linear-gradient(180deg, rgba(170, 115, 90, 0.9) 0%, rgba(115, 72, 55, 0.9) 100%);
  box-shadow: 0 6px 16px rgba(80, 45, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 640px) {

  body {
    padding: 10px;
    padding-top: 90px;
    background: transparent;
  }

  a:has(.logo) {
    top: 25px;
    padding: 6px 14px;
  }
  .logo {
    width: 90px;
  }

  /* Header left area */
  .header-left-area {
    top: 25px;
    left: 10px;
    flex-direction: column;
    gap: 6px;
  }

  /* Header right area — inbox i dodaj w rzędzie */
  .header-right-area {
    top: 25px;
    right: 10px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  /* Inbox — tylko ikona ✉ na mobile */
  .inbox-label {
    display: none;
  }

  .inbox-pill {
    padding: 0;
    font-size: 16px;
    line-height: 1;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .auth-buttons {
    gap: 6px;
  }

  .auth-button {
    padding: 7px 11px;
    font-size: 12px;
  }

  #signupBtn {
    display: none;
  }

  .user-profile {
    top: 62px;
    left: 10px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    gap: 0;
  }

  .user-profile:hover {
    background: transparent;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  #userEmail {
    display: none;
  }

  .logout-button {
    display: none;
  }

  .add-button {
    top: 14px;
    right: 10px;
    padding: 0;
    font-size: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .add-button::after {
    content: '+';
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
  }

  .back-button-pill {
    top: 27px;
    left: 14px;
    padding: 7px 12px;
    font-size: 12px;
  }

  /* Listing grid — 2 columns on mobile */
  #list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
  }

  /* Sekcje rekomendowane — mobilne nadpisania */
  #recommendedSections {
    padding: 0 10px;
  }

  .rec-section-title {
    font-size: 18px;
  }

  .rec-section-title i {
    font-size: 22px;
  }

  .show-all-listings-btn {
    width: 100%;
    margin: 24px 0 16px;
  }

  /* Listings bar — mobile */
  #listingsBar {
    padding: 0 10px;
  }

  .lsp-row {
    flex-direction: column;
    gap: 8px;
  }

  .lsp-cena {
    width: 100%;
  }

  #activeFiltersText {
    font-size: 13px;
  }

  .search-card {
    border-radius: 16px;
    padding: 16px 20px 20px;
  }

  .card img {
    width: 100% !important;
    height: auto !important;
  }

  /* Strony tylko z logo (login, signup) — brak logo, mały padding */
  body.simple-header {
    padding-top: 20px;
    background: transparent;
  }

  /* Login / signup — nadpisuje margin:100px ze strony */
  .login-container,
  .signup-container {
    margin: 10px auto !important;
    padding: 24px 18px;
  }

  /* Profile, inbox, user containers */
  .profile-container,
  .inbox-container {
    padding: 20px 14px;
  }

  /* Profile header — stack on mobile */
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .profile-action {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ── Promoted cards + badge ── */

/* Złote tło: zawsze gdy promowane (moje i cudze) */
.card.promoted-bg {
  background: linear-gradient(135deg, #FFFCF5 0%, #F5E8C8 100%);
  border: 2px solid #C9A030 !important;
  box-shadow: 0 4px 12px rgba(190, 150, 40, 0.15);
}

/* Zielona ramka: moje ogłoszenie (priorytet nad złotą) */
.card.own {
  border: 2px solid #4caf50;
}

/* Złota ramka: cudze promowane */
.card.promoted-border {
  border: 2px solid #C9A030;
  box-shadow: 0 4px 12px rgba(190, 150, 40, 0.18);
}

/* Badge "Wyróżnione" */
.promoted-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #D4A840 0%, #B8880A 100%);
  color: #fff !important;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-shadow: 0 2px 6px rgba(160, 120, 10, 0.35);
  text-shadow: 0 1px 1px rgba(0,0,0,0.12);
  pointer-events: none;
}

.promoted-badge i { font-size: 12px; color: white; }

/* ── Card description (2-line clamp + word-break) ── */
.card-opis {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

/* ── Char counter (add.html / edit.html opis field) ── */
.char-counter {
  font-size: 12px;
  color: #6b6b6b;
  text-align: right;
  margin-top: 4px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-variant-numeric: tabular-nums;
}
.char-counter.warning { color: #d97706 !important; }
.char-counter.danger  { color: #dc2626 !important; }

/* ── Auth pending state ── */
.auth-pending {
  pointer-events: none;
  opacity: 0.6;
  cursor: wait;
}

/* ── Skeleton loader ── */
.skeleton {
  background: linear-gradient(90deg, #f0e8df 0%, #faf5ee 50%, #f0e8df 100%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
  border-radius: 8px;
  display: block;
}
@keyframes skeleton-pulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ── Page loader (Lottie) ── */
.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 252, 248, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #7B5040;
  letter-spacing: 0.05em;
}

/* ── Progress bar ── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: #7B5040;
  z-index: 9999;
  width: 0%;
  box-shadow: 0 0 8px rgba(123,80,64,0.4);
  pointer-events: none;
}
/* ── Notification Bell ─────────────────────────────────────────────────────── */
.notif-bell-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.notif-bell-btn {
  background: linear-gradient(180deg, rgba(155, 105, 82, 0.85) 0%, rgba(105, 65, 50, 0.85) 100%);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  box-shadow:
    0 4px 12px rgba(80, 45, 30, 0.25),
    0 1px 2px rgba(80, 45, 30, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  max-width: none;
  line-height: 1;
  padding: 0;
}
.notif-bell-btn:hover {
  background: linear-gradient(180deg, rgba(170, 115, 90, 0.9) 0%, rgba(115, 72, 55, 0.9) 100%);
  box-shadow: 0 6px 16px rgba(80, 45, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e53935;
  color: white;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid white;
  box-sizing: border-box;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  z-index: 600;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f0ebe8;
}

.notif-panel-title {
  font-weight: 800;
  font-size: 15px;
  color: #3a2318;
}

.notif-mark-all-btn {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  color: #7B5040;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: none;
  max-width: none;
  width: auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
}
.notif-mark-all-btn:hover { background: #f0ebe8; }

.notif-panel-list {
  max-height: 380px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f7f5f3;
  transition: background 0.15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #faf7f5; }

.notif-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0ebe8;
  color: #7B5040;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-item-content { flex: 1; min-width: 0; }

.notif-item-title {
  font-weight: 700;
  font-size: 13px;
  color: #2d1f16;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.notif-count-tag {
  background: #7B5040;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1.4;
  flex-shrink: 0;
}

.notif-item-body {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-item-time {
  font-size: 11px;
  color: #bbb;
  margin-top: 3px;
}

.notif-empty {
  padding: 32px 16px;
  text-align: center;
  color: #bbb;
  font-size: 14px;
}

@media (max-width: 480px) {
  .notif-panel {
    width: calc(100vw - 28px);
    right: -14px;
  }
}

/* ── Support Widget ─────────────────────────────────────────────────────────── */
.support-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(123, 80, 64, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(123,80,64,0.35);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  user-select: none;
}
.support-widget:hover {
  background: rgba(123, 80, 64, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123,80,64,0.45);
}
.support-widget i { font-size: 20px; }
@media (max-width: 768px) {
  .support-widget span { display: none; }
  .support-widget { gap: 0; padding: 12px; }
}

/* ── Chat separator (reopen divider) ────────────────────────────────────────── */
.chat-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  color: #888;
  font-size: 12px;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chat-separator-line {
  flex: 1;
  height: 1px;
  background: #e0d8c8;
}
.chat-separator-text {
  white-space: nowrap;
}

/* ── Closed support banner ───────────────────────────────────────────────────── */
.closed-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 248, 220, 0.6);
  border-radius: 12px;
  color: #333;
  margin: 0 16px 16px;
  font-size: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  line-height: 1.5;
  flex-shrink: 0;
}
.closed-banner i {
  font-size: 20px;
  color: #7B5040;
  flex-shrink: 0;
  margin-top: 2px;
}
.closed-banner span {
  flex: 1;
}

/* ── Profile submenu w hamburger dropdown ────────────────────────────────────── */
.mobile-profile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.mobile-profile-submenu.open {
  max-height: 130px;
}
.mobile-submenu-item {
  padding-left: 44px !important;
  background: #fdf6f3;
  font-size: 14px !important;
}
.mobile-submenu-item:last-child { border-bottom: none; }

/* ── Hamburger button (mobile only) ─────────────────────────────────────────── */
.hamburger-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(155, 105, 82, 0.85) 0%, rgba(105, 65, 50, 0.85) 100%);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  display: none; /* auth JS sets display:flex when logged in */
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow:
    0 4px 12px rgba(80, 45, 30, 0.25),
    0 1px 2px rgba(80, 45, 30, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-weight: 400;
  gap: 0;
  line-height: 1;
}
.hamburger-btn:hover {
  background: linear-gradient(180deg, rgba(170, 115, 90, 0.9) 0%, rgba(115, 72, 55, 0.9) 100%);
  box-shadow: 0 6px 16px rgba(80, 45, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.hamburger-btn .ph { font-size: 18px; line-height: 1; }

/* Desktop: hamburger i dropdown zawsze schowane */
@media (min-width: 769px) {
  .hamburger-btn { display: none !important; }
  .mobile-menu-dropdown { display: none !important; }

  /* Kapsułka frosted glass — prawa grupa ikon */
  .header-right-area {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 8px 12px;
    border-radius: 16px;
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  }

  /* Kapsułka frosted glass — avatar (lewy) */
  #userProfile {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 5px 8px;
    border-radius: 16px;
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  }
}

/* ── Mobile ≤768px: hamburger + dropdown ────────────────────────────────────── */
@media (max-width: 768px) {

  /* Oryginalne 4 ikony schowane — CSS z !important bije inline display ustawiony przez auth JS */
  #inboxBtn,
  #favBtn,
  #addButton {
    display: none !important;
  }

  /* Nav-widget ikony schowane — hamburger zastępuje */
  .nav-actions-group .nav-icon-btn {
    display: none !important;
  }

  /* Avatar (nav-left-group) schowany — dostępny przez hamburger → Profil */
  .nav-left-group {
    display: none !important;
  }

  /* Avatar dropdown w header-left-area (index/ulubione/statystyki/users-search) */
  #userProfile {
    display: none !important;
  }

  /* notif-bell-wrap: usunięty z flex-flow, ale zostaje w DOM żeby panel nadal działał */
  .notif-bell-wrap {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  .notif-bell-btn { display: none !important; }

  /* Panel powiadomień: fixed overlay na mobile */
  .notif-panel {
    position: fixed !important;
    top: 80px !important;
    left: auto !important;
    right: 16px !important;
    width: auto !important;
    min-width: 280px !important;
    max-width: calc(100vw - 32px) !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 9998 !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15) !important;
    border-radius: 12px !important;
  }

  /* Dropdown mobilny */
  .mobile-menu-dropdown {
    display: block;
    position: fixed;
    top: 90px; /* fallback; nadpisywany przez JS */
    right: 16px;
    left: auto;
    width: auto;
    min-width: 220px;
    max-width: calc(100vw - 32px);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.14);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
    overflow: hidden;
  }
  .mobile-menu-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  /* Pozycja menu item — wspólne dla <a> i <div> */
  .mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #3a2318;
    text-decoration: none;
    border: none;
    border-bottom: 1px solid #f5ede9;
    cursor: pointer;
    position: relative;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }
  .mobile-menu-item:last-child { border-bottom: none; }
  .mobile-menu-item:active { background: #faf5f2; }
  .mobile-menu-item i {
    font-size: 20px;
    color: #7B5040;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
  }
  .mm-label { flex: 1; }

  /* Badge w menu mobilnym */
  .mobile-menu-badge {
    background: #e53935;
    color: white;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 4px;
    display: none; /* JS: style.display = 'flex' gdy count > 0 */
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
  }
}

/* ══════════════════════════════════════════════════════════════════
   Jak to działa — sekcja na index.html
   ══════════════════════════════════════════════════════════════════ */
.how-it-works {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 24px;
  background: rgba(255, 245, 235, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(125, 80, 64, 0.1);
  text-align: center;
}

.how-it-works .section-header {
  font-size: 26px;
  font-weight: 800;
  color: #2a1a0e;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.how-it-works-tagline {
  font-size: 16px;
  color: #7B5040;
  margin: 0 0 40px;
  font-weight: 500;
}

.how-it-works-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.step-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(125, 80, 64, 0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(80,45,30,0.1);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(155,105,82,0.9) 0%, rgba(105,65,50,0.9) 100%);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(80,45,30,0.25);
}

.step-icon {
  font-size: 40px;
  color: #7B5040;
  margin: 12px 0 8px;
  display: block;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #3a2a1e;
}

.step-card p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.trust-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(125, 80, 64, 0.1);
  text-align: left;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
}

.trust-item i {
  font-size: 32px;
  color: #7B5040;
  margin-bottom: 12px;
}

.trust-item strong {
  font-size: 15px;
  color: #3a2a1e;
  margin-bottom: 6px;
  display: block;
}

.trust-item p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.see-faq-link {
  display: inline-block;
  margin-top: 32px;
  color: #7B5040;
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.see-faq-link:hover {
  opacity: 0.75;
}

@media (max-width: 768px) {
  .how-it-works-steps { grid-template-columns: repeat(2, 1fr); }
  .trust-highlights { grid-template-columns: 1fr; }
  .how-it-works { padding: 24px 16px; margin: 32px 12px; }
  .how-it-works .section-header { font-size: 22px; }
}

@media (max-width: 480px) {
  .how-it-works-steps { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   FAQ page — faq.html
   ══════════════════════════════════════════════════════════════════ */
.faq-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px 60px;
}

.faq-page h1 {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
  color: #2a1a0e;
}

.faq-intro {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
  font-size: 15px;
}

.faq-intro a { color: #7B5040; text-decoration: underline; }

.faq-category {
  margin-bottom: 40px;
}

.faq-category h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 16px;
  color: #3a2a1e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-category h2 i { color: #7B5040; }

.faq-item {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid rgba(125, 80, 64, 0.08);
}

.faq-question {
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: transparent !important;
  border: none !important;
  padding: 16px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #3a2a1e !important;
  cursor: pointer !important;
  font-family: inherit !important;
  text-align: left !important;
  margin: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: background 0.15s !important;
  gap: 12px;
}

.faq-question:hover {
  background: rgba(255,255,255,0.35) !important;
  transform: none !important;
  box-shadow: none !important;
}

.faq-question i {
  color: #7B5040;
  transition: transform 0.3s;
  flex-shrink: 0;
  font-size: 18px;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer p {
  padding: 0 20px 16px;
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.faq-answer p strong {
  color: #3a2a1e;
}

@media (max-width: 768px) {
  .faq-page { padding: 0 16px 48px; }
  .faq-page h1 { font-size: 26px; }
  .faq-category h2 { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════════════
   O nas page — o-nas.html
   ══════════════════════════════════════════════════════════════════ */
.about-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px 60px;
}

.about-hero {
  text-align: center;
  margin-bottom: 48px;
}

.about-hero h1 {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 16px;
  color: #3a2a1e;
}

.about-tagline {
  font-size: 18px;
  color: #7B5040;
  line-height: 1.5;
  margin: 0;
}

.about-section {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid rgba(125, 80, 64, 0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.about-section h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 20px;
  color: #3a2a1e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-section h2 i {
  color: #7B5040;
  font-size: 26px;
}

.about-section p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin: 0 0 12px;
}

.about-section p:last-child { margin-bottom: 0; }
.about-section p strong { color: #3a2a1e; }
.about-section a { color: #7B5040; text-decoration: underline; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.value-card {
  background: rgba(255, 245, 235, 0.5);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(125, 80, 64, 0.08);
}

.value-card i {
  font-size: 28px;
  color: #7B5040;
  display: block;
  margin-bottom: 8px;
}

.value-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #3a2a1e;
}

.value-card p {
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

.frustrations-list {
  margin: 16px 0;
  padding-left: 24px;
}

.frustrations-list li {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 6px;
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.comparison-item {
  background: rgba(255, 245, 235, 0.5);
  padding: 20px;
  border-radius: 14px;
  border-left: 3px solid #7B5040;
}

.comparison-item strong {
  font-size: 15px;
  color: #3a2a1e;
  display: block;
  margin-bottom: 6px;
}

.comparison-item p {
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 768px) {
  .about-page { padding: 0 16px 48px; }
  .about-hero h1 { font-size: 28px; }
  .about-tagline { font-size: 16px; }
  .about-section { padding: 24px 18px; }
  .about-section h2 { font-size: 20px; }
  .values-grid { grid-template-columns: 1fr; }
}
