/* ════════════════════════════════════════════════════
   Sweat Attack – Styles
   ════════════════════════════════════════════════════ */

/* ── DARK THEME (default) ──────────────────────── */
:root {
  --fire: #FF4D1C;
  --fire-2: #FF9A3C;
  --bg: #0D0D0D;
  --bg-2: #161616;
  --bg-3: #1F1F1F;
  --card: #1A1A1A;
  --border: #2A2A2A;
  --text: #F5F5F5;
  --muted: #888;
  --jenne: #FF4D1C;
  --jasmin: #9B59FF;
  --julia: #00D9A3;
  --radius: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-width: 480px;
}

/* ── LIGHT THEME ──────────────────────────────── */
[data-theme="light"] {
  --fire: #6366f1;
  --fire-2: #764ba2;
  --bg: #667eea;
  --bg-2: rgba(255,255,255,0.1);
  --bg-3: rgba(255,255,255,0.2);
  --card: rgba(255,255,255,0.95);
  --border: rgba(255,255,255,0.35);
  --text: #1f2937;
  --muted: #6b7280;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

[data-theme="light"] body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) fixed;
}

/* ── LIGHT: Glas-Karten ────────────────────────── */
[data-theme="light"] .lb-row,
[data-theme="light"] .stat-card,
[data-theme="light"] .month-selector,
[data-theme="light"] .cat-btn,
[data-theme="light"] .settings-group,
[data-theme="light"] .act-item {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* ── LIGHT: Elemente direkt auf Gradient ──────── */
[data-theme="light"] .section-title{
  color:#fff;
}

[data-theme="light"] .month-label,
[data-theme="light"] .podium-name {
  color: #6366f1 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
[data-theme="light"] .input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--card);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
[data-theme="light"] .podium-block {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
[data-theme="light"] .podium-item:nth-child(1) .podium-block {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
}
[data-theme="light"] .podium-pts {
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.85));
  -webkit-background-clip: text; background-clip: text;
}
[data-theme="light"] .empty-state { color: rgba(255,255,255,0.7); }

/* ── LIGHT: Inputs ──────────────────────────────── */
[data-theme="light"] .amount-input,
[data-theme="light"] .note-input {
  background: #eef0ff;
  border-color: #c7d2fe;
  color: #1f2937;
}
[data-theme="light"] .amount-input:focus,
[data-theme="light"] .note-input:focus { border-color: var(--fire); }
[data-theme="light"] .unit-label-display { color: #6b7280; }

/* ── LIGHT: Punkte-Preview ──────────────────────── */
[data-theme="light"] .points-preview {
  background: rgba(255,255,255,0.85);
  border-color: rgba(99,102,241,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ── LIGHT: Kategorie-Buttons ──────────────────── */
[data-theme="light"] .cat-btn { color: #1f2937; }
[data-theme="light"] .cat-btn.selected {
  border-color: var(--fire);
  background: rgba(99,102,241,0.12);
}
[data-theme="light"] .cat-pts { color: #6b7280; }

/* ── LIGHT: Settings ────────────────────────────── */
[data-theme="light"] .theme-card {
  background: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.5);
}
[data-theme="light"] .theme-card.active {
  border-color: var(--fire);
  background: rgba(255,255,255,0.75);
}
[data-theme="light"] .avatar-btn {
  background: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.6);
  color: #374151;
}
[data-theme="light"] .avatar-hint { color: #6b7280; }

/* ── LIGHT: Details ─────────────────────────────── */
[data-theme="light"] .lb-meta  { color: #6b7280; }
[data-theme="light"] .act-meta { color: #6b7280; }
[data-theme="light"] .act-delete { color: #9ca3af; }
[data-theme="light"] .loading { color: rgba(255,255,255,0.7); }
[data-theme="light"] .spinner {
  border-color: rgba(255,255,255,0.3);
  border-top-color: #fff;
}

/* ── LOGIN ─────────────────────────────────────── */
#loginScreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px;
  background: radial-gradient(ellipse at 60% 20%, rgba(255,77,28,.18) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(155,89,255,.1) 0%, transparent 50%),
              #0D0D0D;
}

.login-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #FF4D1C, #FF9A3C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  line-height: 1;
}
.login-sub { color: #888; font-size: 14px; margin-bottom: 48px; letter-spacing: 0.5px; }

.login-card {
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: var(--radius);
  padding: 32px 24px;
  width: 100%;
  max-width: 360px;
}
.login-card label { display: block; font-size: 12px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.login-card input {
  width: 100%;
  background: #1F1F1F;
  border: 1px solid #2A2A2A;
  border-radius: 10px;
  color: #F5F5F5;
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  margin-bottom: 20px;
  outline: none;
  transition: border-color .2s;
}
.login-card input:focus { border-color: #FF4D1C; }

.btn-fire {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--fire), var(--fire-2));
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  border: none;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
}
.btn-fire:active { opacity: .85; transform: scale(.98); }

.login-error {
  background: rgba(255,77,28,.15);
  border: 1px solid rgba(255,77,28,.4);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: #FF4D1C;
  margin-top: 16px;
  display: none;
}
.login-error.show { display: block; }

/* ── APP SHELL ─────────────────────────────────── */
#app { display: none; min-height: 100dvh; flex-direction: column; }

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.3s, border-color 0.3s;
}
[data-theme="light"] header {
  background: rgba(102,126,234,0.92);
  border-bottom-color: rgba(255,255,255,0.2);
}

.header-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  background: linear-gradient(135deg, var(--fire), var(--fire-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  flex: 1;
}
[data-theme="light"] .header-logo {
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.85));
  -webkit-background-clip: text; background-clip: text;
}

.user-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px 6px 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s, border-color 0.3s;
}
[data-theme="light"] .user-badge { color: #fff; }

.user-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0; overflow: hidden;
}
.user-dot img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.logout-btn {
  background: none; border: none; color: var(--muted);
  font-size: 18px; cursor: pointer; padding: 4px;
  border-radius: 8px; transition: color .2s;
  display: flex; align-items: center;
}
.logout-btn:hover { color: var(--fire); }
[data-theme="light"] .logout-btn { color: rgba(255,255,255,0.7); }
[data-theme="light"] .logout-btn:hover { color: #fff; }

main { flex: 1; overflow-y: auto; padding-bottom: calc(80px + var(--safe-bottom)); }

/* ── BOTTOM NAV ───────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(22,22,22,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding-bottom: var(--safe-bottom);
  display: flex;
  transition: background 0.3s, border-color 0.3s;
}
[data-theme="light"] .bottom-nav {
  background: rgba(118,75,162,0.95);
  border-top-color: rgba(255,255,255,0.2);
}

.nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 10px 8px;
  background: none; border: none; color: var(--muted);
  cursor: pointer; transition: color .2s;
  font-size: 11px; font-weight: 600; gap: 3px;
}
.nav-btn .nav-icon { font-size: 20px; line-height: 1; }
.nav-btn .nav-icon i { font-size: 20px; }
.nav-btn.active { color: var(--fire); }
[data-theme="light"] .nav-btn { color: rgba(255,255,255,0.6); }
[data-theme="light"] .nav-btn.active { color: #fff; }

/* ── SECTIONS ─────────────────────────────────── */
.section { display: none; padding: 16px; }
.section.active { display: block; }

/* ── LEADERBOARD ──────────────────────────────── */
.month-selector {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  margin-bottom: 16px;
}
.month-nav-btn {
  background: none; border: none; color: var(--text);
  font-size: 20px; cursor: pointer; padding: 4px 8px;
  border-radius: 8px; transition: background .2s;
}
.month-nav-btn:hover { background: var(--bg-3); }
.month-label { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; }

.podium {
  display: flex; align-items: flex-end; gap: 8px;
  margin-bottom: 16px; padding: 16px 0;
}
.podium-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.podium-item:nth-child(1) { order: 2; }
.podium-item:nth-child(2) { order: 1; }
.podium-item:nth-child(3) { order: 3; }

.podium-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
  border: 3px solid transparent; overflow: hidden;
}
.podium-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.podium-item:nth-child(1) .podium-avatar { width: 64px; height: 64px; font-size: 20px; border-color: gold; }

.podium-name { font-size: 13px; font-weight: 700; }
.podium-pts {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px;
  background: linear-gradient(135deg, var(--fire), var(--fire-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.podium-item:nth-child(1) .podium-pts { font-size: 28px; }

.podium-block {
  width: 100%; background: var(--bg-3);
  border-radius: 8px 8px 0 0; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--muted);
}
.podium-item:nth-child(1) .podium-block { height: 80px; background: linear-gradient(to top, rgba(255,77,28,.15), transparent); border-color: rgba(255,77,28,.3); color: var(--fire); }
.podium-item:nth-child(2) .podium-block { height: 56px; }
.podium-item:nth-child(3) .podium-block { height: 40px; }
[data-theme="light"] .podium-item:nth-child(1) .podium-block {
  background: linear-gradient(to top, rgba(255, 143, 0, 0.2), #e5a937);
  border-color: rgba(255, 208, 0, 0.836);
}

.leaderboard-list { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  animation: slideIn .3s ease;
}
.lb-rank { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--muted); width: 24px; text-align: center; }
.lb-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; }
.lb-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.lb-name { font-weight: 700; flex: 1; }
.lb-meta { font-size: 12px; color: var(--muted); }
.lb-pts { font-family: 'Bebas Neue', sans-serif; font-size: 24px; color: var(--fire); }

/* ── LOG ACTIVITY ─────────────────────────────── */
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; letter-spacing: 1px; margin-bottom: 16px;
}

.category-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px;
}
.cat-btn {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 16px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; transition: all .2s; text-align: center; color: var(--text);
}
.cat-btn:active { transform: scale(.96); }
.cat-btn.selected { border-color: var(--fire); background: rgba(99,102,241,.08); }
[data-theme="dark"] .cat-btn.selected { background: rgba(255,77,28,.08); }
.cat-icon { font-size: 32px; line-height: 1; }
.cat-icon i { color: var(--fire); }
.cat-name { font-size: 13px; font-weight: 700; }
.cat-pts { font-size: 11px; color: var(--muted); }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }

.amount-input-row { display: flex; align-items: center; gap: 12px; }
.amount-input {
  flex: 1; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text);
  font-family: 'Bebas Neue', sans-serif; font-size: 36px;
  padding: 12px 16px; outline: none; width: 100%;
  transition: border-color .2s;
  -webkit-appearance: none; -moz-appearance: textfield;
}
.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.amount-input:focus { border-color: var(--fire); }
.unit-label-display { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--muted); white-space: nowrap; }

.note-input {
  width: 100%; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); font-family: inherit; font-size: 15px;
  padding: 12px 16px; outline: none; resize: none; height: 80px;
  transition: border-color .2s;
}
.note-input:focus { border-color: var(--fire); }

.points-preview {
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(118,75,162,.08));
  border: 1px solid rgba(99,102,241,.3);
  border-radius: var(--radius); padding: 16px;
  text-align: center; margin-bottom: 24px; display: none;
}
[data-theme="dark"] .points-preview {
  background: linear-gradient(135deg, rgba(255,77,28,.12), rgba(255,154,60,.08));
  border-color: rgba(255,77,28,.3);
}
.points-preview.show { display: block; }
.points-preview-value {
  font-family: 'Bebas Neue', sans-serif; font-size: 48px;
  background: linear-gradient(135deg, var(--fire), var(--fire-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.points-preview-label { font-size: 12px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

.success-toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #0B2; color: #fff; border-radius: 100px;
  padding: 12px 24px; font-size: 14px; font-weight: 600;
  opacity: 0; transition: all .3s; z-index: 999; white-space: nowrap; pointer-events: none;
}
.success-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── MY ACTIVITIES ────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--fire); line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

.activity-list { display: flex; flex-direction: column; gap: 8px; }
.act-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  animation: slideIn .25s ease;
}
.act-icon { font-size: 28px; flex-shrink: 0; width: 36px; text-align: center; }
.act-icon i { color: var(--fire); font-size: 24px; }
.act-body { flex: 1; min-width: 0; }
.act-name { font-weight: 700; font-size: 15px; }
.act-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.act-pts { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--fire); }
.act-delete {
  background: none; border: none; color: var(--muted);
  font-size: 18px; cursor: pointer; padding: 4px; border-radius: 8px; transition: color .2s;
}
.act-delete:hover { color: #FF4444; }

.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-state .es-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

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

.loading { text-align: center; padding: 32px; color: var(--muted); font-size: 14px; }
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid var(--border); border-top-color: var(--fire);
  border-radius: 50%; animation: spin .6s linear infinite; margin-right: 8px; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SETTINGS ──────────────────────────────────── */
.settings-group {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.settings-group-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted); margin-bottom: 16px;
}

.theme-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-card {
  border: 2px solid var(--border); border-radius: 12px;
  padding: 12px; cursor: pointer; transition: border-color .2s, transform .1s;
  text-align: center; background: var(--bg-3);
}
.theme-card:active { transform: scale(.97); }
.theme-card.active { border-color: var(--fire); }
.theme-preview { height: 56px; border-radius: 8px; margin-bottom: 10px; display: flex; align-items: center; padding: 10px; gap: 8px; }
.preview-dark  { background: #0D0D0D; }
.preview-light { background: linear-gradient(135deg, #667eea, #764ba2); }
.tp-dot { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
.preview-dark  .tp-dot { background: #FF4D1C; }
.preview-light .tp-dot { background: rgba(255,255,255,0.9); }
.tp-lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.tp-lines div { height: 4px; border-radius: 2px; }
.preview-dark  .tp-lines div { background: #2A2A2A; }
.preview-dark  .tp-lines div:first-child { background: #FF4D1C; width: 65%; }
.preview-light .tp-lines div { background: rgba(255,255,255,0.25); }
.preview-light .tp-lines div:first-child { background: rgba(255,255,255,0.85); width: 65%; }
.theme-name { font-size: 13px; font-weight: 700; }

.avatar-setting { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.avatar-preview-circle {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff; overflow: hidden; flex-shrink: 0;
}
.avatar-preview-circle img { width: 100%; height: 100%; object-fit: cover; }
.avatar-actions { display: flex; flex-direction: column; gap: 8px; }
.avatar-btn {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 14px; cursor: pointer; transition: opacity .2s;
  display: flex; align-items: center; gap: 8px;
}
.avatar-btn:active { opacity: .7; }
.avatar-btn-ghost { color: var(--muted); }
.avatar-hint { font-size: 12px; color: var(--muted); }

/* ═══════════════════════════════════════════���════════
   DESKTOP LAYOUT  (≥ 680px)
   ════════════════════════════════════════════════════ */
@media (min-width: 680px) {
  body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  /* Dark theme: subtile Seitenleiste */
  [data-theme="dark"] body {
    background: #080808;
  }

  #loginScreen {
    position: fixed;
    inset: 0;
    width: 100%;
  }

  #app {
    width: 100%;
    max-width: var(--app-width);
    min-height: 100dvh;
    position: relative;
    box-shadow: 0 0 80px rgba(0,0,0,0.5);
  }

  [data-theme="dark"] #app {
    background: var(--bg);
    border-left:  1px solid #1e1e1e;
    border-right: 1px solid #1e1e1e;
  }

  /* Bottom Nav zentriert sich mit dem App-Container */
  .bottom-nav {
    width: var(--app-width);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  /* Mehr Spalten für Kategorien auf Desktop */
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Aktivitätsliste etwas kompakter */
  .act-item { padding: 12px 16px; }
}

/* ── Passwort-Form ───────────────────────────────── */
.pw-change-form { display: flex; flex-direction: column; gap: 10px; }
.pw-change-form input {
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s;
}
.pw-change-form input:focus { border-color: var(--accent); }
.pw-msg { font-size: 13px; min-height: 18px; }
.pw-msg-success { color: #4ade80; }
.pw-msg-error   { color: #f87171; }
