/* ==========================================
   quatschen.app – Dark Theme
   ========================================== */

:root {
  --bg-base:      #0f1117;
  --bg-surface:   #1a1d27;
  --bg-elevated:  #22263a;
  --bg-input:     #2a2e42;
  --accent:       #7c5cfc;
  --accent-dark:  #5d40d0;
  --accent-glow:  rgba(124, 92, 252, 0.25);
  --text-primary: #e8eaf0;
  --text-muted:   #8890a8;
  --text-faint:   #555d7a;
  --border:       rgba(255,255,255,0.07);
  --border-focus: rgba(124,92,252,0.5);
  --success:      #34d058;
  --danger:       #f85149;
  --warning:      #f0a84e;
  --info:         #4da6ff;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --trans:        0.18s ease;
  --chat-mine:    #5d40d0;
  --chat-theirs:  #22263a;
}

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

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--trans); }

/* ========== Coin-Toast ========== */
.coin-toast-container {
  position: fixed;
  top: 64px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.coin-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.35s ease;
  pointer-events: auto;
}
.coin-toast-show { opacity: 1; transform: translateX(0); }
.coin-toast-hide { opacity: 0; transform: translateX(40px); }

.coin-toast-in { border-color: rgba(52,208,88,0.3); }
.coin-toast-out { border-color: rgba(248,81,73,0.3); }

.coin-toast-icon { font-size: 1.2rem; }
.coin-toast-amount {
  font-size: 1.1rem;
  font-weight: 800;
}
.coin-toast-in .coin-toast-amount { color: var(--success); }
.coin-toast-out .coin-toast-amount { color: var(--danger); }

.coin-toast-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== Cookie Banner ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.cookie-text { font-size: 0.85rem; color: var(--text-muted); flex: 1; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
  padding: 8px 18px;
  border-radius: var(--radius);
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-accept { background: var(--accent); color: #fff; }
.cookie-accept:hover { background: var(--accent-dark); }
.cookie-decline { background: var(--bg-input); color: var(--text-muted); border: 1px solid var(--border); }
.cookie-decline:hover { background: var(--bg-elevated); }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; text-align: center; }
}
a:hover { color: #a98dfe; }

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-input); border-radius: 4px; }

/* ========== Navbar ========== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 54px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

/* Coin-Anzeige im Header */
.nav-coins {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--warning) !important;
  white-space: nowrap;
  transition: border-color var(--trans);
}
.nav-coins:hover { border-color: var(--warning); color: var(--warning) !important; }
.nav-coins svg { fill: var(--warning); flex-shrink: 0; }

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  flex-shrink: 0;
}
.navbar-brand svg { width: 22px; height: 22px; stroke: var(--accent); }

.navbar-links, .navbar-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}
.navbar-links a, .navbar-menu > a { color: var(--text-muted); white-space: nowrap; }
.navbar-links a:hover, .navbar-menu > a:hover { color: var(--text-primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.2s;
}

/* User-Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 14px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--trans);
  white-space: nowrap;
}
.nav-dropdown-btn:hover { border-color: var(--accent); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 0;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 200;
}
/* Unsichtbare Brücke damit Maus nicht den Hover verliert */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  display: none;
}
.nav-dropdown:hover::after { display: block; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-muted) !important;
  transition: background 0.15s;
}
.nav-dropdown-menu a:hover { background: var(--bg-elevated); color: var(--text-primary) !important; }
.nav-logout { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px !important; }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navbar-menu {
    display: none;
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    gap: 8px;
    z-index: 99;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  .navbar-menu.open { display: flex; }
  .navbar-menu > a { padding: 8px 0; font-size: 0.95rem; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-btn { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding: 4px 0 0 12px;
  }
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 12px;
  color: var(--text-muted) !important;
  font-size: 0.85rem;
}
.btn-logout:hover { border-color: var(--danger); color: var(--danger) !important; }

.dm-link { position: relative; }
.dm-badge {
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  position: absolute;
  top: -6px;
  right: -10px;
}
.dm-badge:empty { display: none; }

/* ========== Badges ========== */
.badge-guest {
  display: inline-block;
  background: rgba(240, 168, 78, 0.15);
  color: var(--warning);
  border: 1px solid rgba(240, 168, 78, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.03em;
}
.badge { display: inline-block; font-size: 0.7rem; padding: 2px 7px; border-radius: 99px; font-weight: 600; }
.badge-admin { background: rgba(124,92,252,0.2); color: var(--accent); border: 1px solid rgba(124,92,252,0.4); }
.badge-banned { background: rgba(248,81,73,0.15); color: var(--danger); border: 1px solid rgba(248,81,73,0.3); }

/* ========== Buttons ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 0 20px var(--accent-glow); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-full { width: 100%; }

.btn-primary-sm {
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  padding: 4px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}
.btn-primary-sm:hover { background: var(--accent-dark); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--trans);
}
.btn-secondary:hover { background: var(--bg-input); }

.btn-sm { padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; border: none; cursor: pointer; font-weight: 500; }
.btn-danger  { background: rgba(248,81,73,0.15); color: var(--danger); }
.btn-danger:hover { background: rgba(248,81,73,0.25); }
.btn-success { background: rgba(52,208,88,0.15); color: var(--success); }
.btn-success:hover { background: rgba(52,208,88,0.25); }
.btn-info    { background: rgba(77,166,255,0.15); color: var(--info); }
.btn-info:hover { background: rgba(77,166,255,0.25); }

/* ========== Forms ========== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input:disabled { opacity: 0.45; cursor: not-allowed; }
.form-group small { color: var(--text-faint); font-size: 0.78rem; display: block; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ========== Alerts ========== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.alert-error   { background: rgba(248,81,73,0.12); border: 1px solid rgba(248,81,73,0.3); color: #ff8a80; }
.alert-success { background: rgba(52,208,88,0.1); border: 1px solid rgba(52,208,88,0.3); color: var(--success); }
.hidden { display: none !important; }

/* ========== Card ========== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.card h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: 18px; color: var(--text-primary); }

/* ========== Auth Pages ========== */
.page-auth { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-wrapper { width: 100%; max-width: 420px; padding: 24px; }

.auth-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 28px;
}
.auth-logo svg { width: 36px; height: 36px; stroke: var(--accent); }

.auth-box h1 { font-size: 1.4rem; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--text-muted); margin-bottom: 24px; font-size: 0.9rem; }
.auth-switch { text-align: center; font-size: 0.88rem; color: var(--text-muted); margin-top: 20px; }

.auth-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(124,92,252,0.08);
  border: 1px solid rgba(124,92,252,0.2);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 20px;
}
.auth-info svg { flex-shrink: 0; margin-top: 2px; stroke: var(--accent); }

/* ========== Chat Layout ========== */
.page-chat {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.chat-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-header h3 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); }
.online-count {
  background: var(--success);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
}

.online-list {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.online-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--trans);
}
.online-list li:hover { background: var(--bg-elevated); }
.online-list li img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.online-list li .online-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-online { background: var(--success); }
.status-away { background: var(--warning); }
.status-dnd { background: var(--danger); }
.online-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.online-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.85rem; }
.online-age { font-size: 0.72rem; color: var(--text-faint); font-weight: 400; }
.online-guest { font-size: 0.65rem; color: var(--warning); }
.online-you { font-size: 0.65rem; color: var(--accent); font-weight: 400; }
.online-me { background: rgba(124,92,252,0.06); border-left: 2px solid var(--accent); cursor: default; }
.online-status-text { font-size: 0.68rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }

/* Sidebar Footer */
.sidebar-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.my-status-bar { display: flex; gap: 6px; margin-bottom: 8px; }
.status-select {
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-primary); padding: 4px 8px; font-size: 0.78rem; outline: none; cursor: pointer;
  flex-shrink: 0;
}
.status-text-input {
  flex: 1; background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-primary); padding: 4px 8px; font-size: 0.78rem; outline: none; min-width: 0;
}
.status-text-input:focus { border-color: var(--border-focus); }
.sidebar-stats { font-size: 0.78rem; color: var(--text-faint); }
.online-count-bar { font-weight: 600; }

.sidebar-points {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.points-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.points-header svg { fill: var(--warning); }
.points-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--warning);
  line-height: 1;
  margin-bottom: 8px;
}

.points-progress { margin-bottom: 10px; }
.progress-bar {
  height: 4px;
  background: var(--bg-input);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #a98dfe); border-radius: 2px; transition: width 0.5s ease; }
.points-progress small { font-size: 0.72rem; color: var(--text-faint); }

.btn-upgrade {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #a98dfe);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%       { box-shadow: 0 0 0 8px transparent; }
}

.btn-shop-sm {
  display: block;
  text-align: center;
  background: var(--bg-input);
  color: var(--text-muted) !important;
  border-radius: var(--radius);
  padding: 6px;
  font-size: 0.82rem;
  margin-top: 4px;
  transition: background var(--trans);
}
.btn-shop-sm:hover { background: var(--bg-elevated); color: var(--text-primary) !important; }

/* Chat Main */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-loading { text-align: center; color: var(--text-faint); padding: 40px; }

.msg-group {
  display: flex;
  gap: 10px;
  max-width: 100%;
  padding: 4px 0;
  animation: fadeIn 0.15s ease;
}
.msg-group:hover .msg-actions { opacity: 1; }

/* Message Actions (Like, Dislike, Reply, Delete) */
.msg-actions {
  display: inline-flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s;
  margin-left: auto;
}
.msg-action-btn {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 4px;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.msg-action-btn:hover { background: var(--bg-elevated); color: var(--text-primary); }
.msg-action-btn.active { color: var(--accent); }
.msg-like.active { color: var(--success); }
.msg-dislike.active { color: var(--danger); }
.msg-action-btn span { font-size: 0.68rem; }

/* Reply-Quote in Nachrichten */
.msg-reply-quote {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 4px 8px;
  margin-bottom: 4px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s;
}
.msg-reply-quote:hover { background: var(--bg-input); }
.msg-reply-author { font-weight: 600; margin-right: 6px; }
.msg-reply-text { color: var(--text-muted); }

/* Reply-Bar über dem Input */
.reply-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 8px;
  animation: fadeIn 0.15s ease;
}
.reply-bar-content {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  overflow: hidden;
}
.reply-bar-icon { color: var(--accent); }
.reply-bar-user { font-weight: 600; color: var(--accent); }
.reply-bar-preview { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar-close {
  background: none; border: none;
  color: var(--text-faint); cursor: pointer;
  font-size: 0.9rem; padding: 2px 4px;
}
.reply-bar-close:hover { color: var(--text-primary); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
}
.msg-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.msg-content { flex: 1; min-width: 0; }
.msg-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-username {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}
/* Geschlechtsfarben */
.gender-f, .msg-username.gender-f { color: #f082b4; }
.gender-m, .msg-username.gender-m { color: #5dade2; }
.msg-username.is-guest.gender-f { color: #e8709e; }
.msg-username.is-guest.gender-m { color: #4a9ad4; }
.msg-username.is-admin { color: var(--info); }
.msg-time { font-size: 0.72rem; color: var(--text-faint); }

/* Online-Liste Geschlechtsfarben */
.online-dot.gender-f { background: #f082b4; }
.online-dot.gender-m { background: #5dade2; }
.online-name.gender-f { color: #f082b4; }
.online-name.gender-m { color: #5dade2; }
.msg-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  word-break: break-word;
  line-height: 1.5;
}
/* Join/Leave Nachrichten */
.msg-join { font-size: 0.78rem; color: var(--text-faint); padding: 3px 0; opacity: 0.7; animation: fadeIn 0.3s ease; }
.msg-join span { font-weight: 600; }
.scroll-lock-hint {
  background: rgba(240,168,78,0.1);
  border: 1px solid rgba(240,168,78,0.25);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--warning);
  text-align: center;
  animation: wizFadeIn 0.3s ease;
}
.scroll-lock-hint a { color: var(--accent); font-weight: 600; }

/* System messages */
.msg-system {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  padding: 4px 0;
}

/* Chat Input */
.chat-input-area {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-base);
  flex-shrink: 0;
}

.chat-info-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,92,252,0.08);
  border: 1px solid rgba(124,92,252,0.18);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.chat-info-banner svg { stroke: var(--accent); flex-shrink: 0; }

.chat-form { width: 100%; }
.chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 8px 4px 12px;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.chat-input-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

#messageInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 6px 0;
}
#messageInput::placeholder { color: var(--text-faint); }

.emoji-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  transition: background var(--trans), opacity var(--trans);
  line-height: 1;
}
.emoji-btn-locked {
  opacity: 0.3;
  filter: grayscale(1);
  cursor: not-allowed;
}
.emoji-btn-wrap { position: relative; }
.emoji-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 10;
}
.emoji-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 14px;
  border: 5px solid transparent;
  border-top-color: var(--border);
}
.emoji-tooltip a { font-weight: 600; }
.emoji-btn-locked:hover + .emoji-tooltip,
.emoji-btn-wrap:hover .emoji-tooltip { display: block; }
.emoji-btn:hover { background: var(--bg-elevated); }

.send-btn {
  background: var(--accent);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--trans), transform var(--trans);
}
.send-btn:hover { background: var(--accent-dark); transform: scale(1.05); }
.send-btn:active { transform: scale(0.95); }
.send-btn svg { width: 16px; height: 16px; stroke: #fff; }

/* Emoji Picker */
.emoji-picker {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 140px;
  overflow-y: auto;
}
.emoji-item {
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
  transition: background var(--trans);
}
.emoji-item:hover { background: var(--bg-input); }

/* ========== Page Container (non-chat pages) ========== */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 20px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.page-header h1 { font-size: 1.5rem; font-weight: 700; }
.points-display {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--warning);
}
.points-display svg { fill: var(--warning); }

/* ========== Shop ========== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.shop-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
  position: relative;
}
.shop-card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 4px 20px var(--accent-glow); transform: translateY(-2px); }
.shop-card.owned { opacity: 0.65; }
.shop-card.owned:hover { transform: none; box-shadow: none; border-color: var(--success); }
.shop-card.locked { opacity: 0.5; pointer-events: none; }

.shop-icon { font-size: 2.2rem; margin-bottom: 12px; }
.shop-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.shop-card p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }

/* Kategorie-Header im Shop */
.shop-category-header {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  padding: 8px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ─── Einheitlicher Preis-Badge (CI-gelb, überall gleich) ─── */
.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(240, 168, 78, 0.12);
  border: 1px solid rgba(240, 168, 78, 0.3);
  color: var(--warning);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.price-badge-lg {
  font-size: 0.85rem;
  padding: 6px 14px;
  margin-bottom: 12px;
}

.btn-buy {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--trans);
}
.btn-buy:hover { background: var(--accent-dark); }
.btn-buy.btn-disabled { background: var(--bg-input); color: var(--text-faint); cursor: not-allowed; }

.shop-owned {
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 600;
}
.shop-locked { color: var(--text-faint); font-size: 0.82rem; }
.shop-expires { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.shop-expired { color: var(--warning); font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; }

.auto-renew-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 8px;
}
.auto-renew-toggle input { accent-color: var(--accent); }

.shop-card-highlight {
  border-color: var(--accent) !important;
  background: rgba(124,92,252,0.08);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 20px var(--accent-glow);
  grid-column: 1 / -1;
}
.shop-card-highlight:hover { transform: translateY(-3px); }

.dm-status.card { border-color: rgba(77,166,255,0.3); background: rgba(77,166,255,0.05); }

/* ========== Profile ========== */
.profile-page {}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}
.avatar-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--accent);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}
.avatar-locked-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--bg-input);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.profile-info h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.profile-points {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--warning);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 6px 0;
}
.profile-location, .profile-gender { font-size: 0.85rem; color: var(--text-muted); }

/* Coin-History */
.coin-history { max-height: 400px; overflow-y: auto; }
.coin-tx {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.coin-tx:last-child { border-bottom: none; }
.coin-tx-icon { font-size: 1rem; flex-shrink: 0; }
.coin-tx-info { flex: 1; min-width: 0; }
.coin-tx-desc { display: block; color: var(--text-primary); }
.coin-tx-date { font-size: 0.72rem; color: var(--text-faint); }
.coin-tx-amount { font-weight: 700; flex-shrink: 0; }
.coin-tx-amount.positive { color: var(--success); }
.coin-tx-amount.negative { color: var(--danger); }
.positive { color: var(--success); }
.negative { color: var(--danger); }

/* Account-Seite */
.acc-balance-card { background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated)); }
.acc-balance { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.acc-balance-label { font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.acc-balance-num { font-size: 2rem; font-weight: 800; color: var(--warning); }

.acc-filter { margin-bottom: 16px; }
.acc-filter-presets { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.acc-preset.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.acc-filter-dates { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-filter-dates input[type="date"] {
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-primary); padding: 5px 10px; font-size: 0.85rem;
}
.acc-filter-dates span { font-size: 0.82rem; color: var(--text-faint); }

.acc-summary {
  display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border);
  margin-bottom: 12px; flex-wrap: wrap;
}
.acc-sum-item span { font-size: 0.78rem; color: var(--text-faint); display: block; }
.acc-sum-item strong { font-size: 1.1rem; }

.tx-day-header {
  font-size: 0.75rem; font-weight: 700; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 12px 0 4px; border-bottom: 1px solid var(--border); margin-bottom: 4px;
}

.locked-field { opacity: 0.6; }
.lock-hint { font-size: 0.75rem; font-weight: 400; }

.info-grid { display: grid; gap: 10px; }
.info-grid > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.info-grid > div span { color: var(--text-muted); }

/* ========== DM Page ========== */
.dm-layout {
  display: flex;
  height: calc(100vh - 54px);
  overflow: hidden;
}

.dm-sidebar {
  width: 280px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 16px;
  flex-shrink: 0;
  background: var(--bg-surface);
}
.dm-sidebar h2 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.dm-quota-info { font-size: 0.78rem; color: var(--text-faint); margin-bottom: 14px; display: flex; align-items: center; gap: 5px; }
.dm-quota-info svg { stroke: var(--text-faint); }

.inbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 4px;
  transition: background var(--trans);
  color: var(--text-primary) !important;
}
.inbox-item:hover { background: var(--bg-elevated); }
.inbox-item.unread { background: rgba(124,92,252,0.08); }
.inbox-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.inbox-item strong { font-size: 0.88rem; }
.inbox-item small { color: var(--text-muted); font-size: 0.78rem; }
.dm-empty-inbox { text-align: center; color: var(--text-faint); padding: 30px 0; font-size: 0.88rem; }

.dm-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dm-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  flex-shrink: 0;
}
.dm-chat-header h3 { font-size: 0.95rem; font-weight: 600; }
.dm-avatar-sm { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.dm-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dm-message { display: flex; flex-direction: column; }
.dm-message.mine { align-items: flex-end; }
.dm-message.theirs { align-items: flex-start; }
.dm-bubble {
  max-width: 70%;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
}
.dm-message.mine   .dm-bubble { background: var(--chat-mine); color: #fff; border-bottom-right-radius: 4px; }
.dm-message.theirs .dm-bubble { background: var(--chat-theirs); color: var(--text-primary); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.dm-time { font-size: 0.7rem; color: var(--text-faint); margin-top: 3px; }

.dm-form {
  display: flex;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-base);
  flex-shrink: 0;
}
.dm-form input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 9px 14px;
  font-size: 0.92rem;
  outline: none;
}
.dm-form input:focus { border-color: var(--border-focus); }

.dm-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-faint);
}
.dm-empty svg { opacity: 0.3; }
.dm-empty p { max-width: 280px; text-align: center; font-size: 0.88rem; }

/* ========== Admin Panel ========== */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  width: fit-content;
}
.admin-tabs a {
  padding: 7px 18px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background var(--trans), color var(--trans);
}
.admin-tabs a.active { background: var(--accent); color: #fff; }
.admin-tabs a:hover:not(.active) { background: var(--bg-elevated); color: var(--text-primary); }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
}
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

/* Admin User Cards */
.admin-user-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.admin-user-card:last-child { border-bottom: none; }
.admin-user-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.admin-user-info { flex: 1; }
.admin-user-info strong { font-size: 0.95rem; }
.admin-user-sub { display: block; font-size: 0.78rem; color: var(--text-faint); margin-top: 2px; }
.admin-user-points { flex-shrink: 0; }
.admin-pts-input {
  width: 80px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 8px; color: var(--text-primary); font-size: 0.85rem; text-align: right;
}
.admin-user-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.admin-user-features { display: flex; gap: 4px; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.row-banned { opacity: 0.5; }
.action-cell { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.msg-cell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.feature-row td { border-bottom: 1px solid var(--border); }
.feature-row.hidden { display: none; }

/* Admin Table sortable */
.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: var(--accent); }
.admin-detail-row td { border-bottom: 1px solid var(--border); }
.admin-detail-row.hidden { display: none; }
.admin-row:hover { background: rgba(124,92,252,0.03); }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .sidebar { width: 0; overflow: hidden; display: none; }
  .chat-layout { flex-direction: column; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .dm-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); height: 200px; overflow-y: auto; }
  .dm-layout { flex-direction: column; }
  .dm-main { min-height: 0; }
  .form-row { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; text-align: center; }
  .auth-box { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .shop-grid { grid-template-columns: 1fr; }
  .admin-tabs { flex-wrap: wrap; }
  .step1-layout { flex-direction: column; }
  .bday-row { flex-direction: column; }
}

/* ========== Hero / Landing ========== */
.page-welcome { min-height: 100vh; }

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(15,17,23,0.7) 0%, rgba(34,38,58,0.6) 100%),
    radial-gradient(circle at 20% 50%, rgba(124,92,252,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(217,74,138,0.2) 0%, transparent 50%),
    var(--bg-base);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 20px;
  width: 100%;
  max-width: 720px;
}

/* Hero Badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}
.hero-badge {
  background: rgba(77,166,255,0.15);
  border: 1px solid rgba(77,166,255,0.3);
  color: var(--info);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.hero-badge-pink { background: rgba(217,74,138,0.15); border-color: rgba(217,74,138,0.3); color: #f082b4; }
.hero-badge-orange { background: rgba(240,168,78,0.15); border-color: rgba(240,168,78,0.3); color: var(--warning); }

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  letter-spacing: -0.02em;
}

/* ========== Wizard Card ========== */
.wizard-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 36px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
  color: #333;
}

.wizard-step {
  display: none;
  animation: wizFadeIn 0.3s ease;
}
.wizard-step.active { display: block; }

/* Wizard Tabs */
.wiz-tabs {
  display: flex;
  border-bottom: 2px solid #e8eaf0;
  margin: -32px -36px 24px;
  padding: 0 36px;
}
.wiz-tab {
  flex: 1;
  padding: 14px 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #999;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s;
}
.wiz-tab:hover { color: #555; }
.wiz-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.wiz-tab-content { display: none; animation: wizFadeIn 0.25s ease; }
.wiz-tab-content.active { display: block; }

@keyframes wizFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.wizard-step h2 {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  color: #222;
  margin-bottom: 20px;
}

.wizard-back {
  background: none;
  border: none;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  margin-bottom: 12px;
  padding: 0;
}
.wizard-back:hover { color: #333; }

.wizard-hint {
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  margin: -10px 0 18px;
}

/* Step 1: Nickname + Geschlecht nebeneinander */
.step1-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.step1-left { flex: 1; }
.step1-right { flex-shrink: 0; }

.wiz-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
}

.nick-input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #d0d5dd;
  padding: 10px 4px;
  font-size: 1rem;
  color: #333;
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
}
.nick-input::placeholder { color: #aab; }
.nick-input:focus { border-color: var(--accent); }

/* Gender Icon Buttons */
.gender-icons {
  display: flex;
  gap: 10px;
}
.gender-icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #d0d5dd;
  background: #f8f8fa;
  cursor: pointer;
  overflow: hidden;
  padding: 3px;
  transition: all 0.25s ease;
}
.gender-icon-btn img { width: 100%; height: 100%; }
.gender-icon-btn:hover {
  border-color: var(--accent);
  transform: scale(1.08);
}
.gender-icon-btn.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  transform: scale(1.1);
}
.gender-icon-btn.dimmed {
  opacity: 0.4;
  transform: scale(0.95);
}

/* AGB Checkbox */
.agb-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 16px;
  cursor: pointer;
}
.agb-check input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

/* Go Button */
.btn-go {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  background: linear-gradient(135deg, #6ecf5e, #4caf50);
  color: #fff;
  box-shadow: 0 4px 15px rgba(76,175,80,0.3);
}
.btn-go:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(76,175,80,0.4);
}
.btn-go:active { transform: translateY(0); }
.btn-go.btn-accent {
  background: linear-gradient(135deg, #6ecf5e, #4caf50);
}
.btn-go.btn-disabled {
  background: #d0d5dd;
  color: #999;
  box-shadow: none;
  cursor: not-allowed;
}
.btn-go.btn-disabled:hover { transform: none; }

/* Step Dots */
.step-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #d0d5dd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #999;
  background: #fff;
}
.dot.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.dot.done {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

/* Birthday Selects */
.birthday-input { margin-bottom: 18px; }
.bday-row { display: flex; gap: 10px; }
.bday-select {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #d0d5dd;
  border-radius: 10px;
  font-size: 0.92rem;
  color: #333;
  background: #fff;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s;
}
.bday-select:focus { border-color: var(--accent); }

/* Error */
.wiz-error {
  padding: 10px 14px;
  background: #fef0f0;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  color: #c0392b;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 12px;
}

/* Wizard Success */
.wizard-success {
  text-align: center;
  padding: 20px 0;
  animation: wizFadeIn 0.3s ease;
}
.wizard-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #2eb84a);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: checkPop 0.4s ease;
}
.wizard-success h2 { color: #222; }
.wizard-success p { color: #666; }
@keyframes checkPop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Online Counter */
.online-counter {
  background: #fff;
  border-radius: 14px;
  padding: 16px 28px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.online-counter-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.online-counter-num {
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #d94a8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ========== Info Section ========== */
.info-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}
.info-section > h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.info-section > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.info-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
@media (max-width: 640px) { .info-features { grid-template-columns: 1fr; } }

.info-feature {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
}
.info-icon { font-size: 2rem; margin-bottom: 12px; }
.info-feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.info-feature p { font-size: 0.85rem; color: var(--text-muted); }

.info-login { font-size: 0.9rem; color: var(--text-muted); }
.info-login a { font-weight: 600; }

/* ========== Upgrade Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
  animation: wizFadeIn 0.3s ease;
}
.modal-box h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; text-align: center; }
.modal-box .modal-sub { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 20px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hint-Overlay (DM-Hinweis etc.) */
.hint-overlay-box {
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
  animation: wizFadeIn 0.3s ease;
}
.hint-overlay-box h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.hint-icon { font-size: 2.8rem; margin-bottom: 12px; }

/* DM-Seite Send-Hint */
.dm-send-hint {
  padding: 10px 16px;
  background: rgba(240,168,78,0.1);
  border: 1px solid rgba(240,168,78,0.25);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--warning);
  text-align: center;
  margin-bottom: 8px;
  animation: wizFadeIn 0.2s ease;
}
.dm-send-hint a { color: var(--accent); font-weight: 600; }

/* Save-Overlay spezial */
.save-overlay-box {
  text-align: center;
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 40px var(--accent-glow);
}
.save-overlay-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  animation: checkPop 0.5s ease;
}
.save-overlay-box .btn-primary {
  background: linear-gradient(135deg, #6ecf5e, #4caf50);
  box-shadow: 0 4px 15px rgba(76,175,80,0.3);
}
.save-overlay-box .btn-primary:hover {
  box-shadow: 0 6px 25px rgba(76,175,80,0.4);
}
.save-overlay-box .form-group { text-align: left; }
.save-overlay-box .wizard-back { display: block; text-align: center; width: 100%; }

/* ========== Username Styling Editor ========== */
.style-preview-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 18px;
  text-align: center;
}
.style-preview-label { font-size: 0.72rem; color: var(--text-faint); display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.style-preview { font-size: 1.2rem; font-weight: 600; color: var(--text-primary); min-height: 1.5em; }

.style-editor {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}
.style-editor h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }

.style-section { margin-bottom: 14px; }
.style-section:last-child { margin-bottom: 0; }
.style-section label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }

.style-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.color-dot:hover { transform: scale(1.15); }
.color-dot.active { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); transform: scale(1.15); }
.color-none { background: var(--bg-input) !important; font-size: 0.7rem; color: var(--text-faint); display: flex; align-items: center; justify-content: center; }

.style-fonts { display: flex; gap: 6px; flex-wrap: wrap; }
.font-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.font-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.font-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.style-emojis { display: flex; flex-wrap: wrap; gap: 4px; }
.emoji-pick {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
  line-height: 1;
}
.emoji-pick:hover { background: var(--bg-surface); transform: scale(1.15); }
.emoji-pick.active { border-color: var(--accent); background: rgba(124,92,252,0.15); box-shadow: 0 0 0 1px var(--accent); }

.style-locked-hint {
  background: rgba(124,92,252,0.06);
  border: 1px solid rgba(124,92,252,0.15);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}
.style-locked-hint a { font-weight: 600; }

/* ========== Profil-Ansicht (/user.php) ========== */
.profile-view-page { max-width: 700px; }

.pv-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.pv-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}
.pv-info { flex: 1; }
.pv-info h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.pv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 10px 0;
}
.pv-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.btn-like {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 7px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}
.btn-like:hover { border-color: #f082b4; background: rgba(240,130,180,0.08); }
.btn-like.liked { border-color: #f082b4; color: #f082b4; background: rgba(240,130,180,0.1); }
.pv-likes { font-size: 0.88rem; color: var(--text-muted); }

/* Fotos Grid */
.pv-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.pv-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.pv-photo-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
}

/* Kommentare */
.pv-comments-card h2 small { font-weight: 400; color: var(--text-faint); }
.pv-comment-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.pv-comment-form input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  padding: 9px 14px;
  font-size: 0.9rem;
  outline: none;
}
.pv-comment-form input:focus { border-color: var(--border-focus); }
.pv-login-hint { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 16px; }
.pv-no-comments { font-size: 0.85rem; color: var(--text-faint); padding: 16px 0; text-align: center; }

.pv-comment {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.pv-comment:last-child { border-bottom: none; }
.pv-comment-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pv-comment-body { flex: 1; }
.pv-comment-author { font-weight: 600; font-size: 0.85rem; }
.pv-comment-time { font-size: 0.72rem; color: var(--text-faint); margin-left: 8px; }
.pv-comment-text { font-size: 0.88rem; color: var(--text-primary); margin-top: 3px; word-break: break-word; }

@media (max-width: 600px) {
  .pv-header { flex-direction: column; align-items: center; text-align: center; }
  .pv-meta { justify-content: center; }
  .pv-actions { justify-content: center; }
}

/* ========== Locked Media (Profil + DMs) ========== */
.media-lock-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: linear-gradient(135deg, rgba(15,17,23,0.85), rgba(34,38,58,0.9));
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}
.media-lock-overlay:hover { background: linear-gradient(135deg, rgba(124,92,252,0.3), rgba(34,38,58,0.85)); }
.media-lock-icon { font-size: 2rem; }
.media-lock-price { font-size: 1rem; font-weight: 700; color: var(--warning); }
.media-lock-hint { font-size: 0.72rem; color: var(--text-faint); }

/* Profil-Fotos */
.pv-photo-media { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); display: block; cursor: pointer; }
.pv-photo-locked { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.pv-photo-badge-paid { font-size: 0.68rem; color: var(--success); text-align: center; margin-top: 3px; }
.pv-photo-price-tag { font-size: 0.72rem; color: var(--warning); text-align: center; margin-top: 3px; }

/* Photo Upload */
.photo-upload-area { margin-bottom: 18px; padding: 14px; background: var(--bg-elevated); border-radius: var(--radius); }
.photo-upload-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.photo-upload-row:last-child { margin-bottom: 0; }
.photo-upload-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 7px 14px; font-size: 0.82rem; color: var(--text-muted); cursor: pointer;
}
.photo-upload-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.photo-caption-input {
  flex: 1; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 7px 12px; font-size: 0.85rem;
  color: var(--text-primary); outline: none; min-width: 120px;
}
.photo-caption-input:focus { border-color: var(--border-focus); }
.photo-pricing-label { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; cursor: pointer; }
.photo-pricing-label input { accent-color: var(--accent); }

/* DM Media */
.dm-media-preview {
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.dm-media-preview-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.dm-media-preview-inner img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.dm-media-pricing { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); }
.dm-media-pricing label { display: flex; align-items: center; gap: 3px; cursor: pointer; }
.dm-media-pricing input[type="radio"] { accent-color: var(--accent); }
.dm-media-pricing input[type="number"] { width: 70px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; color: var(--text-primary); font-size: 0.8rem; }
.dm-media-remove { background: none; border: none; color: var(--text-faint); font-size: 1rem; cursor: pointer; margin-left: auto; }
.dm-media-remove:hover { color: var(--danger); }

.dm-attach-btn {
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 4px; border-radius: 6px;
  transition: background 0.15s; color: var(--text-faint); flex-shrink: 0;
}
.dm-attach-btn:hover { background: var(--bg-elevated); color: var(--text-primary); }
.dm-attach-btn svg { stroke: currentColor; }

.dm-media-content { max-width: 240px; max-height: 200px; border-radius: 10px; display: block; margin-bottom: 4px; cursor: pointer; }
.dm-media-locked { width: 200px; height: 150px; border-radius: 10px; overflow: hidden; margin-bottom: 4px; }
.dm-media-paid-badge { font-size: 0.68rem; color: var(--success); margin-bottom: 2px; }
.dm-bubble-text { margin-top: 4px; }

/* ========== Topliste ========== */
.top-page { max-width: 700px; }
.top-card h2 { display: flex; align-items: center; gap: 8px; }
.top-card h2 small { font-weight: 400; color: var(--text-faint); font-size: 0.78rem; }

.top-list { display: flex; flex-direction: column; }
.top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--text-primary) !important;
  transition: background 0.15s;
}
.top-row:hover { background: var(--bg-elevated); }
.top-row.rank-1 { background: rgba(255,215,0,0.06); }
.top-row.rank-2 { background: rgba(192,192,192,0.05); }
.top-row.rank-3 { background: rgba(205,127,50,0.05); }

.top-rank {
  width: 36px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-faint);
  flex-shrink: 0;
}
.top-medal { font-size: 1.2rem; }

.top-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.rank-1 .top-avatar { border: 2px solid #ffd700; }
.rank-2 .top-avatar { border: 2px solid #c0c0c0; }
.rank-3 .top-avatar { border: 2px solid #cd7f32; }

.top-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-points {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--warning);
  flex-shrink: 0;
}

/* Toplisten-Belohnung */
.top-reward-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 18px;
}
.top-reward-icon { font-size: 1.6rem; flex-shrink: 0; }
.top-reward-info strong { color: var(--warning); display: block; margin-bottom: 2px; font-size: 0.9rem; }
.top-reward-info span { font-size: 0.8rem; color: var(--text-muted); }
.top-reward {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffd700;
  background: rgba(255,215,0,0.12);
  padding: 2px 6px;
  border-radius: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.top-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-faint);
  font-size: 0.88rem;
}
