/* ============================================================
   DEALZENTRUM – Dark Mode Design System
   Brand orange: #FF6B00 | Dark bg: #0F0F0F | Card: #1A1A1A
   ============================================================ */

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

:root {
  --orange:       #FF6B00;
  --orange-light: #FF8C2A;
  --orange-dark:  #CC5500;
  --orange-glow:  rgba(255, 107, 0, 0.15);
  --orange-glow2: rgba(255, 107, 0, 0.08);

  --bg:           #0F0F0F;
  --bg-2:         #141414;
  --card:         #1A1A1A;
  --card-hover:   #202020;
  --border:       #2A2A2A;
  --border-light: #333;

  --text:         #F0F0F0;
  --text-muted:   #888;
  --text-dim:     #555;

  --hot:   #FF4444;
  --cold:  #4488FF;
  --green: #22CC66;
  --gold:  #FFD700;
  --silver:#C0C0C0;
  --bronze:#CD7F32;

  --radius-sm:  6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow:     0 2px 12px rgba(0,0,0,0.6);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.8);
  --glow:       0 0 20px var(--orange-glow);

  --font: 'Inter', system-ui, sans-serif;
  --header-h: 60px;
  --subheader-h: 46px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-light); }

input, select, textarea, button {
  font-family: inherit;
  font-size: 14px;
}

.hidden { display: none !important; }

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

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  box-shadow: var(--glow);
  transform: translateY(-1px);
}
.btn-primary.full { width: 100%; padding: 14px; font-size: 15px; border-radius: var(--radius-lg); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,15,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { font-size: 24px; }
.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo-accent { color: var(--orange); }

.main-nav {
  display: flex;
  gap: 4px;
}
.nav-link {
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--card);
}
.nav-link.active { color: var(--orange); }

.header-search {
  flex: 1;
  display: flex;
  max-width: 380px;
}
.search-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
  transition: border-color .2s;
}
.search-input:focus { border-color: var(--orange); }
.search-input::placeholder { color: var(--text-dim); }
.search-btn {
  background: var(--orange);
  border: none;
  padding: 8px 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: background .2s;
}
.search-btn:hover { background: var(--orange-light); }

.header-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* user menu */
.user-menu { position: relative; }
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: url('https://dealzentrum.de/wp-content/uploads/2025/07/dealzentrum_drache_keinfoto.png') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
  overflow: hidden;
}
.user-avatar:hover { border-color: var(--orange); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar span { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.85); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: dropIn .15s ease;
}
@keyframes dropIn {
  from { opacity:0; transform: translateY(-8px); }
  to   { opacity:1; transform: translateY(0); }
}
.dropdown-header {
  padding: 16px;
  background: var(--orange-glow2);
  border-bottom: 1px solid var(--border);
}
.dropdown-header strong { display: block; font-size: 15px; margin-bottom: 8px; }
.xp-bar-mini {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.xp-fill-mini {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 3px;
  transition: width .5s;
}
.dropdown-header small { color: var(--text-muted); font-size: 11px; }

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 14px;
  transition: background .15s;
}
.dropdown-item:hover { background: var(--card-hover); color: var(--text); }
.dropdown-item.text-danger { color: #ff4444; }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* ===== SUBHEADER ===== */
.subheader {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.subheader-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--subheader-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.categories {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.cat-chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.cat-chip:hover { border-color: var(--orange); color: var(--orange); }
.cat-chip.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 600;
}
.btn-post-deal {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  flex-shrink: 0;
}
.btn-post-deal:hover { background: var(--orange-light); box-shadow: var(--glow); }

/* ===== MAIN LAYOUT ===== */
.main-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 24px;
  align-items: start;
}

/* ===== SIDEBARS ===== */
.sidebar-left, .sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + var(--subheader-h) + 24px);
}

.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow: hidden;
}

.widget-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* leaderboard */
.leaderboard { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.lb-rank.gold   { background: var(--gold); color: #111; }
.lb-rank.silver { background: var(--silver); color: #111; }
.lb-rank.bronze { background: var(--bronze); color: #fff; }
.lb-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: url('https://dealzentrum.de/wp-content/uploads/2025/07/dealzentrum_drache_keinfoto.png') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.85);
}
.lb-info { flex: 1; min-width: 0; }
.lb-name { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-xp { font-size: 11px; color: var(--orange); font-weight: 600; }
.lb-badge { font-size: 16px; }

/* events */
.event-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  background: var(--orange-glow2);
  border: 1px solid var(--orange-glow);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.event-card:last-child { margin-bottom: 0; }
.event-icon { font-size: 22px; flex-shrink: 0; }
.event-card strong { display: block; font-size: 13px; margin-bottom: 2px; }
.event-card p { font-size: 12px; color: var(--text-muted); }

/* stats */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-item { text-align: center; padding: 8px; background: var(--bg-2); border-radius: var(--radius); }
.stat-num { display: block; font-size: 18px; font-weight: 800; color: var(--orange); }
.stat-label { font-size: 11px; color: var(--text-muted); }

/* promo */
.promo-widget { position: relative; border-color: var(--orange); background: var(--orange-glow2); }
.promo-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 0 0 6px 6px;
  letter-spacing: 1px;
}
.promo-widget h3 { font-size: 16px; margin-bottom: 12px; }
.promo-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.promo-list li { font-size: 13px; color: var(--text-muted); }
.btn-pro {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.btn-pro:hover { box-shadow: var(--glow); }

/* shops */
.shop-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-chip {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.shop-chip:hover { border-color: var(--orange); color: var(--orange); }

/* achievements */
.achievement-list { display: flex; flex-direction: column; gap: 8px; }
.achievement-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius);
  transition: background .15s;
}
.achievement-item.unlocked { background: var(--orange-glow2); border: 1px solid var(--orange-glow); }
.achievement-item.locked { opacity: .4; filter: grayscale(1); }
.ach-icon { font-size: 24px; flex-shrink: 0; }
.achievement-item strong { display: block; font-size: 13px; }
.achievement-item small { font-size: 11px; color: var(--text-muted); }

/* ===== FEED ===== */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sort-tabs { display: flex; gap: 4px; }
.sort-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.sort-tab:hover { border-color: var(--orange); color: var(--orange); }
.sort-tab.active { background: var(--orange); border-color: var(--orange); color: #fff; }

.view-toggle { display: flex; gap: 4px; }
.view-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
  font-size: 16px;
}
.view-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ===== DEAL CARD (list view) ===== */
.deal-list { display: flex; flex-direction: column; gap: 10px; }
.deal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.deal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  cursor: pointer;
  position: relative;
}
.deal-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.deal-card.hot-deal { border-left: 3px solid var(--hot); }
.deal-card.new-deal { border-left: 3px solid var(--green); }

/* vote column */
.deal-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px;
  gap: 4px;
  min-width: 60px;
  background: var(--bg-2);
}
.vote-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all .15s;
  line-height: 1;
}
.vote-btn:hover { background: var(--border); }
.vote-btn.up:hover, .vote-btn.up.voted { color: var(--hot); }
.vote-btn.down:hover, .vote-btn.down.voted { color: var(--cold); }
.vote-count {
  font-size: 16px;
  font-weight: 800;
  min-width: 40px;
  text-align: center;
}
.vote-count.positive { color: var(--hot); }
.vote-count.negative { color: var(--cold); }
.vote-count.neutral  { color: var(--text-muted); }

/* deal image */
.deal-image-wrap {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.deal-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.deal-image-placeholder { font-size: 40px; }

/* deal body */
.deal-body {
  flex: 1;
  padding: 14px 16px;
  min-width: 0;
}
.deal-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.deal-tag {
  background: var(--border);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.deal-tag.hot { background: var(--hot); color: #fff; }
.deal-tag.new { background: var(--green); color: #fff; }
.deal-tag.freebie { background: var(--gold); color: #111; }

.deal-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.deal-price-new {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
}
.deal-price-old {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: line-through;
}
.deal-discount {
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.deal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.deal-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.deal-meta-item .icon { font-size: 13px; }
.deal-shop { font-weight: 600; color: var(--text-muted); }

/* deal actions */
.deal-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 14px 14px 0;
  gap: 8px;
}
.btn-deal-link {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-deal-link:hover {
  background: var(--orange-light);
  color: #fff;
  box-shadow: 0 0 12px var(--orange-glow);
}
.deal-save-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.deal-save-btn:hover { border-color: var(--orange); color: var(--orange); }
.deal-save-btn.saved { border-color: var(--orange); color: var(--orange); background: var(--orange-glow); }

/* temperature bar */
.temp-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.temp-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .5s;
}

/* deal rank badge */
.deal-rank-badge {
  position: absolute;
  top: 10px;
  left: 60px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.rank-trending { background: rgba(255,68,68,.2); color: var(--hot); }
.rank-hot      { background: rgba(255,107,0,.2); color: var(--orange); }
.rank-new      { background: rgba(34,204,102,.2); color: var(--green); }

/* ===== LOAD MORE ===== */
.btn-load-more {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: var(--card);
  border: 1px dashed var(--border-light);
  color: var(--text-muted);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-load-more:hover { border-color: var(--orange); color: var(--orange); }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.modal {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--border);
  border: none;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: all .15s;
  z-index: 1;
}
.modal-close:hover { background: var(--border-light); color: var(--text); }

.modal-title {
  padding: 24px 24px 0;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.xp-hint {
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
  background: var(--orange-glow);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 8px;
}

/* auth modal */
.auth-modal { max-width: 420px; }
.auth-header { padding: 32px 28px 20px; text-align: center; }
.auth-logo { font-size: 28px; font-weight: 800; display: block; margin-bottom: 12px; }
.auth-header h2 { font-size: 22px; margin-bottom: 6px; }
.auth-header p { color: var(--text-muted); font-size: 14px; }
.auth-form { padding: 0 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.auth-switch { text-align: center; padding: 0 28px 24px; color: var(--text-muted); font-size: 14px; }

/* post modal */
.post-modal { max-width: 560px; }
.post-modal .auth-form { padding: 0 24px 24px; }

/* deal modal */
.deal-modal { max-width: 700px; }

/* form elements */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group select option { background: var(--card); }
.form-group textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); cursor: pointer; }

/* deal detail */
.deal-detail-hero {
  height: 260px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
}
.deal-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.deal-detail-hero .placeholder { font-size: 80px; }
.deal-detail-body { padding: 24px; }
.deal-detail-title { font-size: 22px; font-weight: 700; margin-bottom: 14px; line-height: 1.3; }
.deal-detail-prices { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.deal-detail-price { font-size: 36px; font-weight: 900; color: var(--orange); }
.deal-detail-old { font-size: 18px; text-decoration: line-through; color: var(--text-dim); }
.deal-detail-disc { background: var(--orange); color: #fff; font-size: 14px; font-weight: 800; padding: 4px 10px; border-radius: 8px; }
.deal-detail-desc { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.deal-detail-actions { display: flex; gap: 10px; }
.btn-deal-cta {
  flex: 1;
  padding: 14px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.btn-deal-cta:hover { box-shadow: 0 0 24px var(--orange-glow); }

/* comments */
.comments-section { padding: 0 24px 24px; border-top: 1px solid var(--border); }
.comments-title { font-size: 15px; font-weight: 700; margin: 16px 0 12px; }
.comment-input-row { display: flex; gap: 8px; margin-bottom: 16px; }
.comment-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 9px 14px;
  border-radius: var(--radius);
  outline: none;
}
.comment-input:focus { border-color: var(--orange); }
.btn-comment { background: var(--orange); border: none; color: #fff; padding: 9px 16px; border-radius: var(--radius); cursor: pointer; font-weight: 600; }
.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment-item { display: flex; gap: 10px; }
.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: url('https://dealzentrum.de/wp-content/uploads/2025/07/dealzentrum_drache_keinfoto.png') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.85);
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-content { flex: 1; }
.comment-header { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.comment-name { font-size: 13px; font-weight: 700; }
.comment-time { font-size: 11px; color: var(--text-dim); }
.comment-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ===== XP TOAST ===== */
.xp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--card);
  border: 1px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 30px var(--orange-glow);
  z-index: 300;
  animation: toastIn .3s ease;
}
@keyframes toastIn {
  from { opacity:0; transform: translateX(30px); }
  to   { opacity:1; transform: translateX(0); }
}
.xp-toast-icon { font-size: 28px; }
.xp-toast strong { display: block; font-size: 16px; color: var(--orange); }
.xp-toast small { font-size: 12px; color: var(--text-muted); }

/* ===== LEVEL UP ===== */
.levelup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .3s ease;
}
.levelup-box {
  text-align: center;
  padding: 50px 60px;
  background: var(--card);
  border: 2px solid var(--orange);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 80px var(--orange-glow);
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn {
  from { transform: scale(.5); opacity:0; }
  to   { transform: scale(1); opacity:1; }
}
.levelup-fireworks { font-size: 40px; margin-bottom: 12px; }
.levelup-box h1 {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}
.levelup-badge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 900;
  margin: 0 auto 16px;
  box-shadow: 0 0 40px var(--orange-glow);
}
.levelup-box p { color: var(--text-muted); margin-bottom: 24px; font-size: 16px; }

/* ===== PROFILE PAGE ===== */
.profile-page { display: none; }
.profile-page.active { display: block; }
.profile-hero {
  background: linear-gradient(180deg, var(--orange-glow2) 0%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 20px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.profile-avatar-lg {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: url('https://dealzentrum.de/wp-content/uploads/2025/07/dealzentrum_drache_keinfoto.png') center/cover !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  border: 3px solid var(--orange);
  flex-shrink: 0;
  overflow: hidden;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.9);
}
.profile-info { flex: 1; }
.profile-username { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.profile-joined { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.level-display {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.level-badge-lg {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
}
.level-name { font-weight: 600; color: var(--text-muted); font-size: 14px; }
.xp-bar-lg {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 6px;
  max-width: 400px;
}
.xp-fill-lg {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 5px;
  transition: width .8s cubic-bezier(.34,1.56,.64,1);
}
.xp-label { font-size: 12px; color: var(--text-muted); }

/* ===== GRID VIEW ===== */
.deal-grid .deal-card { flex-direction: column; }
.deal-grid .deal-vote {
  flex-direction: row;
  padding: 8px 12px;
  min-width: unset;
  background: transparent;
  border-bottom: 1px solid var(--border);
}
.deal-grid .deal-image-wrap { width: 100%; height: 160px; }
.deal-grid .deal-body { padding: 10px 12px; }
.deal-grid .deal-actions { flex-direction: row; padding: 0 12px 12px; align-items: center; justify-content: flex-start; }
.deal-grid .deal-rank-badge { left: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .main-layout { grid-template-columns: 200px 1fr 240px; }
}

@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar-left, .sidebar-right { display: none; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-inner { gap: 8px; padding: 0 12px; }

  /* Suchfeld auf Mobile verstecken */
  .header-search { display: none; }

  /* Anmelden / Registrieren Buttons kompakter */
  .header-actions { gap: 6px; }
  .header-actions .btn-ghost,
  .header-actions .btn-primary { padding: 7px 11px; font-size: 12px; }

  /* Deal Cards */
  .deal-card { flex-direction: column; }
  .deal-vote { flex-direction: row; padding: 10px; min-width: unset; }
  .deal-image-wrap { width: 100%; height: 180px; }
  .deal-actions { flex-direction: row; padding: 0 14px 14px; }
  .form-row { grid-template-columns: 1fr; }

  /* Profil Hero: vertikal stapeln */
  .profile-hero {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    padding: 20px !important;
    gap: 16px !important;
  }
  .profile-hero > div:first-child { margin: 0 auto; }
  .profile-hero .btn-ghost { width: 100%; justify-content: center; }
  .xp-bar-lg { max-width: 100% !important; }

  /* Profil Stats zentriert */
  .profile-stats { justify-content: center !important; }

  /* Auth Modal Abstände */
  .auth-header { padding: 24px 20px 16px; }
  .auth-form { padding: 0 20px 20px; }
  .auth-switch { padding: 0 20px 20px; }
}
