/* ========================================
   Eventbörse – Airbnb-Inspired Event Marketplace
   Mobile-First Responsive Design
   ======================================== */

/* ---- CSS Variables ---- */
:root {
  --primary: #FF385C;
  --primary-dark: #E31C5F;
  --primary-light: #FFE4E9;
  --accent: #00A699;
  --accent-light: #E0F7F5;
  --dark: #222222;
  --text: #484848;
  --text-light: #717171;
  --border: #DDDDDD;
  --border-light: #EBEBEB;
  --bg: #FFFFFF;
  --bg-alt: #F7F7F7;
  --bg-dark: #1A1A2E;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
  --nav-height: 80px;
  --mobile-nav-height: 64px;
  --transition: 0.2s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; overscroll-behavior-x: none; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  padding-bottom: var(--mobile-nav-height);
  width: 100%;
  max-width: 100vw;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border var(--transition);
  background: var(--bg);
  color: var(--dark);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--dark);
}
img { display: block; max-width: 100%; }

/* ---- Utilities ---- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; }
.center { text-align: center; }
.accent { color: var(--primary); }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border: none;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-alt);
  color: var(--dark);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.btn-secondary:hover { background: var(--border-light); }
.btn-secondary:active { transform: scale(0.97); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--dark);
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--dark); color: #fff; }
.btn-outline:active { transform: scale(0.97); }
.btn-text {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 0;
}
.btn-text:hover { text-decoration: underline; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius-md); }
.btn-sm { font-size: 0.8rem; padding: 8px 14px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.btn-social {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--dark);
  transition: all var(--transition);
}
.btn-social:hover { background: var(--bg-alt); box-shadow: var(--shadow-sm); }
.btn-social + .btn-social { margin-top: 10px; }
.btn-social-passkey {
  margin-top: 12px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: #0f172a;
  color: #fff;
}
.btn-social-passkey:hover {
  background: linear-gradient(135deg, #111827 0%, #273449 100%);
  color: #fff;
}
.btn-social-passkey:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-social-passkey .material-icons-round {
  font-size: 22px;
}
.btn-social-apple {
  background: #000; color: #fff; border-color: #000;
}
.btn-social-apple:hover {
  background: #1a1a1a; box-shadow: var(--shadow-sm); color: #fff;
}
.btn-accept { background: #00A699; color: #fff; }
.btn-accept:hover { background: #008F82; }
.btn-counter { background: #FF9500; color: #fff; }
.btn-counter:hover { background: #E68600; }
.btn-decline { background: #FF3B30; color: #fff; }
.btn-decline:hover { background: #E0342A; }

/* ======== NAVIGATION ======== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all 0.3s ease;
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.4rem; font-weight: 800;
  color: var(--dark);
  flex-shrink: 0;
}
.logo-icon { font-size: 1.8rem; color: var(--primary); }
.nav-search {
  display: flex; align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  overflow: hidden;
  max-width: 520px;
}
.nav-search:hover { box-shadow: var(--shadow-md); }
.nav-search-segment {
  padding: 10px 20px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.nav-search-segment .label { display: block; font-size: 0.7rem; font-weight: 700; color: var(--dark); letter-spacing: 0.5px; }
.nav-search-segment .label .ai-spark { font-size: 11px !important; vertical-align: middle; margin-right: 2px; }
.nav-search-segment .value { display: block; font-size: 0.82rem; color: var(--text-light); margin-top: 1px; }
.nav-search-segment:hover { background: var(--bg-alt); }
.nav-search-divider { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }
.nav-search-btn {
  width: 40px; height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  margin: 6px;
  flex-shrink: 0;
  transition: all var(--transition);
}
.nav-search-btn:hover { background: var(--primary-dark); transform: scale(1.05); }
.nav-search-btn .material-icons-round { font-size: 20px; }
.nav-actions {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: var(--radius-xl);
  transition: background var(--transition);
}
.nav-link:hover { background: var(--bg-alt); }
.nav-icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--transition);
  color: var(--text);
}
.nav-icon-btn:hover { background: var(--bg-alt); }
.badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.nav-avatar {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 5px 5px 5px 12px;
  transition: box-shadow var(--transition);
}
.nav-avatar:hover { box-shadow: var(--shadow-md); }
.nav-avatar { position: relative; }
.nav-avatar .material-icons-round { font-size: 18px; color: var(--text-light); }
.nav-avatar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.nav-admin-label {
  position: absolute;
  top: -10px; right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.3;
  pointer-events: none;
  display: none;
}

/* User Menu */
.user-menu {
  position: fixed;
  top: calc(var(--nav-height) - 4px);
  right: 24px;
  background: var(--bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  min-width: 240px;
  padding: 8px 0;
  z-index: 1001;
  display: none;
  animation: menuSlide 0.15s ease;
}
@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.user-menu.show { display: block; }
.user-menu-section button {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 12px 20px;
  font-size: 0.9rem;
  color: var(--text);
  text-align: left;
  transition: background var(--transition);
}
.user-menu-section button:hover { background: var(--bg-alt); }
.user-menu-section button .material-icons-round { font-size: 20px; color: var(--text-light); }
.user-menu-section hr { border: none; border-top: 1px solid var(--border-light); margin: 4px 0; }

/* ======== BOTTOM NAV ======== */
.mobile-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  z-index: 999;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-nav button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0;
  flex: 1;
  min-width: 0;
  color: var(--dark);
  font-size: 0.6rem;
  font-weight: 600;
  transition: color var(--transition), transform 0.15s ease;
  border-radius: var(--radius-md);
  position: relative;
}
.mobile-nav button:hover { color: var(--dark); transform: translateY(-1px); }
.mobile-nav button .material-icons-round { font-size: 20px; }
.mobile-nav button.active { color: var(--primary); }
.mobile-nav button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
}

/* ======== PAGES ======== */
.page { display: none; padding-top: var(--nav-height); padding-bottom: var(--mobile-nav-height); min-height: 100vh; }
.page.active { display: block; }

/* Profile editor entrance animations */
@keyframes profileFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes profileCoverReveal {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}
#page-profile.page.active .profile-cover {
  animation: profileCoverReveal 0.5s ease both;
}
#page-profile.page.active .profile-hero {
  animation: profileFadeIn 0.45s ease 0.15s both;
}
#page-profile.page.active .profile-stats-bar {
  animation: profileFadeIn 0.45s ease 0.25s both;
}
#page-profile.page.active .profile-section:nth-child(1) {
  animation: profileFadeIn 0.4s ease 0.3s both;
}
#page-profile.page.active .profile-section:nth-child(2) {
  animation: profileFadeIn 0.4s ease 0.38s both;
}
#page-profile.page.active .profile-section:nth-child(3) {
  animation: profileFadeIn 0.4s ease 0.46s both;
}
#page-profile.page.active .profile-section:nth-child(4) {
  animation: profileFadeIn 0.4s ease 0.54s both;
}

/* ======== HERO ======== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Animated Marquee Columns */
.hero-marquee {
  position: absolute;
  top: 0;
  width: 220px;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: auto;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}
.hero-marquee-left { left: 24px; }
.hero-marquee-right { right: 24px; }
.hero-marquee-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-marquee-left .hero-marquee-track {
  animation: marqueeUp 28s linear infinite;
}
.hero-marquee-right .hero-marquee-track {
  animation: marqueeDown 32s linear infinite;
}
@keyframes marqueeUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes marqueeDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}
@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.hero-marquee:hover .hero-marquee-track {
  animation-play-state: paused;
}
.hero-marquee-card {
  display: block;
  width: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
  color: var(--dark);
  text-decoration: none;
}
.hero-marquee-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}
.hero-marquee-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}
.hero-marquee-card-info {
  padding: 10px 12px;
}
.hero-marquee-card-info h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-marquee-card-info span {
  font-size: 0.7rem;
  color: var(--text-light);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #667eea22 0%, #764ba222 100%),
    linear-gradient(180deg, rgba(255,56,92,0.08) 0%, rgba(0,166,153,0.06) 100%);
  background-size: cover;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,56,92,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,166,153,0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(102,126,234,0.08) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto 36px;
}
.hero-search {
  background: var(--bg);
  border-radius: 100px;
  padding: 6px 6px 6px 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.06);
  border: 1px solid var(--border-light);
  position: relative;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  max-width: 850px;
  margin: 0 auto;
}
.hero-search:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--border);
}
.hero-search:focus-within {
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.12), 0 12px 40px rgba(0,0,0,0.08);
  border-color: rgba(124, 58, 237, 0.25);
}
.hero-search-glow {
  position: absolute;
  inset: -2px;
  border-radius: 102px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4, #a855f7, #7c3aed);
  background-size: 300% 300%;
  animation: aiGlow 4s ease infinite;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  filter: blur(4px);
}
.hero-search:focus-within .hero-search-glow {
  opacity: 0.5;
}
.hero-search-row {
  display: flex;
  align-items: center;
  gap: 0;
}
.hero-field-divider {
  width: 1px;
  height: 32px;
  background: var(--border-light);
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.hero-field {
  flex: 1;
  text-align: left;
  padding: 10px 14px;
  border-radius: 100px;
  transition: background 0.2s ease;
  cursor: pointer;
  min-width: 0;
}
.hero-field:hover { background: var(--bg-alt); }
.hero-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
  pointer-events: none;
}
.hero-field input, .hero-field select {
  border: none;
  padding: 2px 0;
  font-size: 0.88rem;
  background: transparent;
  color: var(--text);
  width: 100%;
  height: auto;
  min-height: unset;
  box-shadow: none;
  outline: none;
  line-height: 1.4;
  margin: 0;
  border-radius: 0;
  font-family: var(--font);
}
.hero-field input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}
.hero-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23717171' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 8px;
  padding-right: 14px;
}
.hero-field input:focus, .hero-field select:focus { box-shadow: none; outline: none; border: none; }

/* ===== Custom Calendar (Wann) ===== */
.hero-field-date { position: relative; cursor: pointer; }
.hero-date-display {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.4;
  padding: 2px 0;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-date-display.has-value { color: var(--text); font-weight: 500; }

.cal-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--border-light);
  padding: 20px;
  z-index: 1100;
  animation: calFadeIn 0.2s ease;
}
.cal-dropdown.show { display: block; }
@keyframes calFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
}
.cal-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  background: none;
  border: none;
  color: var(--dark);
}
.cal-nav:hover { background: var(--bg-alt); }
.cal-nav .material-icons-round { font-size: 20px; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}
.cal-weekdays span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  background: none;
  font-size: 0.88rem;
  font-family: var(--font);
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-weight: 400;
}
.cal-day:hover:not(.disabled):not(.selected) { background: var(--bg-alt); }
.cal-day.today {
  font-weight: 700;
  color: var(--primary);
}
.cal-day.selected {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.cal-day.disabled {
  color: #B0B0B0;
  cursor: default;
  pointer-events: none;
}
.cal-day.other-month { color: #B0B0B0; }

.cal-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.cal-clear, .cal-today {
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.15s ease;
  font-family: var(--font);
}
.cal-clear { color: var(--text-light); }
.cal-clear:hover { background: var(--bg-alt); }
.cal-today { color: var(--primary); }
.cal-today:hover { background: var(--primary-light); }

/* ===== KI-Suche ===== */
.hero-field-ai {
  position: relative;
  flex: 1.2;
}

.hero-field-ai label {
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4, #7c3aed);
  background-size: 200% 200%;
  animation: aiLabelShimmer 3s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 0.8px;
}
.ai-spark {
  font-size: 13px !important;
  -webkit-text-fill-color: #7c3aed;
}
@keyframes aiLabelShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Suggestions dropdown */
.ai-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 100;
  display: none;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4, #a855f7, #7c3aed);
  background-size: 300% 300%;
  animation: aiGlow 4s ease infinite;
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.2), 0 0 20px rgba(6, 182, 212, 0.1);
  transform: translateY(4px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.ai-suggestions.show {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

@keyframes aiGlow {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 100%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}

.ai-suggestions-inner {
  background: var(--bg);
  border-radius: calc(var(--radius-lg) - 2px);
  padding: 14px 16px;
  text-align: left;
}

.ai-suggestions-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #7c3aed;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}
.ai-suggestions-header .material-icons-round {
  font-size: 16px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Category grid */
.ai-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.ai-cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  background: var(--bg-alt);
  position: relative;
}
.ai-cat-chip:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.08));
  border-color: rgba(124, 58, 237, 0.15);
}
.ai-cat-chip.selected {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(6, 182, 212, 0.12));
  border-color: #7c3aed;
}
.ai-cat-chip.selected::after {
  content: 'check_circle';
  font-family: 'Material Icons Round';
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 14px;
  color: #7c3aed;
}
.ai-cat-emoji {
  font-size: 1.5rem;
  line-height: 1;
}
.ai-cat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
  line-height: 1.2;
}
.ai-cat-chip.selected .ai-cat-label {
  color: #7c3aed;
}

/* Selected tags bar */
.ai-selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  justify-content: center;
  min-height: 0;
}
.ai-selected-tags:empty {
  display: none;
}
.ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 8px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
  color: #7c3aed;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: tagPop 0.25s ease;
}
.ai-tag:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
}
.ai-tag .material-icons-round {
  font-size: 14px;
}
@keyframes tagPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* AI typing indicator */
.ai-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  color: var(--text-light);
  font-size: 0.85rem;
}
.ai-typing-dots {
  display: flex; gap: 3px;
}
.ai-typing-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #7c3aed;
  animation: aiDot 1.4s ease infinite;
}
.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* Hero field AI focus glow */
.hero-field-ai.focused {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(6, 182, 212, 0.04));
  border-radius: 100px;
}
.hero-search-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #FF385C, #E31C5F);
  color: #fff;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(255, 56, 92, 0.3);
  border: none;
  cursor: pointer;
}
.hero-search-btn span:last-child { display: none; }
.hero-search-btn:hover {
  background: linear-gradient(135deg, #E31C5F, #C4174F);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(255, 56, 92, 0.4);
}
.hero-search-btn .material-icons-round { font-size: 22px; }

/* ======== SECTION ======== */
.section { padding: 32px 0 60px; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 28px;
}
.section-title.center { text-align: center; }

/* ======== CATEGORY CHIPS ======== */
.category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.category-scroll.dragging { cursor: grabbing; }
.category-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}
.cat-chip:hover { border-color: var(--dark); }
.cat-chip.active {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.cat-chip .material-icons-round { font-size: 18px; }

/* ======== LISTING CARDS ======== */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.listing-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.listing-card-img {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}
.listing-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.listing-card:hover .listing-card-img img { transform: scale(1.05); }
.listing-fav {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.listing-fav:hover { transform: scale(1.1); }
.listing-fav .material-icons-round { font-size: 20px; color: var(--dark); }
.listing-fav.liked .material-icons-round { color: var(--primary); }
.listing-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}
.listing-card-body { padding: 14px 4px; }
.listing-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2px;
}
.listing-card-title {
  font-weight: 700;
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.3;
}
.listing-card-rating {
  display: flex; align-items: center; gap: 3px;
  font-size: 0.88rem;
  font-weight: 600;
  flex-shrink: 0;
}
.listing-card-rating .material-icons-round { font-size: 16px; color: var(--dark); }
.listing-card-category {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 2px;
}
.listing-card-location {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex; align-items: center; gap: 4px;
}
.listing-card-location .material-icons-round { font-size: 14px; }
.listing-card-price {
  font-weight: 700;
  color: var(--dark);
  margin-top: 8px;
  font-size: 1rem;
}
.listing-card-price span { font-weight: 400; color: var(--text-light); font-size: 0.85rem; }
.listing-card-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.listing-tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg-alt);
  color: var(--text-light);
  font-weight: 600;
}

/* ======== HOW IT WORKS ======== */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step-card {
  text-align: center;
  padding: 32px 20px;
}
.step-icon {
  width: 72px; height: 72px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step-icon .material-icons-round { font-size: 32px; color: var(--primary); }
.step-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; color: var(--text-light); }

/* ======== TESTIMONIALS ======== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testimonial-stars { color: #FFB400; font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { font-size: 0.95rem; color: var(--text); margin-bottom: 20px; line-height: 1.7; }
.testimonial-author {
  display: flex; align-items: center; gap: 14px;
}
.testimonial-author img { width: 44px; height: 44px; border-radius: 50%; }
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--dark); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-light); }

/* ======== CTA ======== */
.section-cta {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #16213e 100%);
  padding: 80px 0;
  color: #fff;
}
.section-cta h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.section-cta p { font-size: 1.1rem; opacity: 0.8; margin-bottom: 32px; }

/* ======== FOOTER ======== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo {
  font-size: 1.3rem; font-weight: 800; color: var(--dark);
  display: inline-flex; align-items: center; gap: 4px;
  margin-bottom: 12px;
  text-decoration: none; cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1) 0.15s, transform 0.7s cubic-bezier(.22,.61,.36,1) 0.15s;
}
.footer-logo:hover { color: var(--primary); }
.footer-logo.visible {
  opacity: 1;
  transform: translateY(0);
}
.footer-logo .material-icons-round { color: var(--primary); font-size: 1.6rem; transition: transform 0.5s cubic-bezier(.22,.61,.36,1) 0.3s; }
.footer-logo.visible .material-icons-round { transform: rotate(-10deg) scale(1.15); }
.footer-col p { font-size: 0.9rem; color: var(--text-light); }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--dark); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.9rem; color: var(--text-light); padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
}
.footer-social { display: flex; gap: 20px; }
.footer-social a:hover { color: var(--primary); }

/* ======== EXPLORE PAGE (Instagram-Style) ======== */
.explore-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 20px;
  flex-wrap: wrap;
}
.explore-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
}
.explore-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 10px 18px;
  flex: 1;
  max-width: 400px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.explore-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,56,92,0.1);
}
.explore-search .material-icons-round {
  font-size: 20px;
  color: var(--text-light);
}
.explore-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--dark);
  width: 100%;
  font-family: inherit;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-bottom: 40px;
}
.explore-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}
.explore-item-large {
  grid-column: span 2;
  grid-row: span 2;
}
.explore-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.explore-item:hover img {
  transform: scale(1.05);
}
.explore-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.6) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.explore-item:hover .explore-item-overlay {
  opacity: 1;
}
.explore-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.explore-item-price {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
  margin-top: 2px;
}

/* ======== AKTUELLES FEED PAGE ======== */
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 8px;
}
.feed-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}
.feed-location-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}
.feed-location-badge .material-icons-round {
  font-size: 16px;
  color: var(--primary);
}
.feed-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}
.feed-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  font-family: var(--font);
}
.feed-tab.active {
  color: var(--dark);
  border-bottom-color: var(--dark);
}
.feed-tab:hover {
  color: var(--dark);
}
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 100px;
}
.feed-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.feed-card:hover {
  box-shadow: var(--shadow-md);
}
.feed-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.feed-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}
.feed-card-meta {
  flex: 1;
  min-width: 0;
}
.feed-card-provider {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.feed-card-provider:hover {
  color: var(--primary);
}
.feed-card-time {
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}
.feed-card-time .material-icons-round {
  font-size: 12px;
}
.feed-card-category {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: 50px;
  white-space: nowrap;
}
.feed-card-image {
  width: 100%;
  aspect-ratio: 16/5;
  max-height: 280px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.feed-card-body {
  padding: 12px 14px;
}
.feed-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  cursor: pointer;
}
.feed-card-title:hover {
  color: var(--primary);
}
.feed-card-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 12px;
  border-top: 1px solid var(--border-light);
}
.feed-card-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
}
.feed-card-price small {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.75rem;
}
.feed-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feed-card-action {
  display: flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.75rem;
  font-family: var(--font);
  font-weight: 500;
  transition: color var(--transition);
  padding: 4px;
}
.feed-card-action:hover,
.feed-card-action.active {
  color: var(--primary);
}
.feed-card-action .material-icons-round {
  font-size: 20px;
}
.feed-card-location {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  color: var(--text-light);
  padding: 0 14px 10px;
}
.feed-card-location .material-icons-round {
  font-size: 14px;
}
.feed-card-tags {
  display: flex;
  gap: 6px;
  padding: 0 14px 10px;
  flex-wrap: wrap;
}
.feed-card-tag {
  font-size: 0.7rem;
  background: var(--bg-alt);
  color: var(--text-light);
  padding: 3px 8px;
  border-radius: 50px;
  font-weight: 500;
}

/* ======== BROWSE PAGE ======== */
.browse-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0 12px;
}
.browse-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0 16px;
  margin-bottom: 12px;
  transition: border-color var(--transition);
}
.browse-search-row:focus-within {
  border-color: var(--primary);
}
.browse-search-row .material-icons-round { font-size: 20px; color: var(--text-light); }
.browse-search-row input {
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 0.95rem;
  width: 100%;
  font-family: var(--font);
}
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0 12px;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: border-color var(--transition);
}
.filter-chip:focus-within {
  border-color: var(--primary);
}
.filter-chip .material-icons-round { font-size: 16px; color: var(--text-light); }
.filter-chip select, .filter-chip input {
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 0.82rem;
  font-family: var(--font);
  color: var(--dark);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.filter-chip select { padding-right: 4px; }
.filter-chip input { width: 70px; }
.filter-chip input::placeholder { color: var(--text-light); }
.filter-tags {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.browse-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 16px;
}
.browse-results-header h2 { font-size: 1.2rem; font-weight: 700; color: var(--dark); }

/* Active filter tags */
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 10px 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  animation: tagPopIn 0.2s ease;
}
@keyframes tagPopIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
.filter-tag button {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  color: var(--primary-dark);
  transition: background var(--transition);
}
.filter-tag button:hover { background: rgba(255,56,92,0.18); }
.filter-tag button .material-icons-round { font-size: 14px; }
.filter-tag-clear-all {
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 10px;
  transition: color var(--transition);
  background: none; border: none;
  font-family: var(--font);
}
.filter-tag-clear-all:hover { color: var(--primary); }

/* No results container */
.no-results-container { padding-bottom: 60px; }
.no-results-box {
  text-align: center;
  padding: 60px 24px 40px;
  animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.no-results-icon {
  font-size: 64px;
  color: var(--border);
  margin-bottom: 16px;
}
.no-results-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.no-results-box p {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto;
}

/* Alternatives section */
.alternatives-section {
  margin-top: 8px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.alternatives-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}
.alternatives-section h3 .material-icons-round {
  color: #F59E0B;
  font-size: 22px;
}
.alternatives-section .listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Distance badge on alternative cards */
.alt-distance-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}
.alt-distance-badge .material-icons-round { font-size: 12px; color: var(--accent); }
.browse-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}
.browse-sort select {
  width: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
}
.view-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.view-toggle.active { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ======== DETAIL PAGE ======== */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  padding: 12px 0;
  margin-bottom: 16px;
}
.back-btn:hover { color: var(--primary); }
/* Detail hero image */
.detail-hero-img {
  display: none;
}
.detail-hero-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  max-height: 360px;
}

.detail-gallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 32px;
}
/* === CINEMATIC PREVIEW === */
.dg-cinema {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #000;
}
.dg-cinema-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
  will-change: opacity, transform;
}
.dg-cinema-img.active {
  opacity: 1;
  animation: kenBurns 1.2s ease forwards;
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.dg-cinema-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 12;
  transition: width 0.3s linear;
  border-radius: 0 2px 2px 0;
}
.dg-cinema-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 12;
  text-transform: uppercase;
}
.dg-cinema.fade-out {
  animation: cinemaFadeOut 0.6s ease forwards;
}
@keyframes cinemaFadeOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.02); }
}
.detail-gallery-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.detail-gallery-track::-webkit-scrollbar { display: none; }
.detail-gallery-track:active { cursor: grabbing; }
.detail-gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  background: var(--bg-alt);
}
.detail-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.detail-gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.detail-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.detail-gallery-dot.active {
  background: #fff;
  transform: scale(1.3);
}
.detail-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  opacity: 0;
  transition: opacity 0.2s;
  color: var(--dark);
  font-size: 20px;
}
.detail-gallery:hover .detail-gallery-arrow { opacity: 1; }
.detail-gallery-arrow:hover { background: #fff; }
.detail-gallery-arrow.prev { left: 12px; }
.detail-gallery-arrow.next { right: 12px; }
.detail-gallery-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 5;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: flex-start;
}
.detail-header { margin-bottom: 8px; }
.detail-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.detail-header h1 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.detail-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.detail-rating, .detail-location {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.9rem;
  color: var(--text);
}
.detail-rating .material-icons-round { font-size: 18px; color: #FFB400; }
.detail-location .material-icons-round { font-size: 18px; }
.detail-divider { border: none; border-top: 1px solid var(--border-light); margin: 24px 0; height: 0; }
.detail-provider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.detail-provider-avatar { width: 56px; height: 56px; border-radius: 50%; }
.detail-provider-row strong { display: block; font-size: 1rem; color: var(--dark); }
.detail-provider-row p { font-size: 0.85rem; color: var(--text-light); }
#detailEditBtn { margin-left: auto; }
#detailEditBtn[style*="display: none"] + .btn-outline,
#detailEditBtn[style*="display:none"] + .btn-outline { margin-left: auto; }
.detail-description { font-size: 0.95rem; line-height: 1.8; color: var(--text); }
.detail-description h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin: 16px 0 8px; }
.detail-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.feature-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.feature-item .material-icons-round { font-size: 22px; color: var(--accent); }
.feature-item span { font-size: 0.9rem; color: var(--text); }

/* Reviews */
.detail-reviews { margin-top: 16px; }
.review-card {
  display: flex; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.review-card:last-child { border-bottom: none; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.review-content { flex: 1; }
.review-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.review-top strong { font-size: 0.95rem; color: var(--dark); }
.review-top span { font-size: 0.8rem; color: var(--text-light); }
.review-stars { color: #FFB400; font-size: 0.85rem; margin-bottom: 6px; letter-spacing: 1px; }
.review-text { font-size: 0.9rem; color: var(--text); line-height: 1.6; }
.review-date { display: block; text-align: right; font-size: 0.8rem; color: var(--text-light); margin-top: 6px; }
.review-delete-btn {
  background: none; border: none; color: var(--text-light); cursor: pointer;
  padding: 2px; margin-left: 8px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; transition: var(--transition);
  flex-shrink: 0;
}
.review-delete-btn:hover { background: var(--primary-light); color: var(--primary); }
.review-delete-btn .material-icons-round { font-size: 18px; }

/* Booking Card */
.booking-card {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.booking-price {
  margin-bottom: 20px;
}
.price-amount { font-size: 1.6rem; font-weight: 800; color: var(--dark); }
.price-label { font-size: 0.9rem; color: var(--text-light); }
.booking-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.booking-field label {
  display: block; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 4px; color: var(--dark);
}
.booking-card .btn-block { margin-bottom: 10px; }
.booking-note {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.booking-note .material-icons-round { font-size: 16px; flex-shrink: 0; margin-top: 2px; }

/* ======== MAP OVERLAY ======== */
.map-overlay {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--bg);
  box-shadow: var(--shadow-xl);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  max-height: calc(100vh - var(--nav-height) - 40px);
  overflow: hidden;
  display: none;
  animation: mapSlideDown 0.3s ease;
}
.map-overlay.show { display: block; }
@keyframes mapSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.map-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 899;
  display: none;
}
.map-overlay-backdrop.show { display: block; }
.map-overlay-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto auto 1fr;
  height: 520px;
}
.map-overlay-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 8px;
}
.map-overlay-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}
.map-overlay-header h3 .material-icons-round { color: var(--primary); font-size: 24px; }
.map-close-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-light);
  transition: background var(--transition);
}
.map-close-btn:hover { background: var(--bg-alt); color: var(--dark); }
.map-search-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px 12px;
}
.map-search-bar .material-icons-round { font-size: 22px; color: var(--text-light); }
.map-search-bar input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 10px 18px;
  font-size: 0.92rem;
  background: var(--bg-alt);
}
.map-search-bar input:focus { border-color: var(--primary); background: var(--bg); }
.map-container {
  grid-column: 1;
  grid-row: 3;
  border-radius: var(--radius-md);
  margin: 0 0 20px 24px;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid var(--border-light);
}
.map-container .leaflet-container { height: 100%; width: 100%; border-radius: var(--radius-md); }
.map-locations-list {
  grid-column: 2;
  grid-row: 3;
  overflow-y: auto;
  padding: 0 24px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-loc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  background: var(--bg);
}
.map-loc-item:hover { background: var(--bg-alt); border-color: var(--border); }
.map-loc-item.active { background: var(--primary-light); border-color: var(--primary); }
.map-loc-img {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  object-fit: cover;
}
.map-loc-info { flex: 1; min-width: 0; }
.map-loc-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-loc-info span {
  font-size: 0.75rem;
  color: var(--text-light);
}
.map-loc-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
/* Map custom markers */
.map-marker-custom {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255,56,92,0.35);
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: var(--font);
}
.map-marker-custom:hover, .map-marker-custom.active {
  background: var(--dark);
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.map-popup-card {
  min-width: 220px;
  font-family: var(--font);
}
.map-popup-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}
.map-popup-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.map-popup-card .popup-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 4px;
}
.map-popup-card .popup-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.map-popup-card .popup-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: background 0.2s ease;
}
.map-popup-card .popup-btn:hover { background: var(--primary-dark); }

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}
.leaflet-popup-content { margin: 12px !important; }
.leaflet-popup-tip { box-shadow: none !important; }

@media (max-width: 768px) {
  .map-overlay {
    top: var(--nav-height);
    max-height: calc(100vh - var(--nav-height) - var(--mobile-nav-height));
    border-radius: 0;
  }
  .map-overlay-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    height: calc(100vh - var(--nav-height) - var(--mobile-nav-height));
  }
  .map-container {
    margin: 0 16px 12px;
    min-height: 280px;
  }
  .map-locations-list {
    grid-column: 1;
    grid-row: 4;
    max-height: 160px;
    padding: 0 16px 16px;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
  }
  .map-loc-item {
    min-width: 200px;
    flex-shrink: 0;
  }
}

/* ======== PROVIDER PROFILE ======== */
#page-provider { padding-top: 0; position: relative; }

/* --- Back Button --- */
.provider-back-btn {
  position: absolute;
  top: calc(var(--nav-height) + 16px);
  left: 16px;
  z-index: 3;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.provider-back-btn:hover { background: #fff; box-shadow: var(--shadow-md); }
.provider-back-btn:active { transform: scale(0.92); }
.provider-back-btn .material-icons-round { font-size: 22px; color: var(--dark); }

/* --- Cover Mosaic --- */
/* --- Provider Cover Gallery --- */
.provider-cover-gallery {
  position: relative;
  height: 340px;
  margin-top: var(--nav-height);
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.pcg-scroll-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  height: 100%;
  overflow: hidden;
  position: relative;
  padding: 8px 0;
}
.pcg-row-wrap {
  overflow: hidden;
  position: relative;
}
.pcg-row {
  display: flex;
  gap: 6px;
  width: max-content;
  will-change: transform;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.pcg-row:active { cursor: grabbing; }
.pcg-thumb {
  flex-shrink: 0;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.pcg-thumb.pcg-contain {
  background-size: contain;
  background-color: #fff;
}
.pcg-show-all {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  color: var(--dark);
  font-size: 22px;
}
.pcg-show-all:hover { background: var(--dark); color: #fff; }
.pcg-show-all:active { transform: scale(0.95); }

/* --- Profile Card --- */
.provider-profile-card {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: -48px;
  padding: 28px 32px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.ppc-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.provider-avatar-lg {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}
.ppc-verified {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 600;
  color: #0ea5e9;
  background: #f0f9ff;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.ppc-verified .material-icons-round { font-size: 14px; }
.ppc-center { flex: 1; min-width: 0; }
.ppc-center h1 { font-size: 1.7rem; font-weight: 800; color: var(--dark); margin-bottom: 2px; }
.provider-tagline { font-size: 0.95rem; color: var(--text-light); margin-bottom: 10px; }
.ppc-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ppc-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border-light);
}
.ppc-badge .material-icons-round { font-size: 15px; }
.ppc-badge-super {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #f59e0b;
  color: #92400e;
}
.ppc-badge-super .material-icons-round { color: #f59e0b; }
.admin-badge {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe) !important;
  border-color: #7c3aed !important;
  color: #5b21b6 !important;
}
.admin-badge .material-icons-round { color: #7c3aed !important; }
.ppc-right { flex-shrink: 0; }
.provider-stats-ring {
  display: flex; gap: 20px;
}
.stat-ring {
  text-align: center;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  min-width: 80px;
}
.stat-ring strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
}
.stat-ring span {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* --- Action Bar --- */
.provider-action-bar {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}
.provider-action-bar .btn-primary,
.provider-action-bar .btn-outline {
  padding: 12px 24px;
  font-size: 0.9rem;
}

/* --- Two Column Layout --- */
.provider-two-col {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  margin-bottom: 40px;
}
.provider-main-col { min-width: 0; }
.provider-sidebar-col { position: sticky; top: calc(var(--nav-height) + 20px); align-self: start; }

/* --- Sections --- */
.provider-section {
  margin-bottom: 36px;
}
.provider-section h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.2rem; font-weight: 700; color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.provider-section h2 .material-icons-round { font-size: 22px; color: var(--primary); }

/* --- Bio --- */
.provider-bio {
  font-size: 0.95rem; color: var(--text); line-height: 1.8;
  position: relative;
}
.provider-bio.bio-collapsed {
  max-height: 120px;
  overflow: hidden;
}
.provider-bio.bio-collapsed::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.bio-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none; background: none; padding: 0;
}
.bio-toggle:hover { text-decoration: underline; }
.provider-bio p { margin-bottom: 12px; }
.provider-bio h3 { font-size: 1.05rem; font-weight: 700; margin: 16px 0 8px; color: var(--dark); }

/* --- Highlights --- */
.provider-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.prov-highlight {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.prov-highlight:hover { background: var(--primary-light); }
.prov-highlight .material-icons-round {
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

/* --- Portfolio Gallery --- */
.provider-portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.provider-portfolio img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
}
.provider-portfolio img:hover {
  transform: scale(1.03);
  filter: brightness(0.85);
}

/* --- Sidebar Cards --- */
.provider-fact-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.provider-fact-card h3 {
  font-size: 1rem; font-weight: 700; color: var(--dark);
  margin-bottom: 16px;
}
.provider-facts {
  list-style: none;
}
.provider-facts li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}
.provider-facts li:last-child { border-bottom: none; }
.provider-facts li .material-icons-round {
  font-size: 20px;
  color: var(--text-light);
  flex-shrink: 0;
}

/* --- Spec Tags --- */
.provider-spec-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.provider-spec-tag {
  padding: 6px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 0.8rem; font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.provider-spec-tag:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* --- Tabs (keep existing) --- */
.provider-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 28px;
}
.tab {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.tab:hover { color: var(--dark); }
.tab.active { color: var(--dark); border-bottom-color: var(--dark); }
.tab .material-icons-round { font-size: 20px; }
.provider-tab-content { display: none; }
.provider-tab-content.active { display: block; }

/* --- Provider Content Wrapper --- */
.provider-content { margin-bottom: 40px; }

/* --- Lightbox --- */
.provider-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  touch-action: none;
  -webkit-overflow-scrolling: none;
  overscroll-behavior: none;
}
.provider-lightbox.show { opacity: 1; visibility: visible; }
.provider-lightbox img {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  cursor: default;
  transform: scale(0.92);
  transition: transform 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.provider-lightbox.show img { transform: scale(1); }
.plb-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,0.2);
  border: none; border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; font-size: 24px;
  transition: background 0.2s;
  z-index: 3;
}
.plb-close:hover { background: rgba(255,255,255,0.3); }
.plb-close:active { transform: scale(0.9); }
.plb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none; border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; font-size: 28px;
  transition: background 0.2s;
  z-index: 3;
}
.plb-nav:hover { background: rgba(255,255,255,0.35); }
.plb-nav:active { transform: translateY(-50%) scale(0.9); }
.plb-prev { left: 20px; }
.plb-next { right: 20px; }
.plb-counter {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem; font-weight: 500;
  z-index: 3;
}

/* ======== UPDATE NOTIFICATION ======== */
.update-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background: rgba(0,0,0,0.88);
  color: #fff;
  padding: 32px 48px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  backdrop-filter: blur(12px);
  text-align: center;
  max-width: 90vw;
}
.update-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.update-toast .update-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.update-toast .update-icon .material-icons-round {
  font-size: 32px;
  color: #fff;
}
.update-toast .update-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.update-toast .update-sub {
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ======== CHAT / MESSAGES ======== */
#page-messages.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  bottom: var(--mobile-nav-height);
  left: 0;
  right: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  z-index: 100;
}
.chat-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.chat-sidebar {
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.chat-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
}
.chat-sidebar-header h2 { font-size: 1.3rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.chat-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-alt);
  border-radius: var(--radius-xl);
  padding: 0 16px;
}
.chat-search .material-icons-round { font-size: 20px; color: var(--text-light); }
.chat-search input { border: none; background: none; padding: 10px 0; font-size: 0.9rem; }
.chat-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
.chat-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition);
}
.chat-item:hover, .chat-item.active { background: var(--bg-alt); }
.chat-item img { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.chat-item-avatar-wrap { position: relative; flex-shrink: 0; }
.chat-item-avatar-wrap img { width: 48px; height: 48px; border-radius: 50%; }
.chat-item-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--bg);
  background: #bbb;
}
.chat-item-dot.online { background: #2ecc71; }
.chat-item-info { flex: 1; overflow: hidden; }
.chat-item-info strong { display: block; font-size: 0.9rem; color: var(--dark); }
.chat-item-info p {
  font-size: 0.82rem;
  color: var(--text-light);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-item-meta {
  text-align: right;
  flex-shrink: 0;
}
.chat-item-meta span {
  display: block; font-size: 0.72rem; color: var(--text-light);
}
.chat-item-unread {
  width: 20px; height: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 4px;
}
.chat-main {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  min-height: 0;
  overflow: hidden;
}
.chat-empty {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-light);
}
.chat-empty .material-icons-round { font-size: 64px; margin-bottom: 16px; opacity: 0.3; }
.chat-empty h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 6px; }
.chat-active { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.chat-header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.chat-back-btn { display: none; color: var(--text); }
.chat-header img { width: 40px; height: 40px; border-radius: 50%; }
.chat-header strong { font-size: 1rem; color: var(--dark); }
.chat-status {
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: var(--text-light);
}
.chat-status.online { color: var(--accent); }
.chat-status.online::before { background: #2ecc71; }
.chat-status.offline { color: var(--text-light); }
.chat-status.offline::before { background: #bbb; }
.chat-header-actions { margin-left: auto; display: flex; gap: 6px; }
.chat-header-actions button {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text);
  transition: background var(--transition);
}
.chat-header-actions button:hover { background: var(--bg-alt); }

/* Negotiation Banner */
.negotiation-banner {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFECB3 100%);
  border-bottom: 1px solid #FFD54F;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.neg-status {
  display: flex; align-items: center; gap: 12px;
}
.neg-status .material-icons-round { font-size: 28px; color: #FF9800; }
.neg-info strong { font-size: 0.9rem; color: var(--dark); }
.neg-info p { font-size: 0.82rem; color: var(--text-light); margin: 0; }
.neg-actions { display: flex; gap: 8px; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}
.msg {
  max-width: 70%;
  padding: 12px 18px;
  border-radius: 20px;
  font-size: 0.92rem;
  line-height: 1.5;
  position: relative;
}
.msg-sent {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.msg-received {
  background: var(--bg);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.msg-time {
  font-size: 0.68rem;
  opacity: 0.7;
  margin-top: 4px;
  display: block;
}
.msg-system {
  align-self: center;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  text-align: center;
}
.msg-offer {
  align-self: center;
  background: #FFF3E0;
  border: 1px solid #FFD54F;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
  max-width: 80%;
}
.msg-offer .offer-amount { font-size: 1.6rem; font-weight: 800; color: var(--dark); }
.msg-offer .offer-label { font-size: 0.82rem; color: var(--text-light); margin-bottom: 4px; }
.msg-offer .offer-status { font-size: 0.8rem; font-weight: 600; margin-top: 8px; }
.msg-offer .offer-status.pending { color: #FF9800; }
.msg-offer .offer-status.accepted { color: var(--accent); }
.msg-offer .offer-status.declined { color: #FF3B30; }
.offer-revoke-btn { margin-top: 10px; font-size: 0.78rem; padding: 6px 14px; border-radius: var(--radius-sm); }

.offer-mine { align-self: flex-end; }
.offer-theirs { align-self: flex-start; }

.chat-input-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}
.chat-attach-btn, .chat-send-btn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-light);
  transition: all var(--transition);
  flex-shrink: 0;
}
.chat-attach-btn:hover { background: var(--bg-alt); }
.chat-send-btn {
  background: var(--primary);
  color: #fff;
}
.chat-send-btn:hover { background: var(--primary-dark); }
.chat-input-bar input {
  flex: 1;
  border: none;
  background: var(--bg-alt);
  border-radius: var(--radius-xl);
  padding: 12px 20px;
}

/* ======== PROFILAUFTRITT (replaces Dashboard) ======== */
.profile-cover {
  position: relative;
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2d2d4e 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
}

/* Cover Lightbox */
.cover-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cover-lightbox.show { opacity: 1; visibility: visible; }
.cover-lightbox img {
  max-width: 92vw; max-height: 92vh;
  object-fit: contain; cursor: default;
  transform: scale(0.92);
  transition: transform 0.3s ease;
  border-radius: var(--radius-sm);
}
.cover-lightbox.show img { transform: scale(1); }

/* Gallery Lightbox */
.gallery-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gallery-lightbox.show { opacity: 1; visibility: visible; }
.gallery-lightbox img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain; cursor: default;
  border-radius: var(--radius-lg);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.gallery-lightbox.show img { transform: scale(1); }
.profile-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.4) 100%);
}
.profile-cover-edit {
  position: absolute; bottom: 16px; right: 16px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  z-index: 2;
}
.profile-cover-edit:hover { background: #fff; transform: scale(1.1); }
.profile-cover-edit .material-icons-round { font-size: 22px; color: var(--dark); }

/* Reposition button */
.profile-cover-reposition {
  right: auto;
  left: 16px;
  display: none;
}
.profile-cover[style*="background-image"] .profile-cover-reposition { display: flex; }

/* Reposition mode */
.profile-cover.repositioning {
  cursor: grab;
  outline: 3px dashed rgba(255,255,255,0.6);
  outline-offset: -3px;
}
.profile-cover.repositioning:active { cursor: grabbing; }
.profile-cover.repositioning .profile-cover-overlay { opacity: 0.3; }
.profile-cover.repositioning .profile-cover-edit { display: none; }
.profile-cover.repositioning .profile-cover-reposition { display: none; }
.cover-reposition-bar {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  align-items: center;
  gap: 8px;
  z-index: 5;
  backdrop-filter: blur(4px);
}
.cover-reposition-bar .material-icons-round { font-size: 18px; }
.profile-cover.repositioning .cover-reposition-bar { display: flex; }
.cover-reposition-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.cover-reposition-actions .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.cover-reposition-actions .btn-outline:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.profile-hero {
  display: flex; align-items: flex-end; gap: 28px;
  margin-top: -40px; position: relative; z-index: 2;
  padding-bottom: 28px; border-bottom: 1px solid var(--border-light);
}
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar {
  width: 128px; height: 128px; border-radius: 50%;
  border: 4px solid #fff; box-shadow: var(--shadow-lg);
  object-fit: cover; background: var(--bg);
}
.profile-avatar-edit {
  position: absolute; bottom: 4px; right: 4px;
  width: 36px; height: 36px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; cursor: pointer;
  transition: all var(--transition);
}
.profile-avatar-edit:hover { background: var(--primary-dark); transform: scale(1.1); }
.profile-avatar-edit .material-icons-round { font-size: 18px; }

/* Avatar Crop Modal */
.crop-container {
  position: relative;
  width: 280px; height: 280px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #111;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.crop-container:active { cursor: grabbing; }
.crop-container canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
.crop-circle-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center,
    transparent 48%,
    rgba(0,0,0,0.6) 48.5%
  );
}
.crop-circle-overlay::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 68%; height: 68%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  pointer-events: none;
}
.crop-zoom {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 0 8px;
  color: var(--text-light);
}
.crop-zoom input[type="range"] {
  flex: 1; height: 4px;
  -webkit-appearance: none; appearance: none;
  background: var(--border);
  border-radius: 2px; outline: none;
}
.crop-zoom input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

.profile-hero-info {
  flex: none; width: fit-content; padding: 10px 16px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.profile-name-row, .profile-tagline-row {
  display: flex; align-items: center; gap: 8px;
}
.profile-display-name { font-size: 1.8rem; font-weight: 800; color: var(--dark); line-height: 1.2; }
.profile-company { font-size: 0.95rem; color: var(--text-light); margin-top: 2px; font-weight: 500; text-align: center; }
.profile-tagline { font-size: 1rem; color: var(--text-light); margin-top: 2px; }
.profile-inline-edit {
  width: 32px; height: 32px;
  background: var(--bg-alt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-light); cursor: pointer;
  transition: all var(--transition); flex-shrink: 0;
  opacity: 0.6;
}
.profile-inline-edit:hover { opacity: 1; background: var(--primary-light); border-color: var(--primary); }
.profile-inline-edit .material-icons-round { font-size: 16px; color: var(--text); }

.profile-edit-field {
  margin-top: 8px; padding: 16px;
  background: var(--bg-alt); border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start;
}
.profile-edit-field input, .profile-edit-field textarea {
  flex: 1; min-width: 200px;
  padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem;
  font-family: inherit; transition: border-color var(--transition);
}
.profile-edit-field input:focus, .profile-edit-field textarea:focus {
  outline: none; border-color: var(--primary);
}
.profile-edit-field textarea { width: 100%; min-width: 100%; }

.profile-meta {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px;
}
.profile-meta span {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.85rem; color: var(--text-light);
}
.profile-meta .material-icons-round { font-size: 18px; }
.profile-role {
  background: var(--primary-light); color: var(--primary-dark) !important;
  padding: 4px 12px; border-radius: 20px; font-weight: 600;
}

.profile-stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin: 28px 0;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); overflow: hidden;
}
.profile-stat {
  text-align: center; padding: 20px 12px;
  border-right: 1px solid var(--border-light);
}
.profile-stat:last-child { border-right: none; }
.profile-stat strong {
  display: block; font-size: 1.5rem; font-weight: 800; color: var(--dark);
}
.profile-stat span { font-size: 0.82rem; color: var(--text-light); }

.profile-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-light);
}
.profile-section:last-child { border-bottom: none; padding-bottom: 100px; }
.profile-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.profile-section-header h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700; color: var(--dark);
}
.profile-section-header h2 .material-icons-round { font-size: 24px; color: var(--primary); }
.profile-bio-text {
  font-size: 1rem; line-height: 1.7; color: var(--text);
  white-space: pre-wrap;
}

.profile-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.profile-gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all 0.3s ease;
}
.profile-gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.profile-gallery-empty, .profile-services-empty, .profile-reviews-empty {
  text-align: center; padding: 48px 24px; color: var(--text-light);
  background: var(--bg-alt); border-radius: var(--radius-md);
  border: 2px dashed var(--border);
}
.profile-gallery-empty .material-icons-round,
.profile-services-empty .material-icons-round,
.profile-reviews-empty .material-icons-round {
  font-size: 48px; opacity: 0.3; margin-bottom: 12px; display: block;
}
.profile-gallery-empty p, .profile-services-empty p, .profile-reviews-empty p {
  max-width: 320px; margin: 0 auto;
}

.profile-services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.profile-service-card {
  padding: 20px; background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.profile-service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.profile-service-card h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.profile-service-card .service-category {
  font-size: 0.82rem; color: var(--text-light); margin-bottom: 10px;
}
.profile-service-card .service-price {
  font-size: 1.2rem; font-weight: 800; color: var(--primary);
}
.profile-service-card .service-price span {
  font-size: 0.82rem; font-weight: 400; color: var(--text-light);
}

.profile-reviews .review-card { margin-bottom: 16px; }

/* ======== DASHBOARD (legacy rules kept for compat) ======== */
.dashboard-header {
  padding: 32px 0 16px;
}
.dashboard-header h1 { font-size: 1.8rem; font-weight: 800; color: var(--dark); }
.dashboard-header p { color: var(--text-light); margin-top: 4px; }
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.dash-stat-card {
  display: flex; align-items: center; gap: 16px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.dash-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dash-stat-card .material-icons-round { font-size: 32px; color: var(--primary); }
.dash-stat-card strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--dark); }
.dash-stat-card span { font-size: 0.82rem; color: var(--text-light); }
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 80px;
}
.dash-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}
.dash-card h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 700; color: var(--dark);
  margin-bottom: 20px;
}
.dash-card h3 .material-icons-round { font-size: 22px; color: var(--primary); }
.dash-list { display: flex; flex-direction: column; gap: 12px; }
.dash-list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  transition: all var(--transition);
  cursor: pointer;
}
.dash-list-item:hover { background: var(--border-light); }
.dash-list-item img { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; }
.dash-list-item-info { flex: 1; }
.dash-list-item-info strong { display: block; font-size: 0.88rem; color: var(--dark); }
.dash-list-item-info span { font-size: 0.78rem; color: var(--text-light); }
.dash-list-item .status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.status-active { background: var(--accent-light); color: var(--accent); }
.status-pending { background: #FFF3E0; color: #FF9800; }
.status-completed { background: #E8F5E9; color: #4CAF50; }

/* ======== SETTINGS ======== */
.settings-title {
  font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-top: 32px;
  display: flex; align-items: center; gap: 10px;
}
.settings-title .material-icons-round { font-size: 28px; color: var(--primary); }
.settings-subtitle { color: var(--text-light); margin-top: 4px; margin-bottom: 32px; }
.settings-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.settings-card-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.settings-card-header .material-icons-round { font-size: 24px; color: var(--primary); }
.settings-card-header h2 { font-size: 1.15rem; font-weight: 700; color: var(--dark); }
.settings-field { margin-bottom: 18px; }
.settings-field label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text-light); margin-bottom: 6px;
}
.settings-field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem;
  font-family: var(--font); color: var(--dark); background: var(--bg);
  transition: border-color var(--transition);
}
.settings-field input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.settings-password-wrap {
  position: relative; display: flex; align-items: center;
}
.settings-password-wrap input { padding-right: 44px; }
.settings-pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-light); padding: 4px; display: flex;
}
.settings-pw-toggle:hover { color: var(--dark); }
.settings-save-btn {
  margin-top: 8px; padding: 12px 28px; font-size: 0.95rem;
  border-radius: var(--radius-sm); font-weight: 600; cursor: pointer;
}
.settings-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}
.settings-info-row:last-of-type { border-bottom: none; }
.settings-info-value { font-weight: 600; color: var(--dark); }
.settings-status-active { color: var(--accent) !important; }
.settings-status-passkey-on { color: var(--accent) !important; }
.settings-status-passkey-off { color: #B45309 !important; }
.settings-divider { border: none; border-top: 1px solid var(--border-light); margin: 20px 0; }
.settings-danger-btn {
  color: #E53935 !important; border-color: #E53935 !important;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px; font-size: 0.9rem; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition);
}
.settings-danger-btn:hover { background: #FFEBEE !important; }
.settings-passkey-copy {
  margin: 18px 0 10px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}
.settings-passkey-note {
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--text-light);
}
.settings-passkey-note.is-warning {
  color: #B45309;
}
.settings-passkey-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.settings-passkey-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
.settings-passkey-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.settings-passkey-item-main {
  min-width: 0;
}
.settings-passkey-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}
.settings-passkey-item-meta {
  margin-top: 4px;
  color: var(--text-light);
  font-size: 0.8rem;
  line-height: 1.5;
}
.settings-passkey-remove {
  color: #E53935 !important;
  border-color: #E53935 !important;
  white-space: nowrap;
}
.settings-passkey-empty {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  text-align: center;
  font-size: 0.9rem;
}

/* ======== CREATE LISTING ======== */
.create-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-top: 32px; }
.create-subtitle { color: var(--text-light); margin-top: 4px; margin-bottom: 32px; }
.create-form { padding-bottom: 80px; }
.form-step { display: none; }
.form-step.active { display: block; }
.form-step h2 {
  font-size: 1.3rem; font-weight: 700; color: var(--dark);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-hint { font-size: 0.82rem; color: var(--text-light); margin-bottom: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Flatpickr Theme Overrides */
.flatpickr-calendar {
  font-family: var(--font) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border-light) !important;
}
.flatpickr-months .flatpickr-month {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: #fff !important;
  font-weight: 600 !important;
}
.flatpickr-current-month input.cur-year {
  cursor: pointer !important;
}
.flatpickr-current-month .numInputWrapper span {
  display: none !important;
}
.flatpickr-current-month .numInputWrapper {
  cursor: pointer;
}
.year-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 90px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 220px;
  overflow-y: auto;
  z-index: 100000;
}
.year-dropdown-item {
  padding: 10px 16px;
  text-align: center;
  cursor: pointer;
  color: var(--dark);
  font-weight: 500;
  font-size: 14px;
  transition: background var(--transition);
}
.year-dropdown-item:hover {
  background: var(--bg-alt);
}
.year-dropdown-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.flatpickr-current-month .flatpickr-monthDropdown-months option {
  color: var(--dark) !important;
  background: var(--bg) !important;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  fill: #fff !important;
  color: #fff !important;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: rgba(255,255,255,0.7) !important;
}
span.flatpickr-weekday {
  color: var(--text-light) !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
}
.flatpickr-day {
  border-radius: var(--radius-sm) !important;
  font-weight: 500 !important;
}
.flatpickr-day.today {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.flatpickr-day:hover {
  background: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #b0b0b0 !important;
}

.form-nav { display: flex; justify-content: space-between; margin-top: 24px; }

/* City Autocomplete */
.city-autocomplete-wrap { position: relative; }
.city-autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 220px; overflow-y: auto;
  z-index: 100; list-style: none;
  box-shadow: var(--shadow-md);
  display: none;
}
.city-autocomplete-list.open { display: block; }
.city-autocomplete-list li {
  padding: 10px 16px; cursor: pointer;
  font-size: 0.95rem; color: var(--dark);
  transition: background 0.15s;
}
.city-autocomplete-list li:hover,
.city-autocomplete-list li.active {
  background: var(--primary-light); color: var(--primary-dark);
}
.city-autocomplete-list li .city-state {
  font-size: 0.8rem; color: var(--text-light); margin-left: 6px;
}

/* Time Picker */
.time-picker-wrap {
  display: flex; align-items: center; gap: 4px;
}
.time-select {
  width: auto !important; min-width: 56px;
  padding: 10px 8px !important; text-align: center;
  font-size: 0.95rem; cursor: pointer;
  appearance: auto;
}
.time-select-min { min-width: 56px; }
.time-sep { font-size: 1.1rem; font-weight: 700; color: var(--text-light); }
.form-row-time { grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 24px; }
.form-row-time .form-group { margin-bottom: 0; }
.form-row-time .time-picker-wrap { justify-content: center; }
.duration-group {
  max-width: 240px;
  margin: 0 auto 28px;
  text-align: center;
}
.duration-group label { display: block; margin-bottom: 6px; }
.duration-stepper {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-alt);
}
.dur-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 48px; flex-shrink: 0;
  background: var(--bg); border: none; cursor: pointer;
  color: var(--text-light); transition: all var(--transition);
}
.dur-btn:hover { background: var(--primary-light); color: var(--primary); }
.dur-btn:active { background: var(--primary); color: #fff; }
.dur-btn .material-icons-round { font-size: 20px; }
#createDuration {
  text-align: center;
  background: var(--bg-alt);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  transition: color 0.25s ease, transform 0.25s ease;
  border: none; border-radius: 0;
  flex: 1; min-width: 0;
}
#createDuration.flash {
  animation: durFlash 0.35s ease;
}
@keyframes durFlash {
  0%   { transform: scale(1);   color: var(--primary); }
  35%  { transform: scale(1.06); color: var(--accent); }
  100% { transform: scale(1);   color: var(--primary); }
}


.checkbox-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.check-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}
.check-label input[type="checkbox"] { width: auto; accent-color: var(--primary); }
.check-label.terms { margin-bottom: 12px; }
.check-label.gewerbe { margin-bottom: 24px; }
.check-label.terms a { color: var(--primary); text-decoration: underline; }

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-alt);
}
.upload-zone:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-zone.dragover { border-color: var(--primary); background: var(--primary-light); transform: scale(1.01); }
.upload-zone .material-icons-round { font-size: 48px; color: var(--text-light); margin-bottom: 12px; }
.upload-zone h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: 4px; }
.upload-zone p { font-size: 0.88rem; color: var(--text-light); }
.upload-hint { font-size: 0.78rem !important; color: var(--text-light) !important; margin-top: 8px; }
.upload-zone.small { padding: 24px; }
.upload-zone.small .material-icons-round { font-size: 32px; }

/* Feature Tag Picker */
.feature-search-wrap {
  position: relative; margin-bottom: 12px;
}
.feature-search-wrap input {
  width: 100%; padding: 10px 14px 10px 40px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; background: var(--bg);
  transition: border-color var(--transition);
}
.feature-search-wrap input:focus {
  outline: none; border-color: var(--primary);
}
.feature-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: 20px; pointer-events: none;
}
.feature-search-list {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  list-style: none; z-index: 20; max-height: 260px; overflow-y: auto;
  margin-top: 4px;
}
.feature-search-item {
  padding: 10px 14px; cursor: pointer; font-size: 0.92rem;
  transition: background var(--transition);
}
.feature-search-item:hover, .feature-search-item.active {
  background: var(--primary-light); color: var(--primary);
}
.feature-search-item.already {
  opacity: 0.5;
}
.feature-search-custom {
  font-style: italic; color: var(--text-light);
}
.feature-tag-grid {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.feature-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: 0.88rem; font-weight: 500; color: var(--text);
  cursor: pointer; transition: all var(--transition);
  user-select: none;
}
.feature-tag:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.feature-tag.selected {
  border-color: var(--primary); background: var(--primary); color: #fff;
}
.feature-tag.selected:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.feature-tags-toggle {
  display: none; width: 100%; margin-top: 8px;
  padding: 10px; border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border); background: var(--bg-alt);
  font-size: 0.85rem; font-weight: 500; color: var(--text-light);
  cursor: pointer; text-align: center; transition: all var(--transition);
}
.feature-tags-toggle:hover { border-color: var(--primary); color: var(--primary); }
.feature-tag-custom {
  display: flex; gap: 8px; margin-top: 12px; align-items: center;
}
.feature-tag-custom input { flex: 1; }
.upload-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.upload-preview-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: grab;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.upload-preview-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.upload-preview-item.dragging { opacity: 0.4; transform: scale(0.95); }
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.upload-preview-actions {
  position: absolute; top: 4px; right: 4px;
  display: flex; gap: 4px; opacity: 0;
  transition: opacity 0.2s ease;
}
.upload-preview-item:hover .upload-preview-actions { opacity: 1; }
.upload-preview-actions button {
  width: 28px; height: 28px;
  background: rgba(0,0,0,0.6); color: #fff;
  border: none; cursor: pointer;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: all var(--transition);
}
.upload-preview-actions button:hover { background: rgba(0,0,0,0.85); transform: scale(1.1); }
.upload-preview-actions button .material-icons-round { font-size: 16px; }
.upload-preview-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 16px 8px 6px; text-align: center;
  pointer-events: none;
}
/* Listing Crop Modal */
.lcrop-container {
  position: relative;
  width: 100%; aspect-ratio: 4 / 3;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #111;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.lcrop-container:active { cursor: grabbing; }
.lcrop-container canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
.lcrop-rect-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.lcrop-rect-overlay::before,
.lcrop-rect-overlay::after {
  content: '';
  position: absolute;
}
.lcrop-rect-overlay::before {
  left: 33.33%; width: 33.34%;
  top: 0; bottom: 0;
  border-left: 1px solid rgba(255,255,255,0.2);
  border-right: 1px solid rgba(255,255,255,0.2);
}
.lcrop-rect-overlay::after {
  top: 33.33%; height: 33.34%;
  left: 0; right: 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* ======== LISTING LIVE PREVIEW ======== */
.listing-live-preview {
  margin-top: 24px;
}
.listing-live-preview-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-light);
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}
.listing-live-preview-label .material-icons-round { font-size: 18px; }
.listing-live-preview-gallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  box-shadow: var(--shadow-md);
}
.listing-live-preview-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.listing-live-preview-track::-webkit-scrollbar { display: none; }
.listing-live-preview-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  background: var(--bg-alt);
}
.listing-live-preview-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.listing-live-preview-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  opacity: 0;
  transition: opacity 0.2s;
  color: var(--dark);
}
.listing-live-preview-gallery:hover .listing-live-preview-arrow { opacity: 1; }
.listing-live-preview-arrow:hover { background: #fff; }
.listing-live-preview-arrow.prev { left: 12px; }
.listing-live-preview-arrow.next { right: 12px; }
.listing-live-preview-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.listing-live-preview-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none; padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.listing-live-preview-dot.active {
  background: #fff; transform: scale(1.3);
}
.listing-live-preview-counter {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 13px; font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 5;
}
.upload-hint { font-size: 0.78rem !important; color: var(--text-light) !important; margin-top: 4px; }
.cover-preview { margin-top: 12px; }
.cover-preview-img {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  max-height: 200px; margin-top: 8px;
}
.cover-preview-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.cover-preview-img button {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.6); color: #fff; border: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
}
.cover-preview-img button:hover { background: rgba(0,0,0,0.8); }

/* ======== PROFILE EDIT ======== */
.profile-edit { padding-bottom: 80px; }
.profile-photo-edit {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.profile-photo-edit img { width: 100px; height: 100px; border-radius: 50%; }

/* ======== ROLE TOGGLE ======== */
.role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition: all var(--transition);
}
.role-btn:hover { border-color: var(--dark); }
.role-btn.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.role-btn .material-icons-round { font-size: 28px; }

/* ======== MODALS ======== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: modalIn 0.25s ease;
}
.modal-sm { max-width: 420px; }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-light);
  transition: background var(--transition);
}
.modal-close:hover { background: var(--bg-alt); }
.modal-header { text-align: center; margin-bottom: 24px; }
.modal-icon { font-size: 48px; color: var(--primary); margin-bottom: 8px; }
.modal-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--dark); }
.modal-header p { font-size: 0.9rem; color: var(--text-light); margin-top: 4px; }
.modal-form { display: flex; flex-direction: column; gap: 0; }
.modal-form .form-group { margin-bottom: 14px; }

/* Money Input */
.money-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color var(--transition);
}
.money-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.money-currency {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-right: 8px;
  user-select: none;
}
.money-input-wrap input {
  border: none !important;
  background: transparent !important;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  width: 100%;
  outline: none;
  padding: 0 !important;
  line-height: 1;
}
.money-input-wrap input::placeholder {
  color: var(--border);
  font-weight: 600;
}
.money-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.money-chip {
  flex: 1;
  padding: 8px 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.money-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.money-chip:active {
  transform: scale(0.95);
}

.modal-divider {
  text-align: center;
  margin: 16px 0;
  position: relative;
}
.modal-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  border-top: 1px solid var(--border-light);
}
.modal-divider span {
  background: var(--bg);
  padding: 0 16px;
  font-size: 0.82rem;
  color: var(--text-light);
  position: relative;
}
.modal-footer-text {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 16px;
}
.modal-footer-text a { color: var(--primary); font-weight: 600; }
.modal-footer-text a:hover { text-decoration: underline; }

/* ---- Passwort-Wrapper + Toggle ---- */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrapper input {
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-light);
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
  background: none;
  border: none;
}
.password-toggle:hover {
  color: var(--dark);
  background: var(--bg-alt);
}
.password-toggle .material-icons-round { font-size: 20px; }

/* ---- Passwortstärke-Anzeige ---- */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.pw-bar {
  flex: 1;
  height: 4px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}
.pw-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0;
}
.pw-bar-fill.pw-weak   { background: #E53935; }
.pw-bar-fill.pw-fair    { background: #FB8C00; }
.pw-bar-fill.pw-good    { background: #43A047; }
.pw-bar-fill.pw-strong  { background: #00897B; }
.pw-label {
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 40px;
  color: var(--text-light);
}

/* ---- Formular-Validierung ---- */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea,
.has-error .password-wrapper input {
  border-color: #E53935;
}
.form-group.has-error input:focus,
.has-error .password-wrapper input:focus {
  border-color: #E53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}
.field-error {
  display: block;
  font-size: 0.78rem;
  color: #E53935;
  margin-top: 4px;
  line-height: 1.3;
}
.check-label.has-error {
  color: #E53935;
}

/* ---- Button Loading ---- */
.btn-loading {
  opacity: 0.85;
  pointer-events: none;
  min-height: 48px;
}
.btn-spinner {
  animation: spin 0.8s linear infinite;
  font-size: 22px !important;
}

/* ---- Forgot-Link ---- */
.forgot-link {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 16px;
  text-align: right;
  transition: color var(--transition);
}
.forgot-link:hover {
  color: var(--primary);
  text-decoration: underline;
}
.passkey-note {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-light);
  text-align: center;
  margin: 10px 0 2px;
}
.passkey-note.is-disabled {
  color: #B45309;
}
.passkey-setup-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.passkey-setup-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
}
.passkey-setup-point .material-icons-round {
  color: var(--accent);
  font-size: 20px;
  margin-top: 1px;
}
.passkey-setup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- Forgot-Erfolg ---- */
.forgot-success {
  text-align: center;
  font-size: 0.9rem;
  color: #43A047;
  background: #E8F5E9;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  line-height: 1.5;
.otp-code-input {
  text-align: center;
  letter-spacing: 0.45em;
  font-size: 1.35rem !important;
  font-weight: 700;
}
.otp-login-note {
  margin: 2px 0 16px;
}
.otp-resend-btn {
  margin-top: 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
}

/* Negotiation Listing Info */
.neg-listing-info {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.neg-listing-info img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; }
.neg-listing-info strong { display: block; font-size: 0.9rem; color: var(--dark); }
.neg-listing-info span { font-size: 0.82rem; color: var(--text-light); }

/* ======== TOAST ======== */
.toast {
  position: fixed;
  bottom: calc(var(--mobile-nav-height) + 24px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-icon { font-size: 22px; }

/* Communication Warning */
.comm-warning {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFF3E0;
  border: 1px solid #FFD54F;
  color: #E65100;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 12px;
  max-width: 600px;
  width: calc(100% - 48px);
  z-index: 3001;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.comm-warning .material-icons-round { font-size: 24px; flex-shrink: 0; }
.comm-warning p { font-size: 0.82rem; flex: 1; margin: 0; }
.comm-warning button {
  flex-shrink: 0;
  color: #E65100;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
  .hero-marquee { display: none; }
  .hero-content h1 { font-size: 2.5rem; }
  .how-it-works { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { order: -1; }
  .booking-card { position: static; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  /* Navigation */
  .nav-search { display: none; }
  .nav-link { display: none; }
  .mobile-nav { display: flex; }
  body { padding-bottom: 0; }
  .nav-inner { padding: 0 16px; }
  .logo { font-size: 1.2rem; }
  .logo-icon { font-size: 1.5rem; }
  .nav-avatar { padding: 4px 4px 4px 10px; }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 0;
    flex-direction: column;
    overflow: hidden;
  }
  .hero-marquee {
    display: block !important;
    position: relative;
    width: 100%;
    height: auto;
    top: auto;
    left: auto !important;
    right: auto !important;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    padding: 8px 0;
  }
  .hero-marquee-left { display: none !important; }
  .hero-marquee-right { order: 3; }
  .hero-content { padding: 20px 16px; order: 2; }
  .hero-marquee-track {
    flex-direction: row !important;
    gap: 10px !important;
    flex-wrap: nowrap;
  }
  .hero-marquee-left .hero-marquee-track {
    animation: marqueeLeft 20s linear infinite !important;
  }
  .hero-marquee-right .hero-marquee-track {
    animation: marqueeRight 24s linear infinite !important;
  }
  .hero-marquee-card {
    width: 130px !important;
  }
  .hero-marquee-card img {
    height: 80px !important;
  }
  .hero-marquee-card-info {
    padding: 6px 8px !important;
  }
  .hero-marquee-card-info h4 {
    font-size: 0.68rem !important;
  }
  .hero-marquee-card-info span {
    font-size: 0.6rem !important;
  }
  .hero-content h1 { font-size: 2rem; line-height: 1.15; margin-bottom: 12px; }
  .hero-content p { font-size: 0.95rem; margin-bottom: 20px; }

  /* Hero Search – mobile compact card */
  .hero-search {
    border-radius: 16px !important;
    padding: 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    border: 1px solid #ddd !important;
    overflow: visible;
    text-align: center;
    max-width: 100%;
  }
  .hero-search-glow {
    border-radius: 18px !important;
  }
  .hero-search-row {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    border-radius: 16px;
    overflow: hidden;
  }
  .hero-field-divider {
    width: 100%;
    height: 1px;
    background: var(--border-light);
  }
  .hero-field {
    padding: 12px 16px;
    border-radius: 0;
    flex: none;
    background: var(--bg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-field label {
    font-size: 0.65rem;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
    color: var(--dark);
    text-align: center;
    display: block;
    width: 100%;
  }
  .hero-field-ai label {
    justify-content: center;
  }
  .hero-date-display { text-align: center; }
  .cal-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 32px);
    max-width: 340px;
    padding: 16px;
    z-index: 9999;
    animation: none;
  }
  .cal-dropdown.show {
    display: block;
  }
  .hero-field input,
  .hero-field select {
    font-size: 0.9rem;
    padding: 4px 0;
    line-height: 1.3;
    color: var(--text);
    text-align: center !important;
    width: 100%;
    border: none !important;
    background: transparent !important;
  }
  .hero-field select {
    text-align: center !important;
    text-align-last: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23717171' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 4px center !important;
    background-size: 10px !important;
    padding-right: 18px;
  }
  .hero-field input::placeholder {
    color: var(--text-light);
    font-size: 0.88rem;
    text-align: center;
  }
  .hero-search-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    border-radius: 0 !important;
    margin: 0;
    font-size: 0.95rem;
    gap: 6px;
    font-weight: 600;
    height: auto !important;
    box-shadow: none !important;
  }
  .hero-search-btn span:last-child { display: inline !important; }
  .hero-search-btn .material-icons-round {
    font-size: 20px;
  }

  /* Category picker mobile */
  .ai-suggestions {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    z-index: 9999;
    max-height: 60vh;
    overflow-y: auto;
  }
  .ai-suggestions.show {
    transform: translateY(0);
    opacity: 1;
  }
  .ai-cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .ai-cat-chip {
    padding: 10px 4px;
  }
  .ai-cat-emoji {
    font-size: 1.3rem;
  }
  .ai-cat-label {
    font-size: 0.65rem;
  }
  .ai-selected-tags {
    padding: 0 16px;
  }

  /* Sections */
  .section { padding: 36px 0; }
  .container { padding: 0 16px; }
  .section-title { font-size: 1.25rem; margin-bottom: 20px; }

  /* Category Chips */
  .category-scroll {
    gap: 8px;
    padding-bottom: 8px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .cat-chip { padding: 10px 14px; font-size: 0.82rem; }
  .cat-chip .material-icons-round { font-size: 16px; }

  /* Listing Cards */
  .listing-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  .listing-card-body { padding: 10px 2px; }
  .listing-card-title { font-size: 0.95rem; }
  .listing-card-price { font-size: 0.95rem; }

  /* How it works */
  .how-it-works { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step-card { padding: 20px 12px; }
  .step-icon { width: 56px; height: 56px; margin-bottom: 14px; }
  .step-icon .material-icons-round { font-size: 26px; }
  .step-card h3 { font-size: 1rem; }
  .step-card p { font-size: 0.85rem; }

  /* Testimonials */
  .testimonials { gap: 16px; }
  .testimonial-card { padding: 20px; }
  .testimonial-card p { font-size: 0.9rem; margin-bottom: 16px; }

  /* CTA */
  .section-cta { padding: 48px 0; }
  .section-cta h2 { font-size: 1.5rem; }
  .section-cta p { font-size: 0.95rem; margin-bottom: 24px; }
  .btn-lg { padding: 14px 24px; font-size: 1rem; }

  /* Footer */
  .footer { padding: 40px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Browse */
  .browse-header { padding: 10px 0 8px; }
  .browse-search-row { margin-bottom: 8px; padding: 0 12px; }
  .browse-search-row input { padding: 10px 0; font-size: 0.9rem; }
  .filter-chips { gap: 6px; }
  .filter-chip { padding: 0 10px; }
  .filter-chip select, .filter-chip input { padding: 7px 0; font-size: 0.78rem; }
  .filter-chip input { width: 60px; }
  .filter-tags { margin-top: 8px; }
  .browse-results-header { flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px 0 12px; }

  /* Aktuelles Feed */
  .feed-header { padding: 14px 0 6px; }
  .feed-title { font-size: 1.25rem; }
  .feed-location-badge { padding: 4px 10px; font-size: 0.72rem; }
  .feed-card-image { aspect-ratio: 16/7; max-height: 220px; }

  /* Detail mobile restructure */
  .detail-container {
    display: flex;
    flex-direction: column;
  }
  .detail-container > .back-btn { order: 1; }
  .detail-container > .detail-gallery { order: 2; margin-bottom: 16px; }
  .detail-container > .detail-header { order: 3; margin-bottom: 16px; }
  .detail-container > .detail-hero-img { order: 4; display: block; margin-bottom: 16px; }
  .detail-container > .detail-provider-row { order: 5; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
  .detail-container > .detail-layout { order: 6; }

  .detail-gallery { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
  .detail-gallery-arrow { display: none !important; }
  .listing-live-preview-gallery { aspect-ratio: 4 / 3; }
  .listing-live-preview-arrow { display: none !important; }
  .detail-features { grid-template-columns: 1fr; }
  .detail-provider-row { flex-wrap: wrap; }
  .detail-provider-row .btn-outline { margin-left: 0; width: 100%; justify-content: center; }

  /* Provider */
  .provider-cover-gallery { height: 260px; }
  .pcg-show-all { bottom: 10px; right: 10px; width: 38px; height: 38px; font-size: 20px; }
  .provider-profile-card { flex-direction: column; text-align: center; margin-top: -32px; padding: 20px; gap: 16px; }
  .ppc-center h1 { font-size: 1.4rem; }
  .ppc-badges { justify-content: center; }
  .provider-stats-ring { justify-content: center; }
  .provider-two-col { grid-template-columns: 1fr; gap: 24px; }
  .provider-sidebar-col { position: static; }
  .provider-highlights { grid-template-columns: 1fr; }
  .provider-portfolio { grid-template-columns: repeat(2, 1fr); }
  .provider-action-bar { justify-content: center; flex-wrap: wrap; padding: 0 8px; }
  .provider-action-bar .btn-primary,
  .provider-action-bar .btn-outline { flex: 1; justify-content: center; padding: 8px 12px; font-size: 0.8rem; min-width: 0; }
  .provider-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab { padding: 12px 16px; font-size: 0.88rem; white-space: nowrap; }

  /* Chat */
  #page-messages.active {
    background: var(--bg-alt);
  }
  .chat-layout { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
  .chat-sidebar { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .chat-sidebar.hidden { display: none; }
  .chat-main { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .chat-main.hidden { display: none; }
  .chat-active { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .chat-back-btn { display: flex; }
  .chat-messages { padding: 14px; }
  .msg { max-width: 85%; font-size: 0.88rem; padding: 10px 14px; }
  .msg-offer { max-width: 92%; padding: 12px 16px; }
  .negotiation-banner { padding: 10px 14px; flex-direction: column; align-items: flex-start; }
  .neg-actions { width: 100%; }
  .neg-actions .btn-sm { flex: 1; justify-content: center; }

  /* Dashboard / Profil */
  .dashboard-header { padding: 20px 0 12px; }
  .dashboard-header h1 { font-size: 1.5rem; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-stat-card { padding: 16px; gap: 12px; }
  .dash-stat-card .material-icons-round { font-size: 26px; }
  .dash-stat-card strong { font-size: 1.3rem; }
  .dashboard-grid { gap: 16px; padding-bottom: 80px; }
  .dash-card { padding: 16px; }
  .profile-cover { height: 200px; }
  .profile-hero { flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-top: -48px; }
  .profile-avatar { width: 96px; height: 96px; }
  .profile-display-name { font-size: 1.4rem; }
  .profile-name-row, .profile-tagline-row { justify-content: center; }
  .profile-meta { justify-content: center; }
  .profile-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .profile-stat { border-bottom: 1px solid var(--border-light); }
  .profile-stat:nth-last-child(-n+2) { border-bottom: none; }
  .profile-gallery { grid-template-columns: repeat(2, 1fr); }
  .profile-services-grid { grid-template-columns: 1fr; }
  .settings-title { font-size: 1.4rem; margin-top: 20px; }
  .settings-card { padding: 20px 16px; }
  .settings-card-header h2 { font-size: 1.05rem; }
  .settings-passkey-item { flex-direction: column; }
  .settings-passkey-remove { width: 100%; justify-content: center; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .form-row-time { grid-template-columns: 1fr 1fr; }
  .duration-group { max-width: 200px; }
  .checkbox-group { grid-template-columns: 1fr 1fr; }
  .role-toggle { grid-template-columns: 1fr 1fr; }
  .upload-preview { grid-template-columns: repeat(3, 1fr); }
  .create-title { font-size: 1.4rem; margin-top: 20px; }
  .create-subtitle { margin-bottom: 20px; }
  .upload-zone { padding: 32px 16px; }

  /* Modal */
  .modal { padding: 24px 20px; border-radius: var(--radius-md); max-height: 85vh; }
  .modal-header h2 { font-size: 1.2rem; }
  .modal-overlay { padding: 16px; }

  /* Toast */
  .toast { bottom: calc(var(--mobile-nav-height) + 16px); font-size: 0.85rem; padding: 12px 20px; }
}

@media (max-width: 480px) {
  /* Hero */
  .hero { padding: 16px 0; }
  .hero-content { padding: 16px 12px; }
  .hero-content h1 { font-size: 1.6rem; letter-spacing: -0.5px; }
  .hero-content p { font-size: 0.9rem; margin-bottom: 16px; }
  .hero-search { padding: 0 !important; }
  .hero-field { padding: 10px 12px; }
  .hero-field label { font-size: 0.62rem; }
  .hero-field input,
  .hero-field select { font-size: 0.88rem; }
  .hero-search-btn { padding: 12px; font-size: 0.9rem; }

  /* Sections */
  .section { padding: 28px 0; }
  .container { padding: 0 12px; }
  .section-title { font-size: 1.15rem; margin-bottom: 16px; }

  /* Cards & Grids */
  .listing-grid { grid-template-columns: 1fr; gap: 20px; }
  .how-it-works { grid-template-columns: 1fr; gap: 12px; }
  .step-card { padding: 16px 12px; }
  .testimonials { grid-template-columns: 1fr; }
  .testimonial-card { padding: 16px; }

  /* Dashboard / Profil */
  .dashboard-stats { grid-template-columns: 1fr; }
  .dash-stat-card { padding: 14px; }
  .dashboard-header h1 { font-size: 1.3rem; }
  .profile-cover { height: 160px; }
  .profile-hero { margin-top: -40px; }
  .profile-avatar { width: 80px; height: 80px; }
  .profile-display-name { font-size: 1.2rem; }
  .profile-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .profile-stat strong { font-size: 1.2rem; }
  .profile-section { padding: 24px 0; }
  .profile-section-header h2 { font-size: 1.1rem; }
  .profile-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .profile-edit-field { padding: 12px; }
  .profile-edit-field input { min-width: 100%; }

  /* Forms */
  .checkbox-group { grid-template-columns: 1fr; }
  .upload-preview { grid-template-columns: repeat(3, 1fr); }
  .upload-zone { padding: 24px 12px; }
  .upload-zone .material-icons-round { font-size: 36px; }

  /* Provider */
  .provider-cover-gallery { height: 200px; }
  .pcg-show-all { bottom: 8px; right: 8px; width: 36px; height: 36px; font-size: 18px; }
  .plb-nav { width: 44px; height: 44px; font-size: 26px; }
  .plb-prev { left: 6px; }
  .plb-next { right: 6px; }
  .provider-profile-card { margin-top: -24px; padding: 16px; gap: 12px; }
  .ppc-center h1 { font-size: 1.2rem; }
  .ppc-right { width: 100%; }
  .provider-stats-ring { gap: 10px; }
  .stat-ring { min-width: 60px; padding: 10px 12px; }
  .stat-ring strong { font-size: 1.15rem; }
  .provider-avatar-lg { width: 80px; height: 80px; }
  .provider-bio { font-size: 0.88rem; }
  .provider-portfolio { grid-template-columns: repeat(2, 1fr); }

  /* Detail */
  .detail-header h1 { font-size: 1.3rem; }

  /* Chat */
  .chat-input-bar { padding: 10px 12px; gap: 8px; }
  .chat-input-bar input { padding: 10px 14px; font-size: 0.88rem; }
  .msg-offer { padding: 12px 16px; max-width: 90%; }
  .msg-offer .offer-amount { font-size: 1.3rem; }

  /* CTA */
  .section-cta { padding: 36px 0; }
  .section-cta h2 { font-size: 1.3rem; }
  .section-cta p { font-size: 0.88rem; }
  .btn-lg { padding: 12px 20px; font-size: 0.95rem; }

  /* Footer */
  .footer { padding: 32px 0 16px; }
  .footer-col h4 { font-size: 0.8rem; margin-bottom: 12px; }
  .footer-col a { font-size: 0.85rem; }
  .footer-bottom { font-size: 0.8rem; }

  /* Modal */
  .modal { padding: 20px 16px; }
  .modal-header h2 { font-size: 1.1rem; }
  .modal-icon { font-size: 36px; }
}

/* ======== Extra small screens (< 360px) ======== */
@media (max-width: 360px) {
  .hero-content h1 { font-size: 1.4rem; }
  .hero-content p { font-size: 0.85rem; }
  .hero-field { padding: 8px 10px; }
  .hero-search-btn span:last-child { display: inline; }
  .listing-card-title { font-size: 0.9rem; }
  .cat-chip { padding: 8px 10px; font-size: 0.78rem; }
  .section-title { font-size: 1.05rem; }
  .btn-primary { padding: 12px 18px; font-size: 0.9rem; }
  .step-icon { width: 48px; height: 48px; }
  .step-icon .material-icons-round { font-size: 22px; }
  .dash-stat-card strong { font-size: 1.1rem; }
  .dashboard-header h1 { font-size: 1.15rem; }
}

/* ======== SCROLLBAR ======== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ======== ANIMATIONS ======== */
@keyframes galleryReveal {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.listing-card { animation: fadeIn 0.4s ease backwards; }
.listing-card:nth-child(1) { animation-delay: 0.05s; }
.listing-card:nth-child(2) { animation-delay: 0.1s; }
.listing-card:nth-child(3) { animation-delay: 0.15s; }
.listing-card:nth-child(4) { animation-delay: 0.2s; }
.listing-card:nth-child(5) { animation-delay: 0.25s; }
.listing-card:nth-child(6) { animation-delay: 0.3s; }
.listing-card:nth-child(7) { animation-delay: 0.35s; }
.listing-card:nth-child(8) { animation-delay: 0.4s; }

/* ======== REVIEW SYSTEM ======== */
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.reviews-header h3 { margin: 0; }

/* Star Rating Picker */
.star-rating-picker {
  display: flex;
  gap: 8px;
  margin: 8px 0 4px;
}
.star-pick {
  font-size: 2rem;
  cursor: pointer;
  color: var(--border);
  transition: color 0.15s, transform 0.15s;
  user-select: none;
}
.star-pick:hover,
.star-pick.active {
  color: #FBBF24;
  transform: scale(1.15);
}
.star-rating-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2px;
  min-height: 1.2em;
}

/* ======== MY LISTINGS PAGE ======== */
.my-listings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-top: 24px;
}
.my-listings-header h1 { margin: 0; }

.my-listing-card {
  display: flex;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  background: var(--bg);
  transition: box-shadow var(--transition);
}
.my-listing-card:hover {
  box-shadow: var(--shadow-md);
}

/* ======== COOKIE CONSENT BANNER ======== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 28px;
}
.cookie-banner-text {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.cookie-banner-icon {
  font-size: 28px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-banner-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.cookie-banner-text p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-category:hover {
  background: var(--border-light);
}
.cookie-cat-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 600;
}
.cookie-cat-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: background 0.25s ease;
  cursor: pointer;
}
.cookie-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.cookie-toggle input:checked + .cookie-slider {
  background: var(--primary);
}
.cookie-toggle input:checked + .cookie-slider::before {
  transform: translateX(20px);
}
.cookie-toggle-required .cookie-slider {
  background: var(--primary);
  opacity: 0.6;
  cursor: default;
}
.cookie-toggle-required .cookie-slider::before {
  transform: translateX(20px);
}
.cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .cookie-banner-inner { padding: 20px 16px; }
  .cookie-banner-text { flex-direction: column; gap: 8px; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions button { width: 100%; justify-content: center; }
}

/* ======== VERIFY MODAL ======== */
.verify-modal-body {
  text-align: center;
  padding-top: 8px;
}
.verify-passkey-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.05rem;
  padding: 16px 24px;
}
.verify-passkey-btn .material-icons-round {
  font-size: 24px;
}
.verify-hint {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 10px;
}
.verify-email-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
.verify-email-hint .material-icons-round {
  font-size: 28px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.verify-email-hint p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}
.my-listing-img {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.my-listing-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.my-listing-img .status-badge {
  position: absolute;
  top: 8px;
  left: 8px;
}
.my-listing-info {
  flex: 1;
  min-width: 0;
}
.my-listing-info h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.my-listing-info p {
  margin: 0 0 2px;
  color: var(--text-light);
  font-size: 0.9rem;
}
.my-listing-price {
  font-weight: 600;
  color: var(--dark);
}
.my-listing-stats {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.my-listing-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.my-listing-stats .material-icons-round {
  font-size: 16px;
}
.my-listing-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: center;
  flex-shrink: 0;
}
.btn-danger-outline {
  color: #E53E3E !important;
  border-color: #FED7D7 !important;
}
.btn-danger-outline:hover {
  background: #FFF5F5 !important;
  border-color: #E53E3E !important;
}

.my-listings-empty,
.favorites-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.my-listings-empty .material-icons-round,
.favorites-empty .material-icons-round {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.my-listings-empty h3,
.favorites-empty h3 {
  color: var(--dark);
  margin-bottom: 8px;
}
.my-listings-empty p,
.favorites-empty p {
  margin-bottom: 20px;
  max-width: 360px;
}

/* Legal Pages */
.legal-page { max-width: 800px; margin: 0 auto; padding: 40px 24px 80px; }
.legal-page h1 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.legal-page .legal-date { color: var(--text-light); font-size: 0.85rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-top: 28px; margin-bottom: 8px; }
.legal-page p { color: var(--text); line-height: 1.7; margin-bottom: 12px; }
.legal-page ul { margin: 0 0 12px 24px; color: var(--text); line-height: 1.7; }
.legal-page li { margin-bottom: 4px; }

.my-listings-preview-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.92rem;
  color: var(--dark);
}
.my-listings-preview-banner .material-icons-round {
  font-size: 22px;
  color: var(--accent);
}
.my-listings-preview-banner a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

/* ======== FAVORITES PAGE ======== */
.favorites-title {
  padding-top: 24px;
  margin-bottom: 24px;
}

/* ======== RESPONSIVE: My Listings ======== */
@media (max-width: 768px) {
  .my-listing-card {
    flex-direction: column;
  }
  .my-listing-img {
    width: 100%;
    height: 160px;
  }
  .my-listing-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .my-listings-header {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
}

/* ======== RESPONSIVE: Feature Tags ======== */
@media (max-width: 768px) {
  .feature-tag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .feature-tag-grid.collapsed .feature-tag:nth-child(n+9) {
    display: none;
  }
  .feature-tag-grid.collapsed .feature-tag.selected {
    display: inline-flex;
  }
  .feature-tag {
    font-size: 0.78rem;
    padding: 7px 10px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .feature-tags-toggle {
    display: block;
  }
  .feature-search-wrap input {
    font-size: 0.9rem; padding: 9px 12px 9px 36px;
  }
  .feature-search-icon { font-size: 18px; left: 10px; }
  .feature-tag-custom {
    flex-direction: column;
  }
  .feature-tag-custom .btn-outline { width: 100%; justify-content: center; }
}
/* ========== ADMIN PANEL ========== */
.admin-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.admin-title .material-icons-round {
  font-size: 32px;
  color: var(--primary);
}
.admin-subtitle {
  color: var(--text-light);
  margin-bottom: 24px;
}
.admin-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 20px;
}
.admin-search-bar .material-icons-round {
  color: var(--text-light);
  font-size: 22px;
}
.admin-search-bar input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 0.95rem;
  outline: none;
  font-family: var(--font);
  color: var(--text);
}
.admin-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-stat {
  flex: 1;
  min-width: 120px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.admin-stat .material-icons-round {
  font-size: 24px;
  color: var(--primary);
}
.admin-stat strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}
.admin-stat span:last-child {
  font-size: 0.8rem;
  color: var(--text-light);
}
.admin-user-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: box-shadow 0.2s;
}
.admin-user-card:hover {
  box-shadow: var(--shadow-sm);
}
.admin-user-card.is-admin {
  border-left: 3px solid var(--primary);
}
.admin-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}
.admin-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-user-info {
  flex: 1;
  min-width: 0;
}
.admin-user-name {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-role-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.admin-role-badge.admin-role-admin {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.admin-user-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-user-counts {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-light);
}
.admin-user-counts span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.admin-user-counts .material-icons-round {
  font-size: 14px;
}
.admin-user-actions {
  flex-shrink: 0;
}
.admin-delete-btn {
  color: #e53935 !important;
  border-color: #e53935 !important;
}
.admin-delete-btn:hover {
  background: #fbe9e7 !important;
}
.admin-delete-btn .material-icons-round {
  font-size: 16px;
  vertical-align: middle;
}
.admin-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.admin-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}
.admin-error {
  text-align: center;
  padding: 40px;
  color: #e53935;
}
.admin-menu-btn {
  color: var(--primary) !important;
  font-weight: 600 !important;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

@media (max-width: 768px) {
  .admin-stats { gap: 8px; }
  .admin-stat { min-width: 70px; padding: 10px; }
  .admin-stat strong { font-size: 1.2rem; }
  .admin-user-card { flex-wrap: wrap; padding: 12px; }
  .admin-user-actions { width: 100%; margin-top: 8px; }
  .admin-user-actions button { width: 100%; justify-content: center; }
}
