/*
 * AI_GAMEZ-Look für das Fueschp-Angelspiel
 * Liegt in public/theme/ und wird von Spiel-Updates nicht überschrieben.
 * Eingebunden über EINE Zeile in views/layout.php (siehe LIESMICH.txt).
 */
    @font-face { font-family: "Silkscreen"; src: url("fonts/silkscreen-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
    @font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
    @font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
    @font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
    :root {
      --bg: #030834;
      --bg-gradient: linear-gradient(180deg, #06106a 0%, #030834 100%);
      --on-primary: #030834;
      --f-pixel: "Silkscreen", ui-monospace, monospace;
      --f-head: "Chakra Petch", "Inter", system-ui, sans-serif;
      --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
      --surface: rgba(6, 16, 106, 0.85);
      --surface-hover: rgba(14, 26, 168, 0.95);
      --border: rgba(169, 178, 232, 0.35);
      --border-hover: rgba(251, 214, 61, 0.5);
      --text: #eef1ff;
      --text-muted: #a9b2e8;
      --primary: #fbd63d;
      --primary-hover: #ffe27a;
      --primary-light: rgba(251, 214, 61, 0.15);
      --primary-glow: rgba(251, 214, 61, 0.3);
      --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
      --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
      --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.55);
      --shadow-primary: 0 4px 20px rgba(251, 214, 61, 0.3);
      --sidebar-width: 240px;
      --sidebar-collapsed-width: 64px;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: var(--f-body);
      background: var(--bg);
      background-image: var(--bg-gradient);
      color: var(--text);
      min-height: 100vh;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    ::-webkit-scrollbar { width: 8px; height: 8px; }
    ::-webkit-scrollbar-track { background: rgba(6, 16, 106, 0.6); }
    ::-webkit-scrollbar-thumb { background: rgba(251, 214, 61, 0.45); border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(251, 214, 61, 0.65); }
    html { scroll-behavior: smooth; }

    /* ── Card (login/page layout) ── */
    .card {
      background: var(--surface);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2.5rem;
      max-width: 400px;
      width: 100%;
      box-shadow: var(--shadow-md);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
    .card-wide { max-width: 480px; }

    /* ── Typography ── */
    h1 {
      margin: 0 0 1.25rem 0;
      font-size: 1.75rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    h2 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem 0; color: var(--text-muted); font-weight: 600; }
    h3 { font-size: 1rem; margin: 0 0 0.5rem 0; font-weight: 600; color: var(--text); }

    /* ── Feedback ── */
    .error {
      color: #ff6b6b; margin-bottom: 1rem; font-size: 0.9rem;
      padding: 0.75rem 1rem;
      background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.3); border-radius: 8px;
    }
    .success {
      color: #6bcb77; margin-bottom: 1rem; font-size: 0.9rem;
      padding: 0.75rem 1rem;
      background: rgba(107, 203, 119, 0.1); border: 1px solid rgba(107, 203, 119, 0.3); border-radius: 8px;
    }
    .muted { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.6; }
    .code-preview {
      background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 8px;
      padding: 0.85rem 1rem; font-size: 0.8rem; font-family: 'Courier New', monospace;
      color: var(--text-muted); white-space: pre; overflow-x: auto;
    }

    /* ── Form elements ── */
    label { display: block; margin-bottom: 0.4rem; font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
    .form-row { margin-bottom: 1.5rem; }
    .form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; opacity: 0.8; }

    input[type="color"] {
      appearance: none; -webkit-appearance: none;
      border: 1px solid var(--border); border-radius: 8px; padding: 2px; background: none; cursor: pointer;
    }
    input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
    input[type="color"]::-webkit-color-swatch { border: none; border-radius: 6px; }
    input[type="color"]::-moz-color-swatch { border: none; border-radius: 6px; }

    input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"] {
      display: block; width: 100%;
      margin-top: 0.25rem; margin-bottom: 0;
      padding: 0.7rem 1rem;
      background: rgba(3, 8, 52, 0.7); backdrop-filter: blur(10px);
      border: 1px solid var(--border); border-radius: 10px;
      color: var(--text); font-size: 0.95rem;
      transition: all 0.2s ease;
    }
    input[type="text"]:focus, input[type="email"]:focus,
    input[type="password"]:focus, input[type="number"]:focus, input[type="url"]:focus {
      outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
    }
    select {
      width: 100%;
      padding: 0.7rem 1rem; margin-bottom: 0;
      background: rgba(3, 8, 52, 0.7); backdrop-filter: blur(10px);
      border: 1px solid var(--border); border-radius: 10px;
      color: var(--text); font-size: 0.95rem; cursor: pointer;
      transition: all 0.2s ease;
    }
    select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

    /* ── Buttons ── */
    button, .btn {
      padding: 0.7rem 1.4rem; border-radius: 10px; font-size: 0.95rem; font-weight: 500;
      cursor: pointer; border: none; text-decoration: none; display: inline-block;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .btn-primary {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
      color: var(--on-primary); box-shadow: var(--shadow-primary);
    }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(251, 214, 61, 0.4); }
    .btn-primary:active { transform: translateY(0); }
    .btn-secondary {
      background: rgba(255, 255, 255, 0.06); color: var(--text);
      border: 1px solid var(--border); backdrop-filter: blur(10px);
    }
    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.1); border-color: var(--border-hover);
      color: var(--text); transform: translateY(-1px);
    }
    .btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; border-radius: 8px; }
    .btn-icon {
      padding: 0.4rem 0.75rem; font-size: 0.9rem; border-radius: 8px;
      background: rgba(255,255,255,0.05); border: 1px solid var(--border);
      color: var(--text-muted); cursor: pointer; text-decoration: none;
      display: inline-flex; align-items: center; gap: 0.35rem;
      transition: all 0.2s ease;
    }
    .btn-icon:hover { background: rgba(251, 214, 61,0.12); border-color: var(--primary); color: var(--primary); }
    .btn-copy {
      padding: 0.45rem 0.8rem;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
      color: var(--on-primary); font-size: 0.85rem; border-radius: 8px;
      transition: all 0.2s ease; box-shadow: var(--shadow-sm); cursor: pointer; border: none;
    }
    .btn-copy:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

    /* ── Page layout (centered, for login) ── */
    .page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }

    /* ── API key row ── */
    .api-key-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
    .api-key-row code {
      flex: 1; min-width: 0; padding: 0.65rem 1rem;
      background: rgba(3, 8, 52, 0.7); backdrop-filter: blur(10px);
      border: 1px solid var(--border); border-radius: 10px;
      font-size: 0.82rem; word-break: break-all;
      font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
      transition: all 0.2s ease;
    }
    .api-key-row code:hover { border-color: var(--border-hover); }

    /* ── Table ── */
    table {
      width: 100%; border-collapse: separate; border-spacing: 0;
      background: rgba(6, 16, 106, 0.5); backdrop-filter: blur(10px);
      border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
    }
    th, td { padding: 0.9rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border); }
    th {
      color: var(--text-muted); font-size: 0.8rem; font-weight: 600;
      text-transform: uppercase; letter-spacing: 0.06em;
      background: rgba(251, 214, 61, 0.08);
    }
    tr:last-child td { border-bottom: none; }
    tr:hover td { background: rgba(255, 255, 255, 0.025); }

    /* ── Admin card ── */
    .admin-card {
      background: var(--surface); backdrop-filter: blur(10px);
      border: 1px solid var(--border); border-radius: 16px;
      padding: 2rem; margin-bottom: 1.5rem; width: 100%;
      box-shadow: var(--shadow-md); transition: all 0.3s ease;
    }
    .admin-card:hover { box-shadow: var(--shadow-lg); border-color: var(--border-hover); }

    /* ── Page header (title + actions row) ── */
    .page-header {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem;
    }
    .page-header-text { flex: 1; min-width: 0; }
    .page-title {
      margin: 0 0 0.25rem 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em;
      background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }
    .page-subtitle { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
    .page-header-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; flex-shrink: 0; }

    /* ── Breadcrumb ── */
    .breadcrumb {
      display: flex; align-items: center; gap: 0.5rem;
      font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem;
    }
    .breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
    .breadcrumb a:hover { color: var(--primary); }
    .breadcrumb-sep { opacity: 0.45; }
    .breadcrumb-current { color: var(--text); font-weight: 500; }

    /* ── Section badge (count pill) ── */
    .section-badge {
      display: inline-flex; align-items: center;
      padding: 0.2rem 0.65rem; border-radius: 20px; font-size: 0.78rem; font-weight: 600;
      background: rgba(251, 214, 61, 0.15); color: var(--primary);
      border: 1px solid rgba(251, 214, 61, 0.3);
    }

    /* ── Rarity badge (inline colored pill) ── */
    .rarity-badge {
      display: inline-block; padding: 0.2rem 0.65rem; border-radius: 20px;
      font-size: 0.78rem; font-weight: 600;
      background: rgba(251, 214, 61, 0.12); color: var(--primary);
      border: 1px solid rgba(251, 214, 61, 0.25);
    }

    /* ── Empty state ── */
    .empty-state {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      text-align: center; padding: 3.5rem 2rem;
      background: rgba(3, 8, 52, 0.4); border: 1px dashed var(--border);
      border-radius: 16px; margin-top: 1.5rem;
    }
    .empty-state-icon { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1; }
    .empty-state h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.5rem 0; color: var(--text); }
    .empty-state p { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 1.5rem 0; max-width: 340px; line-height: 1.6; }

    /* ── Table search + filter pills ── */
    .table-search-wrap {
      display: inline-flex; align-items: center;
    }
    .table-search-input {
      width: 280px; max-width: 100%;
      background: rgba(3, 8, 52,0.7) !important;
    }
    .filter-pill {
      padding: 0.35rem 0.9rem; border-radius: 20px; font-size: 0.82rem; font-weight: 500;
      border: 1px solid var(--border); background: rgba(6, 16, 106,0.6);
      color: var(--text-muted); cursor: pointer; transition: all 0.15s ease;
      white-space: nowrap;
    }
    .filter-pill:hover { border-color: var(--primary); color: var(--primary); background: rgba(251, 214, 61,0.08); }
    .filter-pill.active { background: rgba(251, 214, 61,0.18); border-color: var(--primary); color: var(--primary); font-weight: 600; }

    /* ── Section divider ── */
    .section-divider {
      display: flex; align-items: center; gap: 1rem;
      margin: 1.75rem 0 1.25rem; color: var(--text-muted); font-size: 0.8rem;
      font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em;
    }
    .section-divider::before, .section-divider::after {
      content: ''; flex: 1; height: 1px; background: var(--border);
    }

    /* ── Info grid (dashboard) ── */
    .info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
    .info-item { display: flex; flex-direction: column; gap: 0.4rem; }
    .info-label {
      font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase;
      letter-spacing: 0.06em; font-weight: 600;
    }
    .info-value { font-size: 1rem; font-weight: 500; word-break: break-all; }

    /* ── Step cards (setup flow) ── */
    .step-card {
      display: flex; gap: 1.25rem; align-items: flex-start;
      padding: 1.25rem 1.5rem; border-radius: 12px;
      background: rgba(3, 8, 52, 0.55); border: 1px solid var(--border);
      transition: all 0.2s ease;
    }
    .step-card:hover { border-color: var(--border-hover); }
    .step-num {
      width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
      background: linear-gradient(135deg, var(--primary), var(--primary-hover));
      color: var(--on-primary); display: flex; align-items: center; justify-content: center;
      font-size: 0.9rem; font-weight: 700; box-shadow: var(--shadow-primary);
    }
    .step-body { flex: 1; min-width: 0; }
    .step-title { font-weight: 600; font-size: 0.95rem; margin: 0 0 0.3rem 0; color: var(--text); }
    .step-desc { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

    /* ── Tab system (pure CSS, radio-based) ── */
    .tab-inputs { display: none; }
    .tab-bar {
      display: flex; gap: 0.25rem; padding: 0.3rem;
      background: rgba(3, 8, 52, 0.5); border-radius: 12px;
      border: 1px solid var(--border); width: fit-content; margin-bottom: 1.75rem;
    }
    .tab-label {
      padding: 0.55rem 1.25rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500;
      color: var(--text-muted); cursor: pointer; transition: all 0.2s ease; user-select: none;
    }
    .tab-label:hover { color: var(--text); background: rgba(255,255,255,0.04); }
    .tab-panel { display: none; }
    #tab1:checked ~ .tab-bar label[for="tab1"],
    #tab2:checked ~ .tab-bar label[for="tab2"] {
      background: rgba(251, 214, 61,0.15); color: var(--primary); font-weight: 600;
    }
    #tab1:checked ~ .tab-content #panel1,
    #tab2:checked ~ .tab-content #panel2 { display: block; }

    /* ── Catch / item image preview ── */
    .catch-preview {
      width: 52px; height: 52px; object-fit: cover; border-radius: 10px;
      background: var(--bg); box-shadow: var(--shadow-sm); transition: transform 0.2s ease;
    }
    .catch-preview:hover { transform: scale(1.12); }
    .catch-img-placeholder {
      width: 52px; height: 52px; border-radius: 10px;
      background: rgba(6, 16, 106, 0.7); border: 1px solid var(--border);
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 1.4rem;
    }

    /* ── Form with live preview (two-column) ── */
    .form-preview-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.75rem; align-items: start; }
    @media (max-width: 800px) { .form-preview-layout { grid-template-columns: 1fr; } }
    .form-preview-card {
      background: rgba(3, 8, 52, 0.55); border: 1px solid var(--border); border-radius: 16px;
      padding: 1.5rem; position: sticky; top: 1.5rem;
    }
    .form-preview-label {
      font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase;
      letter-spacing: 0.06em; font-weight: 600; margin-bottom: 1rem;
    }
    .preview-img-box {
      width: 140px; height: 140px; border-radius: 14px; object-fit: cover;
      border: 2px solid var(--border); background: rgba(3, 8, 52,0.7);
      display: flex; align-items: center; justify-content: center; font-size: 3rem;
      margin: 0 auto 1rem; transition: border-color 0.2s;
    }
    .preview-img-box img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
    .preview-name {
      text-align: center; font-size: 1.1rem; font-weight: 600;
      color: var(--text); margin-bottom: 0.4rem;
    }
    .preview-rarity { text-align: center; }

    /* ── Form footer (sticky bottom bar) ── */
    .form-footer {
      display: flex; align-items: center; gap: 0.75rem;
      padding-top: 1.5rem; margin-top: 0.5rem;
      border-top: 1px solid var(--border);
    }

    /* ── Overlay config three-column layout ── */
    .overlay-layout { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 1.5rem; align-items: start; }
    @media (max-width: 960px)  { .overlay-layout { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 640px)  { .overlay-layout { grid-template-columns: 1fr; } }
    .overlay-col { display: flex; flex-direction: column; gap: 1rem; }
    .overlay-preview-col {
      background: rgba(3, 8, 52, 0.55); border: 1px solid var(--border); border-radius: 16px;
      padding: 1.5rem; position: sticky; top: 1.5rem;
      display: flex; flex-direction: column; gap: 1rem;
    }
    .color-swatch-row {
      display: flex; align-items: center; gap: 0.85rem;
    }
    .color-swatch-btn {
      width: 44px; height: 44px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.15);
      cursor: pointer; padding: 2px; flex-shrink: 0; transition: border-color 0.2s;
      background: none; overflow: hidden;
    }
    .color-swatch-btn:hover { border-color: var(--primary); }
    .color-swatch-btn input[type="color"] {
      width: 100%; height: 100%; border: none; border-radius: 8px; cursor: pointer; padding: 0;
    }
    .color-swatch-info { flex: 1; min-width: 0; }
    .color-swatch-name { font-size: 0.85rem; font-weight: 500; color: var(--text); margin-bottom: 0.2rem; }
    .color-hex-input {
      width: 110px !important; max-width: 110px !important;
      padding: 0.4rem 0.75rem !important; font-size: 0.85rem !important;
      margin: 0 !important; font-family: 'Monaco', 'Menlo', monospace !important;
    }
    .overlay-big-preview {
      background: rgba(3, 8, 52, 0.6); border-radius: 12px;
      padding: 1.5rem; min-height: 140px;
      display: flex; align-items: center; justify-content: center;
    }
    #overlay-preview {
      display: inline-block; padding: 1.1rem 1.75rem; border-radius: 14px; border: 2px solid;
      font-family: 'Segoe UI', system-ui, sans-serif; font-size: 1.2rem; font-weight: 600;
      text-align: center; max-width: 100%;
    }

    /* ── Catchdex / user-side ── */
    .catchdex-select {
      width: 100%; max-width: 280px; padding: 0.75rem 1rem; margin-bottom: 1rem;
      background: rgba(3, 8, 52, 0.7); backdrop-filter: blur(10px);
      border: 1px solid var(--border); border-radius: 10px; color: var(--text);
      font-size: 1rem; cursor: pointer; transition: all 0.2s ease;
    }
    .catchdex-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
    .catchdex-grid { display: grid; grid-template-columns: repeat(auto-fill, 240px); gap: 1.25rem; margin-top: 1.5rem; }
    .catchdex-card {
      padding: 1rem; background: rgba(3, 8, 52, 0.7); backdrop-filter: blur(10px);
      border: 1px solid var(--border); border-radius: 16px; text-align: center;
      height: 230px; display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
    }
    .catchdex-card::before {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(135deg, rgba(251, 214, 61, 0.1) 0%, transparent 100%);
      opacity: 0; transition: opacity 0.3s ease;
    }
    .catchdex-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
    .catchdex-card:hover::before { opacity: 1; }
    .catchdex-card.caught { border-color: var(--primary); background: var(--primary-light); box-shadow: var(--shadow-primary); }
    .catchdex-card.caught::before { opacity: 1; }
    .catchdex-card .catchdex-card-img {
      width: 90px; height: 90px; object-fit: cover; border-radius: 12px;
      margin-bottom: 0.75rem; box-shadow: var(--shadow-sm); transition: transform 0.3s ease;
    }
    .catchdex-card:hover .catchdex-card-img { transform: scale(1.05); }
    .catchdex-card .name { font-size: 1rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.5rem; }
    .catchdex-card .badge {
      font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem;
      padding: 0.25rem 0.75rem; background: rgba(255, 255, 255, 0.05);
      border-radius: 12px; display: inline-block;
    }
    .catchdex-card.caught .badge { color: var(--primary); font-weight: 600; background: rgba(251, 214, 61, 0.2); }
    .catchdex-card.unknown .catchdex-card-img { object-fit: contain; opacity: 0.75; }
    .catchdex-card.unknown .name { color: var(--text-muted); letter-spacing: 0.1em; }
    .catchdex-pagination {
      display: flex; align-items: center; justify-content: center;
      gap: 1rem; margin-top: 2rem; flex-wrap: wrap;
    }
    .catchdex-page-link {
      padding: 0.6rem 1.25rem; background: rgba(6, 16, 106, 0.7); backdrop-filter: blur(10px);
      border: 1px solid var(--border); border-radius: 10px; color: var(--text);
      text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: all 0.2s ease;
    }
    .catchdex-page-link:hover { border-color: var(--primary); color: var(--primary); background: rgba(251, 214, 61, 0.1); transform: translateY(-2px); }
    .catchdex-page-info { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

    /* ── Streamer cards (user side) ── */
    .streamer-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
    .streamer-card {
      display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
      padding: 1.5rem 1rem; border-radius: 12px;
      background: var(--surface); border: 1px solid var(--border);
      cursor: pointer; text-decoration: none; color: var(--text); width: 320px;
      transition: background 0.2s, border-color 0.2s, transform 0.15s;
    }
    .streamer-card:hover { background: rgba(251, 214, 61,0.15); border-color: var(--primary); transform: translateY(-2px); }
    .streamer-card.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
    .streamer-card img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; }
    .streamer-initials {
      width: 104px; height: 104px; border-radius: 50%;
      background: var(--primary); color: var(--on-primary);
      display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700;
    }
    .streamer-card.active .streamer-initials { background: rgba(255,255,255,0.25); }
    .streamer-card span { font-size: 1.1rem; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }

    /* ── Stat cards ── */
    .stat-card {
      background: rgba(3, 8, 52, 0.7); backdrop-filter: blur(10px);
      border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem;
      text-align: center; transition: all 0.3s ease;
    }
    .stat-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
    .stat-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
    .stat-value { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; }
    .stat-label { font-size: 0.9rem; color: var(--text-muted); }

    /* ── Admin layout (sidebar + main) ── */
    .admin-layout, .user-layout { display: flex; height: 100vh; overflow: hidden; }

    .admin-sidebar {
      width: var(--sidebar-width); flex-shrink: 0;
      background: rgba(3, 8, 52, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
      border-right: 1px solid var(--border);
      display: flex; flex-direction: column;
      transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      overflow: hidden; box-shadow: var(--shadow-md); position: relative; z-index: 10;
    }
    .admin-sidebar.collapsed { width: var(--sidebar-collapsed-width); }

    /* Brand header */
    .sidebar-brand {
      display: flex; align-items: center; gap: 0.75rem;
      padding: 1.25rem 1rem 1rem;
      border-bottom: 1px solid var(--border); flex-shrink: 0;
    }
    .sidebar-brand-icon {
      width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
      background: linear-gradient(135deg, var(--primary), var(--primary-hover));
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem; box-shadow: var(--shadow-primary);
    }
    .sidebar-brand-text {
      font-size: 1rem; font-weight: 700; color: var(--text); white-space: nowrap;
      overflow: hidden; opacity: 1; transition: opacity 0.15s ease;
    }
    .collapsed .sidebar-brand-text { opacity: 0; width: 0; }

    /* Toggle button */
    .sidebar-toggle {
      position: absolute; right: -12px; top: 1.4rem;
      width: 24px; height: 24px; border-radius: 50%;
      background: rgba(6, 16, 106,0.95); border: 1px solid var(--border);
      color: var(--text-muted); font-size: 0.7rem; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.2s; z-index: 20;
    }
    .sidebar-toggle:hover { background: rgba(251, 214, 61,0.15); border-color: var(--primary); color: var(--primary); }

    /* Nav links */
    .sidebar-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0.75rem 0; }
    .sidebar-link {
      display: flex; align-items: center; gap: 0.85rem;
      padding: 0.7rem 1rem; color: var(--text-muted); text-decoration: none;
      font-size: 0.9rem; font-weight: 500; white-space: nowrap;
      transition: all 0.2s ease; position: relative; border-radius: 0;
    }
    .sidebar-link::before {
      content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
      width: 3px; border-radius: 0 3px 3px 0; background: var(--primary);
      opacity: 0; transition: opacity 0.2s ease;
    }
    .sidebar-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
    .sidebar-link.active {
      color: var(--primary); background: rgba(251, 214, 61,0.1); font-weight: 600;
    }
    .sidebar-link.active::before { opacity: 1; }
    .sidebar-link-icon {
      width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem; transition: background 0.2s;
    }
    .sidebar-link:hover .sidebar-link-icon,
    .sidebar-link.active .sidebar-link-icon { background: rgba(251, 214, 61,0.12); }
    .sidebar-link-label { overflow: hidden; opacity: 1; transition: opacity 0.15s ease; }
    .collapsed .sidebar-link-label { opacity: 0; width: 0; }
    .sidebar-link-tooltip {
      display: none; position: absolute; left: calc(var(--sidebar-collapsed-width) + 8px);
      background: rgba(3, 8, 52,0.98); border: 1px solid var(--border);
      color: var(--text); font-size: 0.85rem; font-weight: 500; padding: 0.4rem 0.75rem;
      border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow-md);
      pointer-events: none; z-index: 100;
    }
    .collapsed .sidebar-link:hover .sidebar-link-tooltip { display: block; }

    /* Separator */
    .sidebar-sep { height: 1px; background: var(--border); margin: 0.5rem 0.75rem; flex-shrink: 0; }

    /* Profile section */
    .sidebar-profile {
      display: flex; align-items: center; gap: 0.75rem;
      padding: 0.9rem 1rem; border-top: 1px solid var(--border); flex-shrink: 0;
      overflow: hidden;
    }
    .sidebar-avatar {
      width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
      object-fit: cover; border: 2px solid rgba(251, 214, 61,0.4);
    }
    .sidebar-avatar-initials {
      width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
      background: linear-gradient(135deg, var(--primary), var(--primary-hover));
      color: var(--on-primary); display: flex; align-items: center; justify-content: center;
      font-size: 0.85rem; font-weight: 700; border: 2px solid rgba(251, 214, 61,0.4);
    }
    .sidebar-profile-name {
      font-size: 0.85rem; font-weight: 600; color: var(--text);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
      opacity: 1; transition: opacity 0.15s ease;
    }
    .collapsed .sidebar-profile-name { opacity: 0; width: 0; }

    /* ── User sidebar ── */
    .user-sidebar {
      width: var(--sidebar-width); flex-shrink: 0;
      background: rgba(3, 8, 52, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
      border-right: 1px solid var(--border);
      display: flex; flex-direction: column;
      overflow: hidden; box-shadow: var(--shadow-md);
    }

    /* ── Main content areas ── */
    .admin-main, .user-main { flex: 1; overflow: auto; padding: 2rem; background: rgba(3, 8, 52, 0.3); min-width: 0; }
    @media (max-width: 900px) { .admin-main, .user-main { padding: 1.25rem; } }
    @media (max-width: 600px) { .admin-main, .user-main { padding: 1rem; } }
    .user-main .card { background: var(--surface); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; max-width: 400px; box-shadow: var(--shadow-md); }
    .user-main .card-wide { max-width: none; padding: 2rem; min-height: calc(100vh - 4rem); box-sizing: border-box; }

    dt { font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; margin-bottom: 0.25rem; }
    dt:first-of-type { margin-top: 0; }
    dd { margin: 0; }
    .streamer-stat-card { background: rgba(6, 16, 106, 0.7); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; transition: all 0.3s ease; }
    .streamer-stat-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }
    .mini-stat { text-align: center; }
    .mini-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; }
    .mini-stat-label { font-size: 0.85rem; color: var(--text-muted); }

    /* ── Progress bar ── */
    .progress-bar-track { height: 10px; background: rgba(255,255,255,0.08); border-radius: 5px; overflow: hidden; }
    .progress-bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--primary), var(--primary-hover)); transition: width 0.4s ease; }

    /* ── Quick link cards ── */
    .quick-link-card {
      display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
      padding: 1.5rem; border-radius: 14px; text-decoration: none; color: var(--text);
      background: rgba(3, 8, 52,0.6); border: 1px solid var(--border);
      transition: all 0.2s ease;
    }
    .quick-link-card:hover { border-color: var(--primary); background: rgba(251, 214, 61,0.08); transform: translateY(-2px); }
    .quick-link-icon { font-size: 2rem; line-height: 1; }
    h1, h2, h3, h4, .page-title, .stat-value, .card-title { font-family: var(--f-head); letter-spacing: .01em; }
    .sidebar-brand-text { font-family: var(--f-pixel); font-weight: 400; font-size: .95rem; color: var(--primary); }
    a { color: var(--primary); }
    .sidebar-link-website { color: var(--text-muted); }
    /* ---------- Unterwasser-Kulisse (aus dem AI_GAMEZ-Theme) ---------- */
    .sea { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
    .sea__water { position: absolute; inset: 0; background: url("img/water.png") 0 0 / 256px 100% repeat-x; image-rendering: pixelated; }
    .sea__rays { position: absolute; inset: 0 0 auto; height: 480px; opacity: .5; background: url("img/rays.png") 0 0 / 640px 480px repeat-x; image-rendering: pixelated; animation: sea-rays 8s steps(4) infinite alternate; }
    .sea__seabed { position: absolute; left: 0; right: 0; bottom: 0; height: 192px; opacity: .38; background: url("img/seabed.png") 0 0 / 1280px 192px repeat-x; image-rendering: pixelated; animation: sea-weed 1.8s steps(1, end) infinite; }
    .sea__layer { position: absolute; inset: -40px; }
    .sea__layer--far { opacity: .5; } .sea__layer--mid { opacity: .7; } .sea__layer--near { opacity: .85; }
    .sea .bubble { position: absolute; bottom: -90px; left: var(--x); width: var(--s); height: var(--s); animation: sea-rise var(--dur) steps(90) var(--delay) infinite; }
    .sea .bubble i { position: absolute; inset: 0; background: var(--bimg) center / contain no-repeat; image-rendering: pixelated; animation: sea-sway var(--sway) steps(3) var(--delay) infinite alternate, sea-hide var(--dur) steps(1) var(--delay) infinite; }
    .sea .bubble.smooth i { image-rendering: auto; }
    .sea .bubble::after { content: ""; position: absolute; inset: -30%; background: url("img/pop.png") center / 100% 100% no-repeat; image-rendering: pixelated; opacity: 0; animation: sea-pop var(--dur) steps(1) var(--delay) infinite; }
    .sea .bubble--fizz { animation: sea-fizz var(--dur) steps(40) forwards; }
    .sea .bubble--fizz i { animation: sea-sway var(--sway) steps(2) infinite alternate; }
    .sea .bubble--fizz::after { display: none; }
    @keyframes sea-rise { 0% { transform: translate3d(0,0,0); opacity: 0; } 3% { opacity: 1; } 100% { transform: translate3d(var(--drift, 20px), calc(-100vh - 40px), 0); opacity: 1; } }
    @keyframes sea-fizz { 0% { transform: translate3d(0,0,0); opacity: 0; } 8% { opacity: .9; } 85% { opacity: .8; } 100% { transform: translate3d(var(--drift, 10px), -70vh, 0) scale(1.4); opacity: 0; } }
    @keyframes sea-sway { from { transform: translateX(calc(var(--amp) * -1)); } to { transform: translateX(var(--amp)); } }
    @keyframes sea-hide { 0%, 95% { opacity: 1; } 96%, 100% { opacity: 0; } }
    @keyframes sea-pop { 0%, 95% { opacity: 0; } 96%, 98% { opacity: 1; } 99%, 100% { opacity: 0; } }
    @keyframes sea-rays { from { background-position-x: 0; opacity: .35; } to { background-position-x: 32px; opacity: .6; } }
    @keyframes sea-weed { 0% { background-position-x: 0; } 50% { background-position-x: -640px; } 100% { background-position-x: 0; } }
    @media (prefers-reduced-motion: reduce) { .sea__layer, .sea__rays { display: none; } .sea__seabed { animation: none; } }
    .admin-layout, .user-layout, .page { position: relative; z-index: 1; }
    :root { --surface: rgba(6, 16, 106, 0.9); --surface-hover: rgba(14, 26, 168, 0.92); }
    .admin-sidebar, .user-sidebar { background: rgba(3, 8, 52, 0.88) !important; }
  

    /* Stellen, die in einzelnen Seiten fest eingetragen sind */
    body .rate-stepper { background: rgba(3, 8, 52, 0.7); }
    body .rate-step:hover { background: rgba(251, 214, 61, 0.15); color: var(--primary); }
    img[style*="221,110,66"] { border-color: rgba(251, 214, 61, 0.5) !important; }
