/* ══════════════════════════════════════════════════════════════
   Collrd — Gamification
   Sidebar Widget, Level-Up Modal, Achievement Modal,
   Freeze Modal, Nav-Freeze, Widget Badge
   ══════════════════════════════════════════════════════════════ */

.sidebar-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px 16px;
  text-decoration: none;
  transition: background 0.15s;
  border-radius: var(--radius-sm);
  margin: 8px 8px 0 8px;
}

.sidebar-widget:hover {
  background: var(--bg-elevated);
}

.widget-avatar-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.widget-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
}

.widget-avatar {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget-avatar-initial {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.widget-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 14px;
  line-height: 1;
  background: var(--bg-card);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
}

.widget-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.widget-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-level {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon-magenta);
  font-weight: 500;
}

.widget-gems {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.sidebar-divider {
  height: 1px;
  background: var(--border-default);
  margin: 12px 16px;
}
/* ── Level-Up & Prestige Modal (F5.9 DS v2.1) ──────────── */
.levelup-overlay {
  z-index: 9999;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.levelup-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  overflow: hidden;
}

.levelup-box.levelup-animate {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.levelup-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, var(--gold)33 0%, transparent 70%);
  animation: levelup-pulse 2s ease-in-out infinite;
}

@keyframes levelup-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

/* Fullscreen particles container (on overlay, behind modal box) */
.celebration-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.levelup-particle {
  position: absolute;
  border-radius: 50%;
  animation: levelup-particle-burst 2s ease-out forwards;
}

@keyframes levelup-particle-burst {
  0%   { opacity: 0; transform: translate(0, 0) scale(1); }
  8%   { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
}

.levelup-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.levelup-star {
  font-size: var(--type-display-xl);
  color: var(--gold);
  animation: levelup-spin 0.6s ease-out;
}

@keyframes levelup-spin {
  from { transform: rotate(-20deg) scale(0.5); opacity: 0; }
  to   { transform: rotate(0deg) scale(1);    opacity: 1; }
}

.levelup-headline {
  font-family: var(--font-mono);
  font-size: var(--type-heading-sm);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.levelup-level {
  font-family: var(--font-display);
  font-size: var(--type-display-lg);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}

.levelup-title {
  font-family: var(--font-display);
  font-size: var(--type-heading-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.levelup-desc {
  font-size: var(--type-body-sm);
  color: var(--text-secondary);
  max-width: 260px;
  line-height: 1.5;
}

.levelup-btn {
  margin-top: 12px;
  min-width: 140px;
}

/* ── Prestige-specific ── */
.prestige-box {
  border-color: rgba(168, 85, 247, 0.25);
}

.prestige-star {
  font-size: 56px;
  animation: prestige-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes prestige-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Prestige shimmer rings — fullscreen expanding */
.prestige-ring {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid transparent;
  pointer-events: none;
  z-index: 0;
  width: 0;
  height: 0;
  animation: prestige-ring-expand 1.2s ease-out forwards;
}

@keyframes prestige-ring-expand {
  0%   { width: 40px; height: 40px; opacity: 0; border-width: 3px; }
  30%  { opacity: 0.7; border-width: 2px; }
  100% { width: 120vmax; height: 120vmax; opacity: 0; border-width: 1px; }
}

/* Neon ambient glow on overlay (set via JS --glow-color) */
.celebration-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse at 50% 40%,
    var(--glow-color, rgba(255,45,123,0.08)) 0%,
    transparent 70%
  );
  animation: ambient-breathe 3s ease-in-out infinite;
}

@keyframes ambient-breathe {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}
/* ── Switch Context Toggle ─────────────────────────────── */
.switch-context-toggle {
  display: flex;
  background: var(--bg-void);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.switch-ctx-btn {
  flex: 1;
  background: none;
  border: none;
  border-radius: var(--radius-full);
  padding: 5px 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.switch-ctx-btn:hover {
  color: var(--text-primary);
}

.switch-ctx-btn.active {
  background: var(--neon-magenta-soft);
  color: var(--neon-magenta);
  font-weight: 600;
}
/* ── Notification Bell ──────────────────────────────────── */
.sidebar-bell-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 0;
  position: relative;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--text-secondary);
  opacity: 0.45;
  transition: opacity 0.2s, color 0.2s;
  line-height: 1;
}

.lang-btn:hover {
  opacity: 0.8;
}

.lang-btn--active {
  opacity: 1;
  color: var(--text-primary);
}

.lang-sep {
  color: var(--text-secondary);
  opacity: 0.25;
  font-size: 11px;
  line-height: 1;
}

.sidebar-bell {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: var(--radius-md);
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.sidebar-bell:hover { background: var(--bg-elevated); color: var(--text-primary); }

.nav-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--neon-magenta);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 1px 6px;
  min-width: 16px;
  line-height: 1.4;
  margin-left: auto;
}

.sidebar-bell-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--status-error);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  line-height: 1.4;
  pointer-events: none;
}

/* ── Notification Dropdown ──────────────────────────────── */
.notif-dropdown {
  position: absolute;
  top: 48px;
  left: 0;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  z-index: 200;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  animation: notifDropIn 0.15s ease;
}

@keyframes notifDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-default);
}

.notif-dropdown-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.notif-mark-all {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--neon-cyan);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}

.notif-mark-all:hover { background: var(--neon-cyan-soft); }

.notif-dropdown-list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-loading,
.notif-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ── Einzelne Notification ──────────────────────────────── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.1s;
  text-decoration: none;
}

.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-elevated); }
.notif-item.unread { background: var(--neon-magenta-soft); }
.notif-item.unread:hover { background: rgba(255,45,123,0.15); }

.notif-item-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  text-align: center;
}

.notif-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  line-height: 1.3;
}

.notif-item.unread .notif-item-title { color: var(--text-primary); }

.notif-item-body-text {
  font-size: 14px;
  color: var(--text-secondary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.notif-item-time {
  font-size: 12px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 2px;
}

.notif-unread-dot {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
/* ═══════════════════════════════════════
   EXPORT
═══════════════════════════════════════ */
.export-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 720px;
}

.export-option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.export-option {
    cursor: pointer;
    border: 1px solid var(--border-default);
    border-radius: 10px;
    padding: 12px 16px;
    transition: border-color 0.2s, background 0.2s;
    display: block;
}

.export-option:hover {
    border-color: var(--neon-cyan);
    background: var(--neon-cyan-soft);
}

.export-option.active {
    border-color: var(--neon-cyan);
    background: rgba(0,229,255,0.08);
}

.export-option input[type="radio"] {
    display: none;
}

.export-option-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.export-option-icon {
    font-size: 22px;
    width: 32px;
    text-align: center;
}

.export-option-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.export-option-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.export-sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.export-checkbox {
    cursor: pointer;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    transition: border-color 0.2s, background 0.2s;
    display: block;
}

.export-checkbox:hover {
    border-color: var(--neon-cyan);
    background: var(--neon-cyan-soft);
}

.export-checkbox input[type="checkbox"] {
    display: none;
}

.export-checkbox:has(input:checked) {
    border-color: var(--neon-cyan);
    background: rgba(0,229,255,0.08);
}

.export-checkbox-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--text-primary);
}

.export-select-all {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.export-hint {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    min-height: 20px;
}

.export-submit-area {
    padding: 4px 0 16px;
}


/* ═══════════════════════════════════════════════════════════
   ACHIEVEMENT BADGE IM WIDGET
   Diesen Block ans Ende von main.css anhängen.
═══════════════════════════════════════════════════════════ */

/* Achievement-Badge am Avatar — PNG statt Emoji */
.widget-badge-achievement {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-void);
  border: 1.5px solid transparent;
  border-radius: 50%;
  padding: 2px;
  width: 28px;
  height: 28px;
}

.widget-badge-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 0;
}

/* Tier-spezifische Glow-Effekte */
.widget-badge-bronze  .widget-badge-img { filter: drop-shadow(0 0 2px rgba(205,127,50,0.7)); }
.widget-badge-silver  .widget-badge-img { filter: drop-shadow(0 0 2px rgba(192,192,192,0.6)); }
.widget-badge-gold    .widget-badge-img { filter: drop-shadow(0 0 3px rgba(255,215,0,0.8)); }
.widget-badge-diamond .widget-badge-img {
  filter: drop-shadow(0 0 4px rgba(185,242,255,0.9));
  animation: widget-badge-diamond-pulse 2s ease-in-out infinite;
}

@keyframes widget-badge-diamond-pulse {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(185,242,255,0.7)); }
  50%       { filter: drop-shadow(0 0 6px rgba(185,242,255,1)); }
}
/* Badge in nav-sub Links (z.B. Verträge pending count) */
.nav-sub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--gold);
  color: var(--bg-void);
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ══════════════════════════════════════════════════════════════════
   Extrahierte Template-Styles (Phase 2 CSS-Refactoring)
   ══════════════════════════════════════════════════════════════════ */

/* ── base ──────────────────────────────────────────────── */
/* ── Freeze Sidebar ── */
.sidebar-freeze-wrap {
  padding: 0 12px;
  margin-bottom: 8px;
}
.sidebar-freeze-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  white-space: nowrap;
  overflow: visible;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-freeze-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: var(--neon-cyan-soft);
}
.sidebar-freeze-btn--active {
  border-color: rgba(0,229,255,0.4);
  color: var(--neon-cyan);
  background: rgba(0,229,255,0.08);
  animation: freeze-pulse 2s ease-in-out infinite;
}
@keyframes freeze-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); }
  50%       { box-shadow: 0 0 8px 2px rgba(0,229,255,0.20); }
}
.nav-freeze-badge {
  margin-left: 6px;
  font-size: 16px;
  line-height: 1;
  animation: freeze-pulse 2s ease-in-out infinite;
}

/* ── Freeze Modal ── */
.freeze-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  animation: modalFadeIn 0.15s ease;
}
.freeze-modal-box {
  background: var(--bg-card);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 0 40px var(--neon-cyan-glow);
  animation: modalSlideUp 0.2s ease;
}
.freeze-modal-icon { font-size: 40px; text-align: center; margin-bottom: 12px; }
.freeze-modal-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
}
.freeze-modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.55;
  margin-bottom: 20px;
}
/* ── Overlay ── */
.achievement-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: achievement-overlay-in 0.3s ease;
}

@keyframes achievement-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Box ── */
.achievement-modal-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 40px 32px 32px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  overflow: hidden;
  animation: achievement-box-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes achievement-box-in {
  from { transform: scale(0.7) translateY(40px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}

/* ── Glow Hintergrund ── */
.achievement-modal-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.12;
  animation: achievement-glow-pulse 2s ease-in-out infinite;
}

@keyframes achievement-glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.12; }
  50%       { transform: translate(-50%, -50%) scale(1.2); opacity: 0.2; }
}

/* ── Header ── */
.achievement-modal-header {
  margin-bottom: 20px;
}

.achievement-modal-label {
  font-family: var(--font-mono);
  font-size: var(--type-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

/* ── Badge ── */
.achievement-modal-badge-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.achievement-modal-badge-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid transparent;
  position: relative;
  animation: achievement-ring-spin-in 0.6s ease 0.1s both;
}

@keyframes achievement-ring-spin-in {
  from { transform: rotate(-180deg) scale(0); opacity: 0; }
  to   { transform: rotate(0deg)    scale(1); opacity: 1; }
}

.achievement-modal-badge-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.achievement-modal-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* ── Partikel ── */
.achievement-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.achievement-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: particle-burst 1s ease-out forwards;
}

@keyframes particle-burst {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* ── Sparkle-Partikel (Gold & Diamond) — fullscreen rising ── */
.achievement-sparkle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: sparkle-rise 2.5s ease-out forwards;
}

@keyframes sparkle-rise {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  8%   { opacity: 1; transform: translateY(-20px) scale(1); }
  100% { opacity: 0; transform: translateY(-80vh) scale(0.2); }
}

/* ── Shimmer Sweep (Gold & Diamond) ── */
.achievement-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.06) 40%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.06) 60%,
    transparent 100%
  );
  pointer-events: none;
  animation: shimmer-sweep 1.5s ease-in-out 0.5s;
  z-index: 2;
}

@keyframes shimmer-sweep {
  from { left: -60%; }
  to   { left: 160%; }
}

/* ── Tier-Label ── */
.achievement-modal-tier {
  font-family: var(--font-mono);
  font-size: var(--type-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

/* ── Titel ── */
.achievement-modal-title {
  font-family: var(--font-display);
  font-size: var(--type-display-md);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* ── Beschreibung ── */
.achievement-modal-desc {
  font-size: var(--type-body-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 28px;
}

/* ── Button ── */
.achievement-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
}

/* ── Tier-spezifische Farben ── */
.achievement-modal-overlay.tier-bronze .achievement-modal-glow    { background: #cd7f32; }
.achievement-modal-overlay.tier-bronze .achievement-modal-badge-ring { border-color: #cd7f32; box-shadow: 0 0 30px rgba(205,127,50,0.5); }
.achievement-modal-overlay.tier-bronze .achievement-modal-badge-circle { background: radial-gradient(135deg, #3d2a0f, #1a0f05); }
.achievement-modal-overlay.tier-bronze .achievement-modal-tier    { color: #cd7f32; }
.achievement-modal-overlay.tier-bronze .achievement-modal-img     { filter: drop-shadow(0 0 6px rgba(205,127,50,0.8)); }

.achievement-modal-overlay.tier-silver .achievement-modal-glow    { background: #c0c0c0; }
.achievement-modal-overlay.tier-silver .achievement-modal-badge-ring { border-color: #c0c0c0; box-shadow: 0 0 30px rgba(192,192,192,0.4); }
.achievement-modal-overlay.tier-silver .achievement-modal-badge-circle { background: radial-gradient(135deg, #2a2a2a, var(--bg-card)); }
.achievement-modal-overlay.tier-silver .achievement-modal-tier    { color: #c0c0c0; }
.achievement-modal-overlay.tier-silver .achievement-modal-img     { filter: drop-shadow(0 0 6px rgba(192,192,192,0.7)); }

.achievement-modal-overlay.tier-gold .achievement-modal-glow      { background: #ffd700; }
.achievement-modal-overlay.tier-gold .achievement-modal-badge-ring { border-color: #ffd700; box-shadow: 0 0 40px rgba(255,215,0,0.6); animation: achievement-ring-spin-in 0.6s ease 0.1s both, gold-ring-pulse 2s ease-in-out 0.7s infinite; }
.achievement-modal-overlay.tier-gold .achievement-modal-badge-circle { background: radial-gradient(135deg, #3d320a, #1a1505); }
.achievement-modal-overlay.tier-gold .achievement-modal-tier      { color: #ffd700; }
.achievement-modal-overlay.tier-gold .achievement-modal-img       { filter: drop-shadow(0 0 8px rgba(255,215,0,0.9)); }

@keyframes gold-ring-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(255,215,0,0.6); }
  50%       { box-shadow: 0 0 60px rgba(255,215,0,0.9); }
}

.achievement-modal-overlay.tier-diamond .achievement-modal-glow    { background: #b9f2ff; }
.achievement-modal-overlay.tier-diamond .achievement-modal-badge-ring { border-color: #b9f2ff; box-shadow: 0 0 50px rgba(185,242,255,0.7); animation: achievement-ring-spin-in 0.6s ease 0.1s both, diamond-ring-pulse 1.5s ease-in-out 0.7s infinite; }
.achievement-modal-overlay.tier-diamond .achievement-modal-badge-circle { background: radial-gradient(135deg, #0a1f2e, #050d14); }
.achievement-modal-overlay.tier-diamond .achievement-modal-tier    { color: #b9f2ff; }
.achievement-modal-overlay.tier-diamond .achievement-modal-img     { filter: drop-shadow(0 0 10px rgba(185,242,255,1)); }

@keyframes diamond-ring-pulse {
  0%, 100% { box-shadow: 0 0 50px rgba(185,242,255,0.7); }
  50%       { box-shadow: 0 0 80px rgba(185,242,255,1); }
}

/* ── Firework-Burst (fullscreen, Prestige + Diamond) ── */
.celebration-firework {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.firework-dot {
  position: absolute;
  border-radius: 50%;
  animation: firework-burst 1.8s ease-out forwards;
}

@keyframes firework-burst {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  30%  { opacity: 1; }
  100% { transform: translate(var(--fx), var(--fy)) scale(0); opacity: 0; }
}

.firework-trail {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  animation: firework-trail-fade 1s ease-out forwards;
}

@keyframes firework-trail-fade {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.2); }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .levelup-particle,
  .achievement-particle,
  .achievement-sparkle,
  .achievement-shimmer,
  .firework-dot,
  .firework-trail,
  .prestige-ring,
  .celebration-canvas,
  .celebration-firework {
    animation: none !important;
    display: none !important;
  }
  .celebration-ambient {
    animation: none !important;
    opacity: 0.5;
  }
  .levelup-star,
  .prestige-star {
    animation: none !important;
  }
  .levelup-glow,
  .achievement-modal-glow {
    animation: none !important;
    opacity: 0.15;
  }
  .achievement-modal-badge-ring {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .levelup-box {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .levelup-box.levelup-animate {
    transform: none;
  }
}

/* ── dashboard / dom ───────────────────────────────────── */


/* ══════════════════════════════════════════════════════════════
   F6d — RESPONSIVE LAYOUTS (Gamification / Export)
   ══════════════════════════════════════════════════════════════ */

/* ── Export-Sections-Grid: 2-col → 1-col ──────────────────── */
@media (max-width: 480px) {
  .export-sections-grid {
    grid-template-columns: 1fr;
  }
}
