/* ==========================================================
 * secondhandshop.lu — App Styles
 * Basiert auf dem Landing-Page-Design
 * ========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --c-cyan: #22d3ee;
  --c-blue: #3b82f6;
  --c-purple: #a855f7;
  --c-magenta: #ec4899;
  --c-orange: #f97316;
  --c-bg: #06060a;
  --c-bg-soft: #0d0d18;
  --c-bg-card: rgba(255, 255, 255, 0.025);
  --c-text: #ffffff;
  --c-text-muted: rgba(255, 255, 255, 0.6);
  --c-text-dim: rgba(255, 255, 255, 0.4);
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border-strong: rgba(255, 255, 255, 0.16);
  --c-success: #10b981;
  --c-error: #ef4444;
  --c-warning: #f59e0b;
  --gradient-main: linear-gradient(135deg, #22d3ee 0%, #a855f7 50%, #f97316 100%);
}

html, body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============= HEADER ============= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-logo img {
  height: 80px;
  width: auto;
  max-width: 320px;
  display: block;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}
.site-nav a {
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--c-text); }
.nav-cta {
  padding: 8px 16px;
  background: var(--gradient-main);
  color: white !important;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-quiet { color: var(--c-text-dim) !important; font-size: 13px !important; }

.lang-switcher {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-border);
  border-radius: 999px;
}
.lang-btn {
  padding: 4px 10px;
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.lang-btn:hover { color: var(--c-text); }
.lang-btn.active {
  background: var(--gradient-main);
  color: white;
}

/* ============= FLASH MESSAGES ============= */
.flash-stack {
  max-width: 560px;
  margin: 16px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flash {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  border: 1px solid var(--c-border);
  background: var(--c-bg-card);
}
.flash--success { border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.08); color: #6ee7b7; }
.flash--error   { border-color: rgba(239, 68, 68, 0.3);  background: rgba(239, 68, 68, 0.08);  color: #fca5a5; }
.flash--info    { border-color: rgba(34, 211, 238, 0.3); background: rgba(34, 211, 238, 0.08); color: #67e8f9; }
.flash--warning { border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.08); color: #fcd34d; }

/* ============= MAIN CONTENT ============= */
main {
  flex: 1;
  width: 100%;
}

/* ============= AUTH PAGES ============= */
.auth-wrap {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
}
.auth-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 40px 36px;
  background: rgba(13, 13, 24, 0.7);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.auth-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--c-text-muted);
  margin-bottom: 28px;
}

/* ============= FORMS ============= */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  color: var(--c-text);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.2s ease;
}
.form-input::placeholder { color: var(--c-text-dim); }
.form-input:focus {
  outline: none;
  border-color: var(--c-purple);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}
.form-input.is-invalid {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--c-text-muted);
  margin: 14px 0 22px;
  cursor: pointer;
}
.form-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--c-purple);
  cursor: pointer;
}
.form-checkbox a { color: var(--c-cyan); text-decoration: none; }
.form-checkbox a:hover { text-decoration: underline; }

.form-error {
  font-size: 12px;
  color: var(--c-error);
  margin-top: 6px;
}

/* ============= BUTTONS ============= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gradient-main);
  color: white;
  width: 100%;
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-border);
  color: var(--c-text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ============= AUTH FOOTER LINKS ============= */
.auth-meta {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--c-text-muted);
}
.auth-meta a {
  color: var(--c-cyan);
  text-decoration: none;
  font-weight: 500;
}
.auth-meta a:hover { text-decoration: underline; }
.auth-meta--right { text-align: right; margin: -8px 0 16px; }

/* ============= SITE FOOTER ============= */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 32px 24px;
  margin-top: 60px;
}
.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--c-text-muted);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-brand strong { color: var(--c-text); font-weight: 600; }
.footer-links {
  display: flex;
  gap: 18px;
  flex: 1;
  justify-content: center;
}
.footer-links a {
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--c-text); }
.footer-legal { font-size: 12px; color: var(--c-text-dim); }

/* ============= HEADER SEARCH ============= */
.header-search {
  position: relative;
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
}
.header-search__icon {
  position: absolute;
  left: 14px;
  color: var(--c-text-dim);
  pointer-events: none;
}
.header-search__input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 38px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  color: var(--c-text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}
.header-search__input::placeholder { color: var(--c-text-dim); }
.header-search__input:focus {
  outline: none;
  border-color: var(--c-cyan);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

/* ============= LISTING CARD GRID (used in browse.php and index.php) ============= */
.card-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.card-grid--home {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(13, 13, 24, 0.7);
  border: 1px solid var(--c-border);
  transition: all 0.25s;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.15);
}
.card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card__photo {
  width: 100%;
  aspect-ratio: 1;
  background: #0a0a14;
  position: relative;
  overflow: hidden;
}
.card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__photo img { transform: scale(1.04); }
.card__no-photo {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 32px; opacity: 0.3;
}
.card__cond {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.card__body { padding: 12px 14px 14px; }
.card__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 6px;
}
.card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.card__price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card__vb {
  font-size: 10px;
  font-weight: 500;
  color: var(--c-text-muted);
  -webkit-text-fill-color: var(--c-text-muted);
}
.card__loc {
  font-size: 12px;
  color: var(--c-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 720px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    row-gap: 10px;
  }
  /* Zeile 1: Logo links + Lang-Switcher rechts */
  .site-logo {
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
  }
  .site-logo img { height: 80px; max-width: 280px; }
  .lang-switcher {
    order: 2;
    flex: 0 0 auto;
    flex-shrink: 0;
  }
  /* Zeile 2: Suchfeld voll — erzwungener Umbruch in allen Browsern (Safari/Firefox) */
  .header-search {
    order: 3;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    flex: 0 0 100% !important;
  }
  /* Zeile 3: Nav-Items voll, kein Wrap, gleichmässig verteilt */
  .site-nav {
    order: 4;
    width: 100% !important;
    flex: 0 0 100% !important;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .site-nav a {
    font-size: 14px;
    padding: 6px 2px;
    white-space: nowrap;
  }
  .nav-cta {
    padding: 7px 14px;
    flex-shrink: 0;
  }
  .auth-card { padding: 28px 22px; }
  .auth-title { font-size: 24px; }
  .site-footer__inner { flex-direction: column; text-align: center; gap: 14px; }
  .footer-links { flex-wrap: wrap; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}

/* Sehr schmale Geräte (iPhone SE, kleine Androids) */
@media (max-width: 380px) {
  .site-logo img { height: 70px; max-width: 240px; }
  .lang-btn { padding: 4px 8px; font-size: 11px; }
  .site-nav { gap: 6px; }
  .site-nav a { font-size: 13px; padding: 6px 0; }
  .nav-cta { padding: 6px 12px; font-size: 13px; }
}

/* ===========================================================================
 * DASHBOARD + ADMIN-PANEL (shared classes)
 * Wird von dashboard.php, admin/index.php und admin/geocode.php genutzt.
 * =========================================================================== */
.dash-wrap { padding: 32px 24px 80px; }
.dash-container { max-width: 1200px; margin: 0 auto; }
.dash-header { margin-bottom: 24px; }
.dash-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dash-subtitle { color: var(--c-text-muted); margin-top: 4px; font-size: 15px; }

/* ============ TABS ============ */
.dash-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all 0.15s;
}
.dash-tab:hover { color: var(--c-text); }
.dash-tab.active { color: var(--c-cyan); border-bottom-color: var(--c-cyan); }
.dash-tab--admin { color: var(--c-orange); margin-left: auto; }
.dash-tab--admin:hover { color: var(--c-orange); }
.dash-tab__badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  margin-left: 4px;
}
.dash-tab.active .dash-tab__badge { background: rgba(34, 211, 238, 0.2); color: var(--c-cyan); }

/* ============ STATS GRID ============ */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.dash-stat {
  padding: 20px;
  background: rgba(13, 13, 24, 0.7);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.dash-stat__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 6px;
}
.dash-stat__value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
}
.dash-stat__sub { font-size: 14px; color: var(--c-text-muted); font-weight: 400; }

.dash-cta-card {
  padding: 28px;
  background: rgba(13, 13, 24, 0.7);
  border: 1px solid var(--c-border);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.dash-cta-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  margin-bottom: 8px;
}
.dash-cta-card p { color: var(--c-text-muted); margin-bottom: 18px; line-height: 1.55; }

/* ============ FILTER NAV ============ */
.dash-filter-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.dash-filter {
  padding: 6px 14px;
  font-size: 13px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  color: var(--c-text);
  text-decoration: none;
  transition: all 0.15s;
}
.dash-filter:hover { border-color: var(--c-purple); }
.dash-filter.active { background: rgba(34, 211, 238, 0.15); border-color: var(--c-cyan); color: var(--c-cyan); }

/* ============ MEINE ANZEIGEN LIST ============ */
.dash-listings { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.dash-listing {
  display: flex;
  gap: 16px;
  padding: 14px;
  background: rgba(13, 13, 24, 0.7);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  transition: all 0.2s;
}
.dash-listing:hover { border-color: rgba(168, 85, 247, 0.4); }
.dash-listing__photo {
  width: 100px; height: 100px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0a0a14;
  display: block;
}
.dash-listing__photo img { width: 100%; height: 100%; object-fit: cover; }
.dash-listing__no-photo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 28px; opacity: 0.4; }
.dash-listing__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.dash-listing__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dash-listing__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--c-text);
  text-decoration: none;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-listing__title:hover { color: var(--c-cyan); }
.dash-listing__status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.dash-listing__status--active   { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.dash-listing__status--draft    { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.dash-listing__status--pending  { background: rgba(168, 85, 247, 0.15); color: #c4b5fd; }
.dash-listing__status--sold     { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.dash-listing__status--expired  { background: rgba(255,255,255,0.08); color: var(--c-text-muted); }
.dash-listing__status--rejected { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

.dash-listing__meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--c-text-muted);
  flex-wrap: wrap;
  align-items: center;
}
.dash-listing__price {
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 14px;
}
.dash-listing__cat { font-weight: 600; color: var(--c-cyan); }
.dash-listing__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.dash-listing__btn {
  padding: 5px 12px;
  font-size: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-text);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.dash-listing__btn:hover { border-color: var(--c-cyan); }
.dash-listing__btn--danger:hover { border-color: var(--c-error); color: var(--c-error); }

@media (max-width: 640px) {
  .dash-listing { flex-direction: column; }
  .dash-listing__photo { width: 100%; height: 200px; }
}

/* === Admin-only === */
.dash-tab__badge--alert { background: rgba(239, 68, 68, 0.2) !important; color: #fca5a5 !important; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th, .admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}
.admin-table th {
  background: rgba(13,13,24,0.7);
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

/* === Cron-Log Viewer === */
.cron-log {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  max-height: 600px;
  overflow-y: auto;
  padding: 12px 16px;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}
.cron-log__line {
  padding: 2px 0;
  color: rgba(255,255,255,0.75);
  white-space: pre-wrap;
  word-break: break-all;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.cron-log__line:last-child { border-bottom: none; }
.cron-log__line--start {
  color: #22d3ee;
  font-weight: 600;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(34,211,238,0.2);
}
.cron-log__line--end {
  color: #6ee7b7;
  font-weight: 500;
}
.cron-log__line--error {
  color: #fca5a5;
  background: rgba(239,68,68,0.08);
  padding: 4px 8px;
  margin: 2px -8px;
  border-radius: 6px;
}

/* ===========================================================================
 * PROFIL-SETTINGS (profile.php)
 * =========================================================================== */
.profile-section {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}
.profile-section--danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.04);
}
.profile-section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.profile-form { display: flex; flex-direction: column; gap: 14px; }
.profile-field { display: flex; flex-direction: column; gap: 6px; }
.profile-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
}
.profile-optional {
  font-weight: 400;
  font-size: 12px;
  opacity: 0.6;
  margin-left: 4px;
}
.profile-field input[type="text"],
.profile-field input[type="email"],
.profile-field input[type="password"],
.profile-field input[type="tel"],
.profile-field select {
  padding: 10px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  color: var(--c-text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.profile-field input:focus,
.profile-field select:focus {
  outline: none;
  border-color: var(--c-cyan);
}

.profile-error {
  color: #fca5a5;
  font-size: 13px;
  margin: 0;
}
.profile-hint {
  color: var(--c-text-muted);
  font-size: 13px;
  margin: 4px 0 0;
  line-height: 1.5;
}
.profile-current {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--c-text-muted);
}
.profile-pending {
  background: rgba(252, 211, 77, 0.08);
  border: 1px solid rgba(252, 211, 77, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #fcd34d;
  margin-bottom: 12px;
}

.profile-flash {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}
.profile-flash--success {
  background: rgba(110, 231, 183, 0.08);
  border: 1px solid rgba(110, 231, 183, 0.3);
  color: #6ee7b7;
}
.profile-flash--error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Avatar in profile.php */
.profile-avatar-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-card-elevated, rgba(255,255,255,0.06));
  border: 2px solid var(--c-border);
  flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar__fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px; font-weight: 700;
  background: linear-gradient(135deg, #22d3ee 0%, #a855f7 50%, #f97316 100%);
  color: #fff;
}
.profile-avatar-actions { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.profile-link-btn {
  background: none; border: none; padding: 0;
  color: var(--c-text-muted);
  font-size: 13px; cursor: pointer; text-decoration: underline;
  align-self: flex-start; font-family: inherit;
}
.profile-link-btn:hover { color: #fca5a5; }

.profile-details { margin-top: 8px; }
.profile-details summary {
  cursor: pointer;
  list-style: none;
  display: inline-block;
}
.profile-details summary::-webkit-details-marker { display: none; }

/* btn--danger Variante */
.btn--danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.btn--danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
}

/* Dashboard-Header mit Avatar */
.dash-header--with-avatar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.dash-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--c-border);
}
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-avatar__fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 700;
  background: linear-gradient(135deg, #22d3ee 0%, #a855f7 50%, #f97316 100%);
  color: #fff;
}
.dash-header-text { flex: 1; min-width: 0; }

@media (max-width: 600px) {
  .profile-avatar-row { flex-direction: column; align-items: stretch; }
  .profile-avatar { width: 80px; height: 80px; }
  .dash-avatar { width: 56px; height: 56px; }
  .dash-avatar__fallback { font-size: 24px; }
}

/* Verkäufer-Anzeige auf Listing-Page */
.listing-seller { display: inline-flex; align-items: center; gap: 8px; }
.listing-seller__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.listing-seller__avatar img { width: 100%; height: 100%; object-fit: cover; }
.listing-seller__avatar--fallback {
  background: linear-gradient(135deg, #22d3ee 0%, #a855f7 50%, #f97316 100%);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
}

/* ===========================================================================
 * INSTALL-BANNER (PWA Add-to-Homescreen)
 * =========================================================================== */
.install-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: 540px;
  width: calc(100% - 32px);
  background: rgba(10, 10, 20, 0.92);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(34, 211, 238, 0.1);
  animation: install-slide-up 0.4s ease-out;
}
@keyframes install-slide-up {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.install-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.install-banner__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.install-banner__icon img { width: 100%; height: 100%; display: block; }

.install-banner__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.install-banner__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.install-banner__sub {
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.3;
}

.install-banner__btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #22d3ee 0%, #a855f7 50%, #f97316 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, filter 0.15s;
}
.install-banner__btn:hover { transform: scale(1.02); filter: brightness(1.1); }

.install-banner__close {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.install-banner__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.install-banner__ios-help {
  padding: 0 16px 16px;
  border-top: 1px solid var(--c-border);
}
.install-banner__ios-help ol {
  margin: 12px 0 8px;
  padding-left: 24px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-text);
}
.install-banner__ios-help li { padding-left: 4px; margin-bottom: 4px; }
.install-icon-share {
  display: inline-block;
  width: 22px; height: 22px;
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 5px;
  text-align: center;
  line-height: 20px;
  font-size: 14px;
  color: #22d3ee;
  margin: 0 2px;
  vertical-align: middle;
}
.install-banner__ios-hint {
  font-size: 12px;
  color: var(--c-text-muted);
  margin: 6px 0 0;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .install-banner { bottom: 12px; }
  .install-banner__inner { padding: 12px; gap: 10px; }
  .install-banner__icon { width: 40px; height: 40px; }
  .install-banner__title { font-size: 13px; }
  .install-banner__sub { font-size: 11px; }
  .install-banner__btn { padding: 7px 12px; font-size: 12px; }
}

/* ===========================================================================
 * SHORT URL HINT (shs.lu Erwähnungen)
 * =========================================================================== */

/* Variant: large — für Hero / About / Install-Page */
.short-url-large {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: rgba(13, 13, 24, 0.6);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-wrap: wrap;
  justify-content: center;
}
.short-url-large__label {
  font-size: 13px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}
.short-url-large__url {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  text-decoration: none;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #22d3ee 0%, #a855f7 50%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.15s, filter 0.15s;
}
.short-url-large__url:hover { transform: scale(1.03); filter: brightness(1.15); }
.short-url-large__protocol {
  opacity: 0.4;
  font-weight: 500;
  font-size: 17px;
}
.short-url-large__hint {
  font-size: 12px;
  color: var(--c-text-muted);
  font-style: italic;
}

/* Variant: pill — kleine Pille im Header / Subtitle */
.short-url-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-cyan, #22d3ee);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.15s, border-color 0.15s;
}
.short-url-pill:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.5);
}

/* Variant: inline — Plain text im Footer / Hint */
.short-url-inline {
  font-size: 12px;
  color: var(--c-text-muted);
}
.short-url-inline strong {
  color: var(--c-cyan, #22d3ee);
  font-weight: 600;
}

/* Variant: badge — Standard Sticker-Look */
.short-url-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(168, 85, 247, 0.08), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 12px;
  font-size: 13px;
  color: var(--c-text);
}
.short-url-badge__icon { font-size: 14px; }
.short-url-badge strong {
  color: var(--c-cyan, #22d3ee);
  font-weight: 700;
}

/* Mobile-Friendly */
@media (max-width: 480px) {
  .short-url-large {
    padding: 12px 16px;
    gap: 8px;
    flex-direction: column;
  }
  .short-url-large__url { font-size: 20px; }
}

/* Share-Button auf Listing-Pages */
.listing-share-btn { display: inline-flex; align-items: center; gap: 6px; }
.listing-share-btn span:first-child {
  display: inline-block;
  font-size: 16px;
  transform: translateY(-1px);
}
.listing-share-btn:disabled { opacity: 0.85; cursor: default; }

/* ============ Admin-Filter-Bar (für /admin/?tab=listings) ============ */
.admin-filter {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(13, 13, 24, 0.6);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.admin-filter__input {
  flex: 1;
  min-width: 240px;
  padding: 9px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  color: var(--c-text);
  font-size: 14px;
  font-family: inherit;
}
.admin-filter__input:focus { outline: none; border-color: var(--c-cyan); }
.admin-filter__select {
  padding: 9px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  color: var(--c-text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}
.admin-filter__count {
  margin-left: auto;
  font-size: 12px;
  color: var(--c-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
@media (max-width: 600px) {
  .admin-filter__count { margin-left: 0; width: 100%; text-align: center; }
}

/* Profil: Checkbox-Field */
.profile-field--check { padding: 14px 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--c-border); border-radius: 12px; }
.profile-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.profile-check input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; accent-color: #22d3ee; cursor: pointer; }
.profile-check strong { font-size: 14px; font-weight: 600; }

/* ===========================================================================
 * SAFE-TRADE TIPPS auf Listing-Page
 * =========================================================================== */
.safe-trade { margin-top: 24px; }
.safe-trade__box {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.04), rgba(168, 85, 247, 0.04), rgba(249, 115, 22, 0.04));
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.safe-trade__box:hover { border-color: rgba(168, 85, 247, 0.3); }
.safe-trade__box[open] { border-color: rgba(168, 85, 247, 0.35); }

.safe-trade__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.safe-trade__head::-webkit-details-marker { display: none; }
.safe-trade__icon {
  font-size: 22px;
  filter: saturate(1.4);
}
.safe-trade__title {
  flex: 1;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.safe-trade__chev {
  font-size: 22px;
  color: var(--c-text-muted);
  transition: transform 0.2s;
  transform: rotate(0deg);
}
.safe-trade__box[open] .safe-trade__chev { transform: rotate(90deg); }

.safe-trade__list {
  list-style: none;
  padding: 0 20px 16px;
  margin: 0;
}
.safe-trade__list li {
  padding: 10px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--c-text-muted);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.safe-trade__list li:first-child { border-top: none; }
.safe-trade__list li strong {
  color: var(--c-text);
  font-weight: 600;
  margin-right: 2px;
}

.safe-trade__report {
  margin: 0;
  padding: 14px 20px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 12.5px;
  color: var(--c-text-muted);
  line-height: 1.5;
}
.safe-trade__report a,
.safe-trade__report-link {
  color: var(--c-cyan, #22d3ee);
  text-decoration: underline;
  cursor: pointer;
}
.safe-trade__report a:hover,
.safe-trade__report-link:hover { color: #67e8f9; }

@media (max-width: 480px) {
  .safe-trade__head { padding: 14px 16px; gap: 10px; }
  .safe-trade__title { font-size: 14px; }
  .safe-trade__list { padding: 0 16px 12px; }
}
