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

:root {
  color-scheme: dark;
  --bg: #05060d;
  --bg-alt: #0f111c;
  --card: #141625;
  --card-alt: #1b1e33;
  --primary: #7b5cfa;
  --primary-dark: #6040f6;
  --accent: #09b28b;
  --text: #f8fbff;
  --muted: #98a0c0;
  --border: #262840;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  margin: 0;
  background: radial-gradient(circle at top, #101331, #05060d 50%);
  color: var(--text);
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 120px;
}

.app-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 6vw, 3rem);
  margin: 6px 0;
}

.hero-copy .subtitle {
  color: var(--muted);
  max-width: 620px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.search-field {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 240px;
  gap: 12px;
}

.search-field input {
  background: transparent;
  border: none;
  color: var(--text);
  flex: 1;
  font-size: 1rem;
  padding: 16px 0;
}

.search-field input:focus {
  outline: none;
}

.search-field .icon {
  color: var(--muted);
  font-size: 1.4rem;
}

.toolbar-actions {
  display: flex;
  gap: 12px;
}

button {
  border: none;
  font: inherit;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.primary-btn:hover:not(:disabled) {
  box-shadow: 0 10px 25px rgba(123, 92, 250, 0.35);
  transform: translateY(-1px);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ghost-btn.danger {
  border-color: rgba(250, 112, 112, 0.3);
  color: #ffb1b1;
}

.icon-btn {
  background: transparent;
  color: var(--muted);
  font-size: 1.8rem;
  padding: 4px 8px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin-top: 8px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 220px;
}

.filter-label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.category-chips,
.status-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid transparent;
}

.chip.active {
  border-color: rgba(255, 255, 255, 0.3);
}

.chip-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
}

.chip-name {
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
}

.chip-delete {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  border: none;
  color: inherit;
  width: 24px;
  height: 24px;
  font-size: 1rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

/* Responsive: 2 Spalten auf mittleren Bildschirmen */
@media (max-width: 1024px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: 2 Spalten auf kleinen Bildschirmen (wie Movie-Cards) */
@media (max-width: 640px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .game-media {
    height: 200px;
  }
  .game-info {
    padding: 12px;
    gap: 6px;
  }
  .game-info h3 {
    font-size: 0.95rem;
    min-height: 2.6em;
  }
  .pill-row,
  .ratings {
    gap: 3px;
  }
  .pill,
  .rating-pill {
    padding: 2px 5px;
    font-size: 0.6rem;
  }
  .rating-pill {
    font-size: 0.65rem;
  }
  .note {
    padding: 6px 8px;
    font-size: 0.75rem;
    max-height: 40px;
  }
  .meta-row {
    font-size: 0.75rem;
    margin-top: 2px;
  }
  .card-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 8px;
    gap: 6px;
  }
  .game-card .ghost-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-width: 0;
    width: 100%;
    justify-content: center;
  }
}

.game-card {
  background: var(--card);
  border-radius: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: rgba(123, 92, 250, 0.3);
}

.game-media {
  width: 100%;
  height: 240px;
  background: linear-gradient(145deg, #233, #111);
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 14px 14px 0 0;
}

.game-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  justify-content: space-between;
}

.game-info h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  font-weight: 600;
  min-height: 2.6em;
}

.game-info .description {
  display: none;
}

.pill-row,
.ratings,
.meta-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
}

.ratings {
  gap: 3px;
}

.pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 0.6rem;
  white-space: nowrap;
}

.rating-pill {
  background: rgba(123, 92, 250, 0.2);
  border: 1px solid rgba(123, 92, 250, 0.5);
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
}

.rating-pill.secondary {
  background: rgba(9, 178, 139, 0.18);
  border-color: rgba(9, 178, 139, 0.4);
}

.rating-pill.category-pill {
  border: none;
}

.note {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 0.75rem;
  max-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.note-block {
  background: var(--card-alt);
  border-radius: 16px;
  padding: 16px;
}

.note-block .label {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
}

.meta-row {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 2px;
}

.status {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status.pending {
  background: rgba(255, 214, 102, 0.16);
  color: #ffd666;
  border-color: rgba(255, 214, 102, 0.4);
}

.status.live {
  background: rgba(46, 204, 137, 0.14);
  color: #8df6c5;
  border-color: rgba(46, 204, 137, 0.4);
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
  gap: 6px;
}

.game-card .ghost-btn {
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 8px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.amazon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.amazon-card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  min-height: 220px;
}

.amazon-card-header {
  display: flex;
  gap: 16px;
}

.amazon-card .product-media {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(145deg, #233, #111);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.amazon-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.amazon-card .product-description {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 4px 0 0;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.amazon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.amazon-card .price-tag {
  font-size: 1.2rem;
  font-weight: 700;
  color: #7bfac6;
}

.amazon-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 215, 141, 0.1);
  border: 1px solid rgba(255, 215, 141, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
  color: #ffd78d;
}

.amazon-note {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.85rem;
  min-height: 44px;
}

.amazon-preview-card {
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 18px;
  background: var(--card-alt);
  min-height: 140px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.amazon-preview-card.empty {
  justify-content: center;
  color: var(--muted);
}

.amazon-preview-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.amazon-preview-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 12, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.modal-card {
  background: var(--card);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 720px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-card.small {
  max-width: 420px;
}

.modal-head {
  padding: 24px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-body {
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span,
.field-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-alt);
  color: var(--text);
  padding: 12px 16px;
  font: inherit;
}

.field input[type="color"] {
  width: 100%;
  height: 48px;
  padding: 4px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-alt);
}

.field textarea {
  resize: vertical;
}

.inline-field {
  display: flex;
  gap: 12px;
}

.inline-field input {
  flex: 1;
}

.live-preview {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.preview-card .game-media {
  min-height: 140px;
}

.suggestions {
  display: grid;
  gap: 12px;
}

.suggestion {
  text-align: left;
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.suggestion.selected {
  border-color: rgba(123, 92, 250, 0.6);
  background: rgba(123, 92, 250, 0.15);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: rgba(7, 8, 16, 0.9);
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fade-in 0.2s ease forwards;
}

.toast.success {
  border-color: rgba(9, 178, 139, 0.6);
}

.toast.error {
  border-color: rgba(250, 112, 112, 0.6);
}

.empty-state {
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 60px 20px;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.detail-body {
  background: radial-gradient(circle at top, #101331, #05060d 50%);
}

.detail-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 120px;
}

.detail-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
  position: relative;
  z-index: 1000;
}

.detail-header .ghost-btn {
  position: relative;
  z-index: 1001;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
}

.detail-card {
  background: var(--card);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-card > .detail-hero {
  border-radius: 0;
  margin-bottom: 0;
}

.detail-card > .detail-panel--video {
  margin: 32px 32px 0;
  border-radius: 20px;
}

.detail-card > .detail-lower {
  margin: 32px;
  margin-top: 24px;
}

.detail-card > .detail-actions-row {
  margin: 0 32px 32px;
}

.detail-hero {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 32px;
}

.detail-cover {
  border-radius: 20px;
  width: 280px;
  height: 420px;
  background: linear-gradient(145deg, #233, #111);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(5, 6, 13, 0.7));
}

.cover-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  z-index: 1;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.detail-summary {
  color: var(--muted);
  line-height: 1.6;
}

.detail-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.hero-ratings .rating-pill {
  font-size: 0.85rem;
  padding: 6px 14px;
}

.meta-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.meta-item {
  background: var(--card-alt);
  border-radius: 16px;
  padding: 12px 14px;
}

.meta-item .value {
  margin: 0;
}

.detail-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.detail-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
  margin-top: 0;
}

.detail-panel {
  background: var(--card-alt);
  border-radius: 20px;
  padding: 20px;
}

.detail-panel--video {
  padding: 24px;
  margin-bottom: 24px;
}

.detail-video {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
}

.detail-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.detail-video.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--muted);
}

.detail-overview-text {
  line-height: 1.7;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ==================== IMPROVED GAME DETAIL PAGE ==================== */

.game-detail-card {
  background: var(--card);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.game-detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(123, 92, 250, 0.05) 0%, rgba(9, 178, 139, 0.05) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.game-detail-cover-wrapper {
  position: relative;
}

.game-detail-cover {
  width: 100%;
  height: 480px;
  border-radius: 20px;
  background: linear-gradient(145deg, #1b1e33, #141625);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.cover-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.cover-category-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-detail-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-detail-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-modes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-detail-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.meta-item-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.meta-item-inline.status-pending .status-dot {
  background: #fbbf24;
}

.meta-item-inline.status-released .status-dot {
  background: var(--accent);
}

.game-detail-ratings {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.rating-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: var(--card-alt);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rating-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rating-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.game-detail-description {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.game-detail-description p {
  margin: 0;
}

.game-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.game-detail-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  padding: 32px;
}

.game-detail-main-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.game-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.game-detail-section {
  background: var(--card-alt);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.section-title svg {
  color: var(--primary);
  flex-shrink: 0;
}

.section-content {
  color: var(--muted);
}

.description-text {
  line-height: 1.8;
  margin: 0;
  font-size: 0.95rem;
}

.note-text {
  line-height: 1.7;
  margin: 0;
  padding: 16px;
  background: rgba(123, 92, 250, 0.1);
  border-radius: 12px;
  border-left: 3px solid var(--primary);
}

.trailer-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.trailer-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.trailer-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  color: var(--muted);
  text-align: center;
}

.trailer-placeholder svg {
  color: var(--muted);
  opacity: 0.5;
}

.trailer-placeholder p {
  margin: 0;
  font-size: 0.9rem;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.info-value {
  font-size: 0.95rem;
  color: var(--text);
}

.category-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.modes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Responsive Design for Game Detail */
@media (max-width: 1024px) {
  .game-detail-hero {
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 24px;
  }
  
  .game-detail-cover {
    height: 420px;
  }
  
  .game-detail-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .game-detail-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }
  
  .game-detail-cover {
    height: 360px;
    max-width: 240px;
    margin: 0 auto;
  }
  
  .game-detail-content {
    padding: 20px;
  }
  
  .game-detail-actions {
    flex-direction: column;
  }
  
  .game-detail-actions .primary-btn,
  .game-detail-actions .ghost-btn {
    width: 100%;
    justify-content: center;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   PROJEKTAUSWAHL - Navigation Drawer
   ============================================ */

.nav-toggle {
  position: fixed;
  top: 18px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 12, 20, 0.8);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 10px 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 120;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.nav-toggle:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bars span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}

.project-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(360px, 86vw);
  height: 100vh;
  background: rgba(12, 14, 24, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.45);
  padding: 32px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 110;
}

.project-drawer__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-drawer__head h2 {
  margin: 4px 0 6px;
  font-size: 1.4rem;
}

.project-drawer__head p {
  margin: 0;
}

.drawer-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.drawer-back-btn:hover,
.drawer-back-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-2px);
  outline: none;
}

.drawer-back-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.drawer-back-label {
  letter-spacing: 0.02em;
}

.drawer-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.project-drawer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-drawer__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-btn {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.project-btn__label {
  font-weight: 600;
}

.project-btn__description {
  font-size: 0.8rem;
  color: var(--muted);
}

.project-btn:hover,
.project-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  outline: none;
}

.project-btn.active {
  background: linear-gradient(135deg, rgba(123, 92, 250, 0.2), rgba(96, 64, 246, 0.2));
  border-color: rgba(123, 92, 250, 0.5);
  box-shadow: 0 10px 30px rgba(123, 92, 250, 0.3);
}

.project-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
}

.project-btn--ghost:hover,
.project-btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.project-content {
  min-height: 100vh;
}

.project-content.hidden {
  display: none;
}

body.drawer-open {
  overflow: hidden;
}

body.drawer-open .project-drawer {
  transform: translateX(0);
}

body.drawer-open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger-Button verstecken wenn Drawer offen ist */
body.drawer-open .nav-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-20px);
}

/* ============================================
   GELDZÄHLER - Styles für die Geldzähler-Anwendung
   ============================================ */

/* Hauptcontainer für alle Geldzähler-Elemente */
.money-counter-container {
  display: flex;                      /* Flexbox-Layout */
  flex-direction: column;             /* Vertikale Anordnung (von oben nach unten) */
  gap: 24px;                          /* 24px Abstand zwischen den Elementen */
}

/* Karte die das aktuelle Guthaben anzeigt */
.balance-card {
  background: var(--card);            /* Hintergrundfarbe */
  border-radius: 24px;                /* Stark abgerundete Ecken */
  border: 1px solid rgba(255, 255, 255, 0.06); /* Subtiler Rahmen */
  padding: 32px;                      /* Innenabstand */
  text-align: center;                 /* Zentrierte Ausrichtung */
}

/* Überschrift in der Guthaben-Karte */
.balance-card h2 {
  margin: 0 0 16px;                   /* Abstand nach unten */
  font-size: 1.1rem;                  /* Schriftgröße */
  color: var(--muted);                /* Gedämpfte Farbe */
  text-transform: uppercase;          /* Großbuchstaben */
  letter-spacing: 0.1em;              /* Abstand zwischen Buchstaben */
  font-weight: 600;                   /* Halbfett */
}

/* Anzeige des Guthaben-Betrags (große Zahl) */
.balance-amount {
  font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive Schriftgröße (min 2.5rem, max 4rem) */
  font-weight: 700;                   /* Fett */
  margin: 0;                          /* Kein Außenabstand */
  transition: color 0.3s ease;        /* Sanfter Farbübergang */
}

/* Positives Guthaben: Grün */
.balance-amount.positive {
  color: var(--accent);               /* Akzentfarbe (grün) */
}

/* Negatives Guthaben: Rot */
.balance-amount.negative {
  color: #ff7070;                     /* Rötliche Farbe */
}

/* Container für die Aktions-Buttons (Einnahme/Ausgabe hinzufügen) */
.money-actions {
  display: flex;                      /* Flexbox-Layout */
  gap: 12px;                          /* Abstand zwischen Buttons */
  justify-content: center;            /* Zentrierte Ausrichtung */
  flex-wrap: wrap;                    /* Buttons umbrechen wenn Platz fehlt */
}

/* Container für die Ziele-Liste */
.goals-section {
  background: var(--card);            /* Hintergrundfarbe */
  border-radius: 24px;                /* Abgerundete Ecken */
  border: 1px solid rgba(255, 255, 255, 0.06); /* Rahmen */
  padding: 28px;                      /* Innenabstand */
}

/* Container für die Liste aller Ziele */
.goals-list {
  display: grid;                      /* Grid-Layout */
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Responsive Spalten */
  gap: 20px;                          /* Abstand zwischen Zielen */
}

/* Einzelnes Ziel-Element */
.goal-item {
  background: var(--card-alt);        /* Alternative Hintergrundfarbe */
  border-radius: 16px;               /* Abgerundete Ecken */
  padding: 24px;                      /* Innenabstand */
  border: 1px solid rgba(255, 255, 255, 0.04); /* Subtiler Rahmen */
  transition: all 0.2s ease;          /* Sanfte Übergänge */
  display: flex;                      /* Flexbox-Layout */
  flex-direction: column;             /* Vertikale Anordnung */
  gap: 16px;                          /* Abstand zwischen Elementen */
}

/* Hover-Effekt: Ziel hebt sich leicht an */
.goal-item:hover {
  border-color: rgba(255, 255, 255, 0.1); /* Hellerer Rahmen */
  transform: translateY(-2px);        /* Leichtes Anheben */
}

/* Abgeschlossenes Ziel */
.goal-item.completed {
  border-color: var(--accent);        /* Grüner Rahmen */
  background: rgba(11, 110, 79, 0.05); /* Leicht grüner Hintergrund */
}

/* Header-Bereich des Ziels */
.goal-header {
  display: flex;                      /* Flexbox-Layout */
  align-items: center;                /* Vertikale Zentrierung */
  justify-content: space-between;     /* Platz zwischen Name und Badge */
  gap: 12px;                          /* Abstand */
}

/* Name des Ziels */
.goal-name {
  margin: 0;                          /* Kein Außenabstand */
  font-size: 1.3rem;                  /* Schriftgröße */
  font-weight: 700;                   /* Fett */
  flex: 1;                            /* Nimmt verfügbaren Platz ein */
}

/* Badge für abgeschlossene Ziele */
.goal-badge {
  background: var(--accent);          /* Grüner Hintergrund */
  color: white;                       /* Weißer Text */
  padding: 4px 12px;                  /* Innenabstand */
  border-radius: 12px;                /* Abgerundete Ecken */
  font-size: 0.75rem;                 /* Kleine Schrift */
  font-weight: 600;                   /* Halbfett */
  text-transform: uppercase;          /* Großbuchstaben */
  letter-spacing: 0.05em;             /* Abstand zwischen Buchstaben */
}

/* Beschreibung des Ziels */
.goal-description {
  margin: 0;                          /* Kein Außenabstand */
  color: var(--muted);                /* Gedämpfte Farbe */
  font-size: 0.9rem;                  /* Kleinere Schrift */
  line-height: 1.5;                  /* Zeilenhöhe */
}

/* Fortschritts-Bereich */
.goal-progress {
  display: flex;                      /* Flexbox-Layout */
  flex-direction: column;             /* Vertikale Anordnung */
  gap: 8px;                           /* Abstand */
}

/* Fortschrittsbalken-Container */
.goal-progress-bar {
  width: 100%;                        /* Volle Breite */
  height: 8px;                        /* Feste Höhe */
  background: rgba(255, 255, 255, 0.1); /* Heller Hintergrund */
  border-radius: 4px;                 /* Abgerundete Ecken */
  overflow: hidden;                   /* Versteckt überlaufenden Inhalt */
}

/* Fortschrittsbalken-Füllung */
.goal-progress-fill {
  height: 100%;                       /* Volle Höhe */
  background: var(--accent);          /* Grüne Farbe */
  border-radius: 4px;                 /* Abgerundete Ecken */
  transition: width 0.3s ease;        /* Sanfte Breitenänderung */
}

/* Beträge-Anzeige */
.goal-amounts {
  display: flex;                      /* Flexbox-Layout */
  align-items: center;                /* Vertikale Zentrierung */
  gap: 8px;                           /* Abstand */
  font-size: 1.1rem;                  /* Schriftgröße */
  font-weight: 600;                   /* Halbfett */
}

/* Aktueller Betrag */
.goal-current {
  color: var(--accent);               /* Grüne Farbe */
}

/* Separator */
.goal-separator {
  color: var(--muted);                /* Gedämpfte Farbe */
}

/* Zielbetrag */
.goal-target {
  color: var(--text);                 /* Normale Textfarbe */
}

/* Verbleibender Betrag */
.goal-remaining {
  font-size: 0.85rem;                 /* Kleinere Schrift */
  color: var(--muted);                /* Gedämpfte Farbe */
}

/* Aktions-Buttons für Ziele */
.goal-actions {
  display: flex;                      /* Flexbox-Layout */
  gap: 8px;                           /* Abstand zwischen Buttons */
  flex-wrap: wrap;                    /* Buttons umbrechen wenn Platz fehlt */
  margin-top: auto;                    /* Drückt Buttons nach unten */
}

.goal-actions .ghost-btn,
.goal-actions .primary-btn {
  flex: 1;                            /* Gleiche Breite */
  min-width: 100px;                   /* Mindestbreite */
}

@media (max-width: 1200px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }
}

@media (max-width: 900px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
  }
  .game-media {
    height: 220px;
  }
  .detail-hero {
    grid-template-columns: 1fr;
  }
  .detail-lower {
    grid-template-columns: 1fr;
  }
}

/* ==================== LOGIN PAGE STYLES ==================== */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top, #101331, #05060d 50%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header h1 {
  font-size: 2rem;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-header .subtitle {
  color: var(--muted);
  margin: 0;
}

.form-container {
  width: 100%;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
  color: var(--muted);
  transition: color 0.2s;
}

.password-toggle:hover {
  color: var(--text);
}

.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.error-message {
  padding: 12px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 0.9rem;
  text-align: center;
}

.error-message.hidden {
  display: none;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.auth-form .primary-btn {
  width: 100%;
  margin-top: 8px;
}

.auth-form .primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Improved Login Card */
.login-card {
  animation: slideUp 0.4s ease-out;
  backdrop-filter: blur(10px);
}

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

.login-header h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 2FA Modal Styles */
.modal.hidden {
  display: none;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.icon-btn:hover {
  color: var(--text);
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.ghost-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

.danger-btn {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.danger-btn:hover:not(:disabled) {
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.35);
  transform: translateY(-2px);
}

/* Settings Page Styles */
.settings-container {
  min-height: 100vh;
  padding: 40px 24px;
  background: radial-gradient(circle at top, #101331, #05060d 50%);
}

.settings-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.settings-header {
  margin-bottom: 40px;
  text-align: center;
}

.settings-header h1 {
  font-size: 2rem;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.settings-header .subtitle {
  color: var(--muted);
  margin: 0;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.settings-section {
  padding: 24px;
  background: var(--card-alt);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.settings-section h2 {
  font-size: 1.3rem;
  margin: 0 0 20px 0;
  color: var(--text);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

/* 2FA Status */
.two-factor-status {
  margin-bottom: 24px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge--success {
  background: rgba(9, 178, 139, 0.2);
  color: var(--accent);
}

.status-badge--warning {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.status-text {
  margin: 0;
  color: var(--muted);
}

/* 2FA Setup */
.setup-step {
  margin-bottom: 32px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.setup-step h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: var(--text);
}

.setup-step p {
  margin: 0 0 16px 0;
  color: var(--muted);
  line-height: 1.6;
}

.qr-code-container {
  display: flex;
  justify-content: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  margin: 20px 0;
}

.qr-code-container img {
  max-width: 100%;
  height: auto;
}

.manual-entry {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.manual-entry p {
  margin: 0 0 12px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.manual-key {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 12px 0;
  word-break: break-all;
  color: var(--text);
}

.copy-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: var(--primary-dark);
}

.verify-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* 2FA Enabled */
.success-message {
  padding: 16px;
  background: rgba(9, 178, 139, 0.1);
  border: 1px solid rgba(9, 178, 139, 0.3);
  border-radius: 12px;
  margin-bottom: 24px;
}

.success-message p {
  margin: 0;
  color: var(--accent);
  font-weight: 500;
}

.backup-codes-container {
  margin: 24px 0;
  padding: 20px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
}

.backup-codes-container h3 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: var(--text);
}

.warning-text {
  margin: 0 0 16px 0;
  color: #fbbf24;
  font-size: 0.9rem;
}

.backup-codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.backup-code-item {
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}

.backup-code-item:hover {
  background: var(--card-alt);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.disable-form {
  margin-top: 24px;
  padding: 20px;
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 12px;
}

.disable-form h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: var(--text);
}

.disable-form p {
  margin: 0 0 16px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.two-factor-actions {
  margin-top: 20px;
}

.settings-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.back-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ============================================
   To-Do Cockpit Styles
   ============================================ */

.todo-page {
  min-height: 100vh;
}

.todo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.todo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.stat-card.warning {
  border-color: rgba(255, 120, 120, 0.4);
}

.stat-card.success {
  border-color: rgba(9, 178, 139, 0.4);
}

.stat-card .bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.stat-card .bar span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.todo-filters {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.todo-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.todo-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.todo-column-head {
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.todo-column-head.primary {
  border-color: rgba(123, 92, 250, 0.4);
}

.todo-column-head.accent {
  border-color: rgba(9, 178, 139, 0.4);
}

.todo-column-head.danger {
  border-color: rgba(255, 120, 120, 0.4);
}

.todo-column-head.success {
  border-color: rgba(147, 255, 214, 0.4);
}

.todo-column-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.todo-card {
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.todo-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.todo-title {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.todo-description {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.todo-priority {
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.todo-priority.low {
  background: rgba(9, 178, 139, 0.15);
  color: #7ef0c7;
}

.todo-priority.medium {
  background: rgba(123, 92, 250, 0.18);
  color: #d6c7ff;
}

.todo-priority.high {
  background: rgba(255, 169, 64, 0.18);
  color: #ffd9a6;
}

.todo-priority.critical {
  background: rgba(255, 120, 120, 0.2);
  color: #ffc7c7;
}

.todo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}

.todo-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.todo-checklist {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.todo-checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.todo-checklist-head .bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.todo-checklist-head .bar span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.todo-checklist ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.todo-checklist li button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: inherit;
  padding: 6px 4px;
  border-radius: 10px;
  text-align: left;
}

.todo-checklist li button:hover {
  background: rgba(255, 255, 255, 0.04);
}

.todo-checklist .box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.todo-checklist .box.checked {
  background: var(--primary);
  border-color: var(--primary);
}

.todo-checklist .done {
  color: var(--muted);
  text-decoration: line-through;
}

.todo-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.todo-action-right {
  display: flex;
  gap: 8px;
}

.todo-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 12px 0;
}

.modal-card.large {
  max-width: 700px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

/* ============================================
   MOVIES WATCHLIST - Styles für die Film-Watchlist
   ============================================ */

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.movie-card {
  background: var(--card);
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: rgba(123, 92, 250, 0.3);
}

.movie-poster-compact {
  width: 100%;
  height: 260px;
  background: linear-gradient(145deg, #233, #111);
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 12px 12px 0 0;
}

.movie-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.movie-rating-compact {
  color: #ffd666;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.movie-rating-compact .vote-count,
.rating-pill .vote-count {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.75rem;
}

.movie-personal-rating-compact {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.movie-status-badge-compact {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  margin-top: 4px;
}

.movie-status-badge-compact.status-watchlist {
  background: rgba(123, 92, 250, 0.8);
  color: white;
}

.movie-status-badge-compact.status-watching {
  background: rgba(255, 169, 64, 0.8);
  color: white;
}

.movie-status-badge-compact.status-watched {
  background: rgba(9, 178, 139, 0.8);
  color: white;
}

.movie-status-badge-compact.status-favorite {
  background: rgba(255, 120, 120, 0.8);
  color: white;
}

.movie-info-compact {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 140px; /* Mindesthöhe für einheitliches Layout */
}

.movie-title-compact {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.6em;
}

.movie-meta-compact {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--muted);
}

.movie-streaming-icons {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  min-height: 24px; /* Platzhalter-Höhe auch wenn keine Icons vorhanden */
}

.movie-category-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  margin-top: 4px;
}

.streaming-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.movie-actions-compact {
  display: flex;
  gap: 6px;
  margin-top: auto; /* Drückt Buttons nach unten */
  align-items: center;
  flex-wrap: wrap;
  padding-top: 8px; /* Abstand nach oben */
}

.watched-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #666;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.watched-icon-btn:hover {
  background: #777;
  transform: scale(1.1);
}

.watched-icon-btn.watched {
  background: #ffd700;
  color: #000;
}

.watched-icon-btn.watched:hover {
  background: #ffed4e;
}

.watched-icon-btn svg {
  width: 18px;
  height: 18px;
}

.movie-actions-compact .ghost-btn {
  flex: 1;
  padding: 6px 10px;
  font-size: 0.8rem;
  text-align: center;
  min-width: 0;
}

.movie-actions-compact .ghost-btn.danger {
  flex: 0 0 auto;
  width: 32px;
  padding: 6px;
  font-size: 1.2rem;
  line-height: 1;
}

.movie-header h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.movie-original-title {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.movie-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

.movie-genres {
  color: var(--primary);
}

.movie-rating-row {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
}

.movie-rating {
  color: #ffd666;
  font-weight: 600;
}

.movie-personal-rating {
  color: var(--accent);
  font-weight: 600;
}

.movie-overview {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.movie-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.movie-status-badge.status-watchlist {
  background: rgba(123, 92, 250, 0.2);
  color: #d6c7ff;
  border: 1px solid rgba(123, 92, 250, 0.4);
}

.movie-status-badge.status-watching {
  background: rgba(255, 169, 64, 0.2);
  color: #ffd9a6;
  border: 1px solid rgba(255, 169, 64, 0.4);
}

.movie-status-badge.status-watched {
  background: rgba(9, 178, 139, 0.2);
  color: #7ef0c7;
  border: 1px solid rgba(9, 178, 139, 0.4);
}

.movie-status-badge.status-favorite {
  background: rgba(255, 120, 120, 0.2);
  color: #ffc7c7;
  border: 1px solid rgba(255, 120, 120, 0.4);
}

.movie-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.movie-actions .ghost-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* Movie Search Results */
.movie-search-results {
  display: grid;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.movie-search-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.movie-search-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(123, 92, 250, 0.4);
}

.movie-search-item.selected {
  background: rgba(123, 92, 250, 0.15);
  border-color: rgba(123, 92, 250, 0.6);
}

.movie-search-poster {
  width: 60px;
  height: 90px;
  background: linear-gradient(145deg, #233, #111);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.movie-search-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.movie-search-info strong {
  font-size: 0.95rem;
}

.movie-search-info span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Selected Movie Preview */
.selected-movie-preview {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
}

.movie-preview-card {
  display: flex;
  gap: 16px;
}

.movie-preview-poster {
  width: 120px;
  height: 180px;
  background: linear-gradient(145deg, #233, #111);
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.movie-preview-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.movie-preview-details h3 {
  margin: 0;
  font-size: 1.2rem;
}

.movie-preview-details p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.movie-preview-details .movie-overview {
  margin-top: 8px;
  line-height: 1.5;
}

/* Movie Detail Modal */
.movie-detail-hero {
  position: relative;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
}

.movie-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.movie-detail-content {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 32px;
  align-items: flex-end;
}

.movie-detail-poster {
  width: 180px;
  height: 270px;
  background: linear-gradient(145deg, #233, #111);
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.movie-detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.movie-detail-info h1 {
  margin: 0;
  font-size: 2.5rem;
}

.movie-detail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.movie-detail-ratings {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.movie-detail-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.movie-detail-section {
  background: var(--card-alt);
  border-radius: 16px;
  padding: 20px;
}

.movie-detail-section h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: var(--text);
}

.movie-detail-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.movie-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.detail-hero-content {
  position: relative;
  display: flex;
  gap: 32px;
  padding: 40px;
  align-items: flex-end;
  z-index: 1;
  min-height: 400px;
}

.detail-director,
.detail-cast {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.streaming-section {
  margin-bottom: 20px;
}

.streaming-section h4 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.streaming-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.streaming-provider-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.streaming-provider-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(123, 92, 250, 0.4);
  transform: translateY(-2px);
}

.streaming-provider-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.detail-actions-row {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

@media (max-width: 600px) {
  /* Page Padding reduzieren auf mobilen Geräten */
  .page {
    padding: 20px 16px 100px;
  }

  /* App Header kompakter */
  .app-header {
    gap: 16px;
    margin-bottom: 24px;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .game-media {
    height: 200px;
  }
  .game-info {
    padding: 12px;
    gap: 6px;
  }
  .game-info h3 {
    font-size: 0.95rem;
    min-height: 2.6em;
  }
  .pill-row,
  .ratings {
    gap: 3px;
  }
  .pill,
  .rating-pill {
    padding: 2px 5px;
    font-size: 0.6rem;
  }
  .rating-pill {
    font-size: 0.65rem;
  }
  .note {
    padding: 6px 8px;
    font-size: 0.75rem;
    max-height: 40px;
  }
  .meta-row {
    font-size: 0.75rem;
    margin-top: 2px;
  }
  .card-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 8px;
    gap: 6px;
  }
  .game-card .ghost-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-width: 0;
    width: 100%;
    justify-content: center;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .toolbar-actions {
    width: 100%;
    flex-direction: column;
  }
  .primary-btn,
  .ghost-btn {
    width: 100%;
    text-align: center;
  }
  
  /* Nav Toggle platzsparend */
  .nav-toggle {
    left: 12px;
    padding: 10px 14px;
    gap: 8px;
  }

  .nav-toggle-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .project-drawer {
    width: min(380px, 94vw);
    padding: 24px 20px 32px;
  }

  .project-btn {
    padding: 12px 14px;
  }
  
  /* Modals: Bessere mobile Anpassung */
  .modal {
    padding: 12px;
    align-items: flex-end;
  }
  
  .modal-card {
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 100%;
  }
  
  .modal-head {
    padding: 20px 20px 0;
  }
  
  .modal-body {
    padding: 0 20px 20px;
    gap: 16px;
  }
  
  .modal-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
  
  .modal-actions .primary-btn,
  .modal-actions .ghost-btn {
    width: 100%;
  }
  
  /* Field Inputs besser auf mobilen Geräten */
  .field input,
  .field textarea,
  .field select {
    font-size: 16px; /* Verhindert Zoom auf iOS */
  }
  
  /* Geldzähler-Buttons: Vertikale Anordnung auf mobilen Geräten */
  .money-actions {
    flex-direction: column;
  }
  /* Geldzähler-Buttons: Volle Breite auf mobilen Geräten */
  .money-actions .primary-btn,
  .money-actions .ghost-btn {
    width: 100%;
  }
  
  /* Movies: Responsive Anpassungen */
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .movie-poster-compact {
    height: 200px;
  }
  .movie-detail-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .movie-detail-poster {
    width: 120px;
    height: 180px;
  }
  .movie-detail-info h1 {
    font-size: 1.8rem;
  }
  .movie-preview-card {
    flex-direction: column;
  }
  .movie-preview-poster {
    width: 100%;
    height: 200px;
  }
  .detail-hero-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* Todo Toolbar besser auf mobilen Geräten */
  .todo-toolbar {
    flex-direction: column;
    gap: 12px;
  }
  
  .todo-toolbar .search-field {
    width: 100%;
    min-width: 0;
  }
  
  .todo-toolbar .primary-btn {
    width: 100%;
  }
}

/* Update Timer für Movie-Aktualisierung in der Sidebar */
.update-timer-drawer {
  background: linear-gradient(135deg, rgba(123, 92, 250, 0.1) 0%, rgba(20, 22, 37, 0.95) 100%);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(123, 92, 250, 0.3);
  color: var(--text);
  padding: 16px;
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(123, 92, 250, 0.1);
}

.timer-label {
  opacity: 0.8;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.timer-display {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(123, 92, 250, 0.5);
  display: inline-block;
  padding: 6px 10px;
  background: rgba(123, 92, 250, 0.1);
  border-radius: 6px;
  width: 100%;
  text-align: center;
}

.manual-update-btn {
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(123, 92, 250, 0.8) 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
    font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  }
  
.manual-update-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.manual-update-btn:hover:not(:disabled)::before {
  left: 100%;
}

.manual-update-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123, 92, 250, 0.4);
  background: linear-gradient(135deg, var(--accent) 0%, rgba(123, 92, 250, 1) 100%);
}

.manual-update-btn:active:not(:disabled) {
  transform: translateY(0);
}

.manual-update-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(123, 92, 250, 0.3);
}

.manual-update-btn.cooldown {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.3) 0%, rgba(123, 92, 250, 0.2) 100%);
  border: 1px solid rgba(255, 107, 107, 0.3);
  }

.manual-update-btn .btn-text {
  display: block;
}

.manual-update-btn .btn-cooldown {
  display: none;
  font-size: 11px;
  font-weight: 500;
}