/* ════════════════════════════════════════════════
   verkaf.lu — Dark Mode Overrides
   Applied when <html data-theme="dark">
   Smooth transition on all colour properties
════════════════════════════════════════════════ */

*, *::before, *::after {
  transition:
    background-color 0.35s ease,
    border-color     0.35s ease,
    color            0.35s ease,
    box-shadow       0.35s ease;
}

/* ── TOGGLE BUTTON (topbar) ── */
.vkf-theme-btn {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
  flex-shrink: 0;
}
.vkf-theme-btn:hover { background: rgba(255,255,255,0.22); }

/* ════════ CSS VARIABLE OVERRIDES ════════
   html[data-theme="dark"] has specificity (0,1,1) which beats :root (0,1,0)
   so these variables always win even though dark.css loads before <style>.
══════════════════════════════════════════ */
html[data-theme="dark"] {
  --ink:        rgba(255,255,255,0.92);
  --ink-mid:    rgba(255,255,255,0.60);
  --muted:      rgba(255,255,255,0.40);
  --slate:      #34495A;
  --slate-light:rgba(255,255,255,0.50);
  --paper:      #162230;
  --cream:      #111d27;
  --page:       #0d1a24;        /* index.html body background */
  --line:       rgba(255,255,255,0.10);
  --green-bg:   rgba(45,122,68,0.20);
  --red-bg:     rgba(185,64,64,0.20);
}

/* ── Global text-colour fix: every element that had color:var(--slate) ──
   --slate is still dark blue as a background, so we must push text white. */
[data-theme="dark"] body,
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] label,
[data-theme="dark"] li,
[data-theme="dark"] td,
[data-theme="dark"] th,
[data-theme="dark"] div,
[data-theme="dark"] a     { color: inherit; }

/* Force all non-button text to white */
[data-theme="dark"] .logo,
[data-theme="dark"] .logo span,
[data-theme="dark"] .topbar-actions,
[data-theme="dark"] .lang-switch span,
[data-theme="dark"] .contact-meta,
[data-theme="dark"] .profile-meta,
[data-theme="dark"] .acc-location,
[data-theme="dark"] .acc-name,
[data-theme="dark"] .conv-name,
[data-theme="dark"] .conv-preview,
[data-theme="dark"] .conv-time,
[data-theme="dark"] .chat-user-name,
[data-theme="dark"] .chat-user-status,
[data-theme="dark"] .lr-title,
[data-theme="dark"] .lr-meta,
[data-theme="dark"] .d-label,
[data-theme="dark"] .d-value,
[data-theme="dark"] .description,
[data-theme="dark"] .seller-since,
[data-theme="dark"] .wc-label,
[data-theme="dark"] .hint,
[data-theme="dark"] .char-counter,
[data-theme="dark"] .upload-sub,
[data-theme="dark"] .submit-note,
[data-theme="dark"] .footer-col,
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .footer-tagline,
[data-theme="dark"] .ann-preview-title,
[data-theme="dark"] .pb-meta
{ color: rgba(255,255,255,0.55) !important; }

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .listing-title,
[data-theme="dark"] .title,
[data-theme="dark"] .card-title,
[data-theme="dark"] .lr-title,
[data-theme="dark"] .acc-name,
[data-theme="dark"] .conv-name,
[data-theme="dark"] .chat-user-name,
[data-theme="dark"] .seller-name,
[data-theme="dark"] .pb-title,
[data-theme="dark"] .sidebar-title,
[data-theme="dark"] .side-card-title,
[data-theme="dark"] .stat-num,
[data-theme="dark"] .wc-value,
[data-theme="dark"] .wallet-section-title
{ color: rgba(255,255,255,0.92) !important; }

/* ── Buttons: slate bg stays dark blue — text must be white ── */
[data-theme="dark"] .btn-secondary {
  color: rgba(255,255,255,0.88) !important;
  border-color: rgba(255,255,255,0.30) !important;
  background: transparent !important;
}
[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .btn-save {
  color: rgba(255,255,255,0.60) !important;
  border-color: rgba(255,255,255,0.18) !important;
  background: transparent !important;
}
[data-theme="dark"] .btn-primary {
  color: #fff !important;
}

/* ── Chat: sent bubble uses --slate (dark blue) bg, text must be white ──
   Received bubble uses --cream (now #111d27) — slightly lighter so it shows ── */
[data-theme="dark"] .msg .msg-bubble {
  background: #1e2f3d !important;
  color: rgba(255,255,255,0.88) !important;
}
[data-theme="dark"] .msg.mine .msg-bubble {
  background: #2a4a62 !important;
  color: rgba(255,255,255,0.95) !important;
}
[data-theme="dark"] .msg-meta { color: rgba(255,255,255,0.38) !important; }
[data-theme="dark"] .typing-dots { background: #1e2f3d !important; }
[data-theme="dark"] .send-btn { background: #34495A !important; color: #fff !important; }

/* ── Modal text ── */
[data-theme="dark"] .modal h3,
[data-theme="dark"] .modal label,
[data-theme="dark"] .modal .title,
[data-theme="dark"] .modal .original
{ color: rgba(255,255,255,0.88) !important; }

/* ════════ BASE ════════ */
[data-theme="dark"] body {
  background: #0d1a24;
  color: rgba(255,255,255,0.90);
}

/* ════════ TOPBAR ════════ */
[data-theme="dark"] header { background: #182535 !important; }
[data-theme="dark"] .topbar {
  background: #182535 !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .page-header { background: #182535 !important; }
[data-theme="dark"] .lang-switch span { color: rgba(255,255,255,0.45) !important; }
[data-theme="dark"] .lang-switch span.active { color: rgba(255,255,255,0.9) !important; }
[data-theme="dark"] .topbar * { transition: none; } /* prevent flash on topbar */
[data-theme="dark"] .btn-login,
[data-theme="dark"] .btn-register {
  color: rgba(255,255,255,0.75) !important;
  border-color: rgba(255,255,255,0.22) !important;
  background: transparent !important;
}
[data-theme="dark"] .btn-login:hover,
[data-theme="dark"] .btn-register:hover {
  background: rgba(255,255,255,0.08) !important;
}

/* ════════ HERO / SEARCH SECTION ════════ */
[data-theme="dark"] .hero-search {
  background: #0d1a24 !important;
  border-bottom-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .hero-search h2 { color: rgba(255,255,255,0.92) !important; }
[data-theme="dark"] .hero-search p  { color: rgba(255,255,255,0.48) !important; }
[data-theme="dark"] .search-wrap input,
[data-theme="dark"] .search-box input {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: rgba(255,255,255,0.9) !important;
}
[data-theme="dark"] .search-wrap input::placeholder,
[data-theme="dark"] .search-box input::placeholder { color: rgba(255,255,255,0.3) !important; }

/* ════════ CATEGORIES ════════ */
[data-theme="dark"] .cat-section,
[data-theme="dark"] .subcat-row {
  background: #0d1a24 !important;
  border-bottom-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .cat-label { color: rgba(255,255,255,0.72) !important; }
[data-theme="dark"] .cat-tile:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
[data-theme="dark"] .cat-tile.active {
  background: rgba(52,73,90,0.55) !important;
  border-color: rgba(255,255,255,0.2) !important;
}
[data-theme="dark"] .cat-tile.active .cat-label { color: #fff !important; }
[data-theme="dark"] .sub-chip {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.72) !important;
}
[data-theme="dark"] .sub-chip:hover {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.22) !important;
}
[data-theme="dark"] .sub-chip.active {
  background: #34495A !important;
  border-color: #34495A !important;
  color: #fff !important;
}
[data-theme="dark"] .sub-chip.all-chip {
  color: #C9A227 !important;
  border-color: rgba(201,162,39,0.4) !important;
  background: rgba(201,162,39,0.07) !important;
}

/* ════════ AD BANNER ════════ */
[data-theme="dark"] .ad-banner {
  background: #0a1520 !important;
  border-top-color: rgba(255,255,255,0.05) !important;
  border-bottom-color: rgba(255,255,255,0.05) !important;
}
[data-theme="dark"] .ad-slot,
[data-theme="dark"] .ad-slot-side {
  background: rgba(255,255,255,0.03) !important;
  border-color: rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.2) !important;
}

/* ════════ SECTION HEAD ════════ */
[data-theme="dark"] .section-head {
  background: #0d1a24 !important;
  border-bottom-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .section-head h2 { color: rgba(255,255,255,0.92) !important; }
[data-theme="dark"] .count            { color: rgba(255,255,255,0.38) !important; }
[data-theme="dark"] .sort-btn {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.55) !important;
}
[data-theme="dark"] .sort-btn.active {
  background: #34495A !important;
  border-color: #34495A !important;
  color: #fff !important;
}

/* ════════ HERO SEARCH ════════ */
[data-theme="dark"] .big-search input {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: rgba(255,255,255,0.9) !important;
}
[data-theme="dark"] .big-search input::placeholder { color: rgba(255,255,255,0.3) !important; }

/* ════════ SORT BAR ════════ */
[data-theme="dark"] .sort-bar {
  background: #0d1a24 !important;
  border-bottom-color: rgba(255,255,255,0.07) !important;
}

/* ════════ CARD GRID ════════ */
[data-theme="dark"] .card,
[data-theme="dark"] .card:not(.card-ad) {
  background: #162230 !important;
  border-color: rgba(255,255,255,0.07) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35) !important;
}
[data-theme="dark"] .card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.45) !important;
  border-color: rgba(255,255,255,0.14) !important;
}
[data-theme="dark"] .card-body  { background: #162230 !important; }
[data-theme="dark"] .card-title { color: rgba(255,255,255,0.88) !important; }
[data-theme="dark"] .card-price { color: #C9A227 !important; }
[data-theme="dark"] .card-meta  { color: rgba(255,255,255,0.4) !important; }
[data-theme="dark"] .card-ad,
[data-theme="dark"] .ad-card-slot {
  background: rgba(255,255,255,0.03) !important;
  border-color: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.2) !important;
}

/* ════════ CTA STRIP ════════ */
/* Terracotta stays — works on dark too */

/* ════════ FOOTER ════════ */
[data-theme="dark"] footer              { background: #0a1520 !important; }
[data-theme="dark"] .footer-inner       { background: #0a1520 !important; }
[data-theme="dark"] .footer-col h4      { color: rgba(255,255,255,0.75) !important; }
[data-theme="dark"] .footer-col a,
[data-theme="dark"] .footer-col p       { color: rgba(255,255,255,0.42) !important; }
[data-theme="dark"] .footer-col a:hover { color: rgba(255,255,255,0.75) !important; }
[data-theme="dark"] .footer-bottom      {
  border-top-color: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.3) !important;
}
[data-theme="dark"] .footer-tagline     { color: rgba(255,255,255,0.35) !important; }

/* ════════════════════════════════════
   ANNONCE PAGE
════════════════════════════════════ */
[data-theme="dark"] .main       { background: #0d1a24 !important; }
[data-theme="dark"] .breadcrumb { color: rgba(255,255,255,0.38) !important; }

[data-theme="dark"] .gallery-main   { background: #111d27 !important; }
[data-theme="dark"] .gallery-thumbs { background: #111d27 !important; }
[data-theme="dark"] .thumb {
  border-color: rgba(255,255,255,0.08) !important;
  /* NËMME background-color — d'`background`-Kuerzform géif d'Foto (background-image) läschen! */
  background-color: #162230 !important;
}
[data-theme="dark"] .thumb.active { border-color: #C9A227 !important; }

/* Verifizéiert-Badge am Dark Mode sichtbar halen (gréng op donkel) */
[data-theme="dark"] .seller-badge,
[data-theme="dark"] .verified-badge {
  background: rgba(60,179,113,0.20) !important;
  color: #6BD592 !important;
}

/* Offer-Notif-Kaart am Profil: donkel Hannergrond, soss ass hellen Text onliesbar */
[data-theme="dark"] .offer-notif {
  background: linear-gradient(135deg, #2b2410, #342a10) !important;
  border-color: rgba(201,162,39,0.55) !important;
}
[data-theme="dark"] .offer-notif-title  { color: rgba(255,255,255,0.92) !important; }
[data-theme="dark"] .offer-notif-amount { color: #E8C55A !important; }

/* Offer-Notif-Kaart: hell cream Hannergrond bleift → Text donkel halen (soss onliesbar am Dark) */
[data-theme="dark"] .offer-notif-title { color: #2B2A28 !important; }
[data-theme="dark"] .offer-notif-sub   { color: #6E6656 !important; }
[data-theme="dark"] .offer-notif-btn.decline { color: #6E6656 !important; border-color: #C9B98F !important; }

[data-theme="dark"] .listing-info {
  background: #0d1a24 !important;
}
[data-theme="dark"] .listing-title,
[data-theme="dark"] .title       { color: rgba(255,255,255,0.92) !important; }
[data-theme="dark"] .listing-price,
[data-theme="dark"] .price       { color: #C9A227 !important; }
[data-theme="dark"] .listing-meta,
[data-theme="dark"] .meta        { color: rgba(255,255,255,0.45) !important; }

[data-theme="dark"] .card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .map-card,
[data-theme="dark"] .safety-box {
  background: #162230 !important;
  border-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .description { color: rgba(255,255,255,0.75) !important; }

[data-theme="dark"] .details-grid { background: #162230 !important; }
[data-theme="dark"] .d-label    { color: rgba(255,255,255,0.42) !important; }
[data-theme="dark"] .d-value    { color: rgba(255,255,255,0.85) !important; }
[data-theme="dark"] .detail-item { border-bottom-color: rgba(255,255,255,0.06) !important; }

[data-theme="dark"] .seller-name  { color: rgba(255,255,255,0.88) !important; }
[data-theme="dark"] .seller-since { color: rgba(255,255,255,0.42) !important; }
[data-theme="dark"] .contact-meta { color: rgba(255,255,255,0.45) !important; }

[data-theme="dark"] .sidebar { background: #0d1a24 !important; }

[data-theme="dark"] .similar-section { background: #0d1a24 !important; }
[data-theme="dark"] .section-label   { color: rgba(255,255,255,0.88) !important; }
[data-theme="dark"] .similar-grid .card-item {
  background: #162230 !important;
  border-color: rgba(255,255,255,0.07) !important;
}

/* ════════ AUFGEBEN — steps, condition, photo slots, submit ════════ */

/* Steps bar text */
[data-theme="dark"] .step         { color: rgba(255,255,255,0.48) !important; }
[data-theme="dark"] .step.active  { color: rgba(255,255,255,0.95) !important; }
[data-theme="dark"] .step.done    { color: #4caf80 !important; }
[data-theme="dark"] .step-num {
  border-color: rgba(255,255,255,0.22) !important;
  color: rgba(255,255,255,0.55) !important;
  background: transparent !important;
}
[data-theme="dark"] .step.active .step-num {
  border-color: #C9A227 !important;
  color: #C9A227 !important;
  background: rgba(201,162,39,0.10) !important;
}
[data-theme="dark"] .step.done .step-num {
  border-color: #4caf80 !important;
  color: #4caf80 !important;
}

/* Condition options — active state has hardcoded #EDF1F4 bg */
[data-theme="dark"] .condition-option:has(input:checked) {
  border-color: #C9A227 !important;
  background: rgba(201,162,39,0.12) !important;
}
[data-theme="dark"] .condition-option:has(input:checked) .cond-label {
  color: #fff !important;
}

/* Photo preview slots (+ boxes) */
[data-theme="dark"] .photo-preview-slot {
  background: #1e2f3d !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: rgba(255,255,255,0.40) !important;
}
[data-theme="dark"] .photo-preview-slot:hover {
  border-color: rgba(201,162,39,0.50) !important;
  color: rgba(255,255,255,0.65) !important;
}

/* Submit note & draft button */
[data-theme="dark"] .submit-note   { color: rgba(255,255,255,0.60) !important; }
[data-theme="dark"] .submit-note a { color: rgba(255,255,255,0.85) !important; }
[data-theme="dark"] .btn-draft {
  color: rgba(255,255,255,0.80) !important;
  border-color: rgba(255,255,255,0.25) !important;
  background: transparent !important;
}

/* ════════════════════════════════════
   AUFGEBEN PAGE
════════════════════════════════════ */
[data-theme="dark"] .page-header {
  background: #111d27 !important;
  border-bottom-color: rgba(255,255,255,0.07) !important;
}

[data-theme="dark"] .steps-bar    { background: #111d27 !important; }
[data-theme="dark"] .step-num     {
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.45) !important;
}
[data-theme="dark"] .step.active .step-num {
  background: #34495A !important;
  color: #fff !important;
}
[data-theme="dark"] .step-connector { background: rgba(255,255,255,0.1) !important; }

[data-theme="dark"] .form-wrap    { background: #0d1a24 !important; }
[data-theme="dark"] .form-card    {
  background: #162230 !important;
  border-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .form-card h2,
[data-theme="dark"] .form-card h3 { color: rgba(255,255,255,0.88) !important; }
[data-theme="dark"] .hint         { color: rgba(255,255,255,0.38) !important; }
[data-theme="dark"] .char-counter { color: rgba(255,255,255,0.32) !important; }

[data-theme="dark"] .condition-option {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.10) !important;
}
[data-theme="dark"] .condition-option:hover {
  border-color: rgba(255,255,255,0.2) !important;
  background: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .condition-option.active {
  border-color: #34495A !important;
  background: rgba(52,73,90,0.3) !important;
}
[data-theme="dark"] .cond-label   { color: rgba(255,255,255,0.88) !important; }
[data-theme="dark"] .cond-desc    { color: rgba(255,255,255,0.42) !important; }

[data-theme="dark"] .photo-upload {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
[data-theme="dark"] .photo-upload:hover {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(201,162,39,0.4) !important;
}
[data-theme="dark"] .upload-title { color: rgba(255,255,255,0.72) !important; }
[data-theme="dark"] .upload-sub   { color: rgba(255,255,255,0.38) !important; }

[data-theme="dark"] .info-box {
  background: rgba(52,73,90,0.25) !important;
  border-color: rgba(52,73,90,0.55) !important;
  color: rgba(255,255,255,0.65) !important;
}

[data-theme="dark"] .submit-area  { background: #0d1a24 !important; }
[data-theme="dark"] .submit-note  { color: rgba(255,255,255,0.35) !important; }

/* ════════════════════════════════════
   PROFIL PAGE
════════════════════════════════════ */
[data-theme="dark"] .profile-hero {
  background: #111d27 !important;
  border-bottom-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .profile-info h1,
[data-theme="dark"] .profile-info h2 { color: rgba(255,255,255,0.92) !important; }
[data-theme="dark"] .profile-meta    { color: rgba(255,255,255,0.45) !important; }

[data-theme="dark"] .tab-nav {
  background: #111d27 !important;
  border-bottom-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .tab { color: rgba(255,255,255,0.52) !important; }
[data-theme="dark"] .tab.active {
  color: #C9A227 !important;
  border-bottom-color: #C9A227 !important;
}

[data-theme="dark"] .main   { background: #0d1a24 !important; }

[data-theme="dark"] .side-card {
  background: #162230 !important;
  border-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .side-card-title { color: rgba(255,255,255,0.88) !important; }
[data-theme="dark"] .side-nav-item   { color: rgba(255,255,255,0.65) !important; }
[data-theme="dark"] .side-nav-item:hover { background: rgba(255,255,255,0.05) !important; }
[data-theme="dark"] .side-nav-item.active {
  background: rgba(52,73,90,0.45) !important;
  color: rgba(255,255,255,0.92) !important;
}

[data-theme="dark"] .stats-grid { background: #162230 !important; }
[data-theme="dark"] .stat-num   { color: rgba(255,255,255,0.92) !important; }
[data-theme="dark"] .stat-label { color: rgba(255,255,255,0.42) !important; }
[data-theme="dark"] .stat-item  { border-right-color: rgba(255,255,255,0.08) !important; }

[data-theme="dark"] .tab-content { background: #0d1a24 !important; }

[data-theme="dark"] .settings-card {
  background: #162230 !important;
  border-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .settings-card h3 { color: rgba(255,255,255,0.88) !important; }

/* Wallet */
[data-theme="dark"] .wallet-hero   { background: #111d27 !important; }
[data-theme="dark"] .wallet-card   {
  background: #1e2f3d !important;
  border-color: rgba(255,255,255,0.08) !important;
}
[data-theme="dark"] .wc-label      { color: rgba(255,255,255,0.45) !important; }
[data-theme="dark"] .wallet-section-title { color: rgba(255,255,255,0.88) !important; }

/* Transactions */
[data-theme="dark"] .tx-item       { border-bottom-color: rgba(255,255,255,0.06) !important; }
[data-theme="dark"] .tx-title      { color: rgba(255,255,255,0.85) !important; }
[data-theme="dark"] .tx-date,
[data-theme="dark"] .tx-status     { color: rgba(255,255,255,0.38) !important; }

/* Embedded chat panel in profil */
[data-theme="dark"] .ce-conv-panel {
  background: #111d27 !important;
  border-right-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .ce-conv-top   { border-bottom-color: rgba(255,255,255,0.07) !important; }
[data-theme="dark"] .ce-conv-item  { border-bottom-color: rgba(255,255,255,0.05) !important; }
[data-theme="dark"] .ce-conv-item:hover { background: rgba(255,255,255,0.05) !important; }
[data-theme="dark"] .ce-conv-item.active { background: rgba(52,73,90,0.45) !important; }
[data-theme="dark"] .ce-conv-name  { color: rgba(255,255,255,0.88) !important; }
[data-theme="dark"] .ce-conv-preview { color: rgba(255,255,255,0.4) !important; }
[data-theme="dark"] .ce-conv-time  { color: rgba(255,255,255,0.28) !important; }
[data-theme="dark"] .ce-chat-panel { background: #0d1a24 !important; }
[data-theme="dark"] .ce-chat-header {
  background: #111d27 !important;
  border-bottom-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .ce-messages   { background: #0d1a24 !important; }
[data-theme="dark"] .ce-input-area {
  background: #111d27 !important;
  border-top-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .ce-input {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.9) !important;
}

/* ════════════════════════════════════
   CHAT PAGE
════════════════════════════════════ */
[data-theme="dark"] .workspace     { background: #0d1a24 !important; }

[data-theme="dark"] .product-bar   {
  background: #111d27 !important;
  border-bottom-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .pb-card {
  background: #162230 !important;
  border-color: rgba(255,255,255,0.08) !important;
}
[data-theme="dark"] .pb-card.active { border-color: #C9A227 !important; }
[data-theme="dark"] .pb-title      { color: rgba(255,255,255,0.85) !important; }
[data-theme="dark"] .pb-meta       { color: rgba(255,255,255,0.38) !important; }

[data-theme="dark"] .account-panel {
  background: #111d27 !important;
  border-right-color: rgba(255,255,255,0.07) !important;
}

[data-theme="dark"] .conv-panel    {
  background: #111d27 !important;
  border-right-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .conv-top      { border-bottom-color: rgba(255,255,255,0.07) !important; }
[data-theme="dark"] .conv-item     { border-bottom-color: rgba(255,255,255,0.05) !important; }
[data-theme="dark"] .conv-item:hover  { background: rgba(255,255,255,0.05) !important; }
[data-theme="dark"] .conv-item.active { background: rgba(52,73,90,0.45) !important; }
[data-theme="dark"] .conv-name     { color: rgba(255,255,255,0.88) !important; }
[data-theme="dark"] .conv-preview  { color: rgba(255,255,255,0.4) !important; }
[data-theme="dark"] .conv-time     { color: rgba(255,255,255,0.28) !important; }

[data-theme="dark"] .chat-panel    { background: #0d1a24 !important; }
[data-theme="dark"] .chat-header   {
  background: #111d27 !important;
  border-bottom-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .chat-user-name   { color: rgba(255,255,255,0.9) !important; }
[data-theme="dark"] .chat-user-status { color: rgba(255,255,255,0.42) !important; }
[data-theme="dark"] .chat-header-divider { background: rgba(255,255,255,0.08) !important; }

[data-theme="dark"] .messages-area { background: #0d1a24 !important; }

/* Offer cards in chat */
[data-theme="dark"] .offer-card {
  background: #162230 !important;
  border-color: rgba(255,255,255,0.08) !important;
}
[data-theme="dark"] .offer-card-title  { color: rgba(255,255,255,0.85) !important; }
[data-theme="dark"] .offer-card-amount { color: #C9A227 !important; }

[data-theme="dark"] .chat-input-area {
  background: #111d27 !important;
  border-top-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .chat-input {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.9) !important;
}
[data-theme="dark"] .chat-input::placeholder { color: rgba(255,255,255,0.3) !important; }

/* Modal */
[data-theme="dark"] .modal-backdrop { background: rgba(0,0,0,0.75) !important; }
[data-theme="dark"] .modal {
  background: #162230 !important;
  border-color: rgba(255,255,255,0.08) !important;
}
[data-theme="dark"] .modal-product  { border-bottom-color: rgba(255,255,255,0.07) !important; }

/* ════════ PROFIL — filter tabs & listing rows ════════ */
[data-theme="dark"] .filter-tab {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.65) !important;
}
[data-theme="dark"] .filter-tab:hover {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.22) !important;
}
[data-theme="dark"] .filter-tab.active {
  background: #34495A !important;
  border-color: #34495A !important;
  color: #fff !important;
}

[data-theme="dark"] .listing-row {
  background: #162230 !important;
  border-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .listing-row:hover {
  border-color: rgba(255,255,255,0.18) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35) !important;
}
[data-theme="dark"] .listing-row-img {
  background: #111d27 !important;
  border-right-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .lr-title  { color: rgba(255,255,255,0.88) !important; }
[data-theme="dark"] .lr-meta   { color: rgba(255,255,255,0.42) !important; }
[data-theme="dark"] .lr-status.paused {
  background: rgba(201,162,39,0.15) !important;
  color: #C9A227 !important;
}
[data-theme="dark"] .lr-status.sold {
  background: rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.45) !important;
}

/* ════════ CHAT — account panel stat cells ════════ */
[data-theme="dark"] .acc-stats {
  background: rgba(255,255,255,0.06) !important; /* gap colour */
  border-bottom-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .stat-cell {
  background: #162230 !important;
}
[data-theme="dark"] .stat-num   { color: rgba(255,255,255,0.88) !important; }
[data-theme="dark"] .stat-label { color: rgba(255,255,255,0.42) !important; }
[data-theme="dark"] .acc-profile {
  border-bottom-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .acc-name     { color: rgba(255,255,255,0.88) !important; }
[data-theme="dark"] .acc-location { color: rgba(255,255,255,0.42) !important; }
[data-theme="dark"] .acc-nav a    { color: rgba(255,255,255,0.52) !important; }
[data-theme="dark"] .acc-nav a:hover { background: rgba(255,255,255,0.06) !important; color: rgba(255,255,255,0.88) !important; }
[data-theme="dark"] .acc-nav a.active {
  background: rgba(52,73,90,0.55) !important;
  color: rgba(255,255,255,0.92) !important;
}

/* ════════ LOGO .lu → gold in dark mode, terracotta in light ════════ */
/* Covers: <span class="dot"> (annonce/aufgeben/profil/chat) and plain <span> (index) */
[data-theme="dark"] .logo .dot,
[data-theme="dark"] .logo span { color: #C9A227 !important; }

/* ════════ CHAT — pb-card active + pb-all ════════ */
[data-theme="dark"] .pb-card.active {
  background: rgba(168,84,46,0.18) !important;
  border-color: var(--terracotta) !important;
  box-shadow: none !important;
}
[data-theme="dark"] .pb-title { color: rgba(255,255,255,0.92) !important; }
[data-theme="dark"] .pb-all { color: rgba(255,255,255,0.60) !important; border-color: rgba(255,255,255,0.12) !important; }
[data-theme="dark"] .pb-all:hover { background: rgba(255,255,255,0.06) !important; color: rgba(255,255,255,0.88) !important; }
[data-theme="dark"] .pb-all.active { background: #34495A !important; border-color: #34495A !important; color: #fff !important; }
[data-theme="dark"] .pb-all:not(.active) .pb-count { background: rgba(255,255,255,0.08) !important; color: rgba(255,255,255,0.45) !important; }

/* ════════ AUFGEBEN — inline link colours in checkbox row ════════ */
[data-theme="dark"] .form-row label { color: rgba(255,255,255,0.85) !important; }
[data-theme="dark"] .form-row label a { color: rgba(255,255,255,0.85) !important; text-decoration-color: rgba(255,255,255,0.45) !important; }

/* ════════════════════════════════════
   GENERAL — all pages
════════════════════════════════════ */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 { color: rgba(255,255,255,0.90); }

[data-theme="dark"] input:not([type=submit]):not([type=button]):not([type=range]),
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.9) !important;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: rgba(255,255,255,0.28) !important; }
