/* ===== Public User Profile ===== */

.user-profile {
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
}

/* --- Header Panel --- */
.user-profile__header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.user-profile__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c4a24e 0%, #a37e2c 100%);
    color: #0a0a0f;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.user-profile__avatar:has(img) {
    background: none;
}

.user-profile__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile__info {
    flex: 1;
    min-width: 0;
}

.user-profile__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #e0ddd5);
    margin: 0 0 0.25rem;
}

/* --- Meta Line --- */
.user-profile__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-dimmed, #7a7870);
    margin-bottom: 0.5rem;
}

.user-profile__username {
    color: var(--gold, #c4a24e);
}

.user-profile__separator {
    opacity: 0.5;
}

.user-profile__meta-icon {
    vertical-align: -2px;
    opacity: 0.7;
    margin-right: 1px;
}

/* --- Social Links --- */
.user-profile__social {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.user-profile__social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-dimmed, #7a7870);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color, #252830);
    transition: color 0.2s, border-color 0.2s;
}

.user-profile__social-link:hover {
    color: var(--text-primary, #e0ddd5);
    border-color: var(--text-dimmed, #7a7870);
}

.user-profile__social-link--twitch:hover {
    color: #9146ff;
    border-color: #9146ff;
}

.user-profile__social-link--youtube:hover {
    color: #ff0000;
    border-color: #ff0000;
}

.user-profile__social-link--kofi:hover {
    color: #ff5e5b;
    border-color: #ff5e5b;
}

.user-profile__social-link--paypal:hover {
    color: #009cde;
    border-color: #009cde;
}

/* Twitch Live indicator */
.user-profile__social-link--live {
    color: #9146ff;
    border-color: #9146ff;
}

.user-profile__live-dot {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- Bio --- */
.user-profile__bio {
    font-size: 0.9rem;
    color: var(--text-secondary, #b0ada5);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    white-space: pre-line;
}

.user-profile__bio:empty {
    display: none;
}

/* --- Right Actions (Follow + Share) --- */
.user-profile__right-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: flex-start;
    flex-shrink: 0;
}

/* --- Share Button --- */
.user-profile__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    background: transparent;
    border: 1px solid var(--border-color, #252830);
    border-radius: 4px;
    color: var(--text-dimmed, #7a7870);
    cursor: pointer;
    font-size: 0.8rem;
    font-family: var(--font-body, system-ui, sans-serif);
    transition: all 0.2s;
}

.user-profile__share-btn svg {
    width: 14px;
    height: 14px;
}

.user-profile__share-btn:hover {
    border-color: var(--gold, #c4a24e);
    color: var(--gold, #c4a24e);
}

/* --- Actions (Follow + Counts) --- */
.user-profile__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-dimmed, #7a7870);
}

.user-profile__follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--gold, #c4a24e);
    background: var(--gold, #c4a24e);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-profile__follow-btn:hover {
    opacity: 0.85;
}

.user-profile__follow-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.user-profile__follow-btn--unfollow {
    background: transparent;
    color: var(--text-dimmed, #7a7870);
    border-color: var(--border-color, #252830);
    font-weight: 400;
}

.user-profile__follow-btn--unfollow:hover {
    color: var(--text-secondary, #b0ada5);
    border-color: var(--text-dimmed, #7a7870);
}

/* --- Clickable author links in build cards --- */
a.build-card__author {
    color: var(--text-dimmed, #7a7870);
    text-decoration: none;
    transition: color 0.2s;
}

a.build-card__author:hover {
    color: var(--gold, #c4a24e);
    text-decoration: underline;
}

/* ===== Fishing Profile Tab ===== */

.fishing-profile-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted, #7a7870);
    font-style: italic;
}

.fishing-profile-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: #1a1c22;
    border: 1px solid #252830;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.fishing-profile-stats__item {
    background: #13151a;
    padding: 0.6rem 0.5rem;
    text-align: center;
}

.fishing-profile-stats__label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted, #7a7870);
    margin-bottom: 0.2rem;
}

.fishing-profile-stats__value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #e0ddd5);
    font-variant-numeric: tabular-nums;
}

.fishing-profile-collection__title {
    font-family: 'OldFenris', serif;
    font-size: 1.1rem;
    color: var(--text-primary, #e0ddd5);
    margin: 0 0 0.75rem;
}

.fishing-profile-collection-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .user-profile__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .user-profile__meta {
        justify-content: center;
    }

    .user-profile__social {
        justify-content: center;
    }

    .user-profile__actions {
        justify-content: center;
    }

    .user-profile__right-actions {
        flex-direction: row;
        justify-content: center;
        align-self: center; /* gestapelter Header zentriert -> Buttons mittig */
    }

    .user-profile__avatar {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .fishing-profile-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .fishing-profile-collection-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .fishing-profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .fishing-profile-collection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   Angleichung an das neue Layout (01.09.2026)
   ------------------------------------------------------------
   Kopf-Panel und Filterleiste standen auf --bg-panel (#1a1b1f) mit
   --border-color; die Build-Karten darunter tragen laengst
   rgba(10,10,15,.55) mit goldgetoentem Rahmen. Die Seite lief zudem
   auf 960px, waehrend /guides, /news, /support und der Planer 1232px
   nutzen.
   ============================================================ */
.user-profile { max-width: 1280px; }

.user-profile__header,
.user-profile .filter-bar {
    background: rgba(10, 10, 15, 0.55);
    border: 1px solid rgba(196, 162, 78, 0.18);
    border-radius: var(--border-radius-lg, 8px);
}
/* Die Filterleiste war auf 960px festgenagelt und stand damit schmaler
   als die Karten darunter. */
.user-profile .filter-bar { width: 100%; }

/* Brotkrumen im Muster der uebrigen Seiten. */
.user-profile__crumbs { margin: -0.75rem 0 0.75rem; font-size: 0.85rem; }
.user-profile__crumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
}
.user-profile__crumbs li {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted, #7a7870);
}
.user-profile__crumbs li:not(:last-child)::after {
    content: '\203A';
    margin-left: 0.25rem;
    color: var(--text-muted, #7a7870);
}
.user-profile__crumbs a { color: var(--text-dimmed, #7a7870); text-decoration: none; }
.user-profile__crumbs a:hover { color: var(--gold, #c4a24e); text-decoration: underline; }
.user-profile__crumbs li:last-child span { color: var(--text-primary, #e0ddd5); }

/* Kleine Bedienelemente auf den Radius und die Rahmenfarbe der uebrigen
   Chips (6px / --border-panel) statt 4px / #2a2a35. */
.user-profile__social-link,
.user-profile__share-btn,
.user-profile__follow-btn,
.user-profile .filter-bar__select,
.user-profile .filter-bar__search {
    border-radius: 6px;
    border-color: var(--border-panel, #252830);
}
.user-profile .filter-bar__select,
.user-profile .filter-bar__search {
    background: rgba(0, 0, 0, 0.25);
}
.user-profile__social-link:hover,
.user-profile__share-btn:hover {
    border-color: rgba(196, 162, 78, 0.45);
}

/* ── Tab-Leiste als Konsole ───────────────────────────────────
   Vorher eine nackte Zeile mit Unterstrich; im Planer sind Reiter
   Chips in einer gerahmten Konsole. Dasselbe hier, damit die Seite
   dieselbe Bedienlogik zeigt. */
.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.7rem 0.8rem;
    margin-bottom: 1.25rem;
    background: rgba(10, 10, 15, 0.55);
    border: 1px solid rgba(196, 162, 78, 0.18);
    border-bottom: 1px solid rgba(196, 162, 78, 0.18);
    border-radius: var(--border-radius-lg, 8px);
}
.profile-tabs__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6.4px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-secondary);
    font-size: 0.83rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.profile-tabs__tab:hover {
    background: rgba(196, 162, 78, 0.07);
    border-color: var(--gold-dark);
    color: var(--text-primary);
}
.profile-tabs__tab--active,
.profile-tabs__tab--active:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-color: var(--gold);
    color: #fff;
    font-weight: 700;
}

/* ── Guides-Reiter ────────────────────────────────────────────
   Die Liste stand auf #2a2a35 — der Rahmenfarbe, nicht einer Flaeche —
   und die Zeilen darin auf #1a1b1f. Jetzt EIN Panel mit Haarlinien
   zwischen den Zeilen, wie die Listen im Planer. */
.user-profile .guides-hub__guide-list {
    background: rgba(10, 10, 15, 0.55);
    border: 1px solid var(--border-panel, #252830);
    border-radius: var(--border-radius-lg, 8px);
    overflow: hidden;
    gap: 0;
}
.user-profile .guides-hub__guide-row {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.user-profile .guides-hub__guide-row:last-child { border-bottom: none; }
.user-profile .guides-hub__guide-row:hover { background: rgba(255, 255, 255, 0.03); }

/* ── Erfolge-Reiter ───────────────────────────────────────────
   Fortschrittsleiste und Karten standen auf #1a1b1f mit 4px-Ecken. */
.user-profile .achievements-progress {
    background: rgba(10, 10, 15, 0.55);
    border: 1px solid var(--border-panel, #252830);
    border-radius: var(--border-radius-lg, 8px);
}
.user-profile .achievement-card {
    background: rgba(10, 10, 15, 0.55);
    border: 1px solid var(--border-panel, #252830);
    border-radius: var(--border-radius-lg, 8px);
    transition: border-color 0.15s ease;
}
.user-profile .achievement-card:hover {
    border-color: rgba(196, 162, 78, 0.35);
}
.user-profile .achievement-card__icon {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-panel, #252830);
    border-radius: 6px;
}

/* ── Klassen-Leiste im Builds-Reiter ──────────────────────────
   Sie ersetzt das Klassen-Dropdown; das <select> bleibt als
   Datenquelle fuer BuildFilter im DOM, nur unsichtbar. */
.user-profile #up-class { display: none; }
.user-profile .class-grid--filter { margin-bottom: 1rem; }

/* ── Auswahlfelder: lesbare Optionsliste ──────────────────────
   Der abgesetzte Grund rgba(0,0,0,.25) vererbte sich auf die
   <option>-Elemente. Die native Liste zeichnet sie dann auf hellem
   Systemgrund mit heller Schrift — praktisch unlesbar. Beide brauchen
   deshalb eine eigene, deckende Farbe. */
.user-profile .filter-bar__select option,
.user-profile .filter-bar__select optgroup {
    background: #15161a;
    color: var(--text-primary, #e0ddd5);
}

/* Typ-Schalter statt Dropdown — das <select> bleibt als Datenquelle und
   steht unsichtbar in derselben Leiste. */
.filter-bar--typetabs #up-type,
.user-profile #up-type { display: none; }
.filter-bar--typetabs .builds-toolbar__chips {
    display: flex;
    gap: 0.4rem;
    margin-right: 0.35rem;
}

/* ── Teilen-Knopf wie auf der Build-Detailseite ───────────────
   .btn--share ist in build-editor.css definiert, die hier nicht
   geladen wird — ohne diese Regel bliebe der graue Standard-Knopf.
   Werte 1:1 aus der Build-Ansicht uebernommen. */
.user-profile .btn.btn--share {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 32px;
    padding: 0.4rem 0.85rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    color: var(--text-primary, #e0ddd5);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.user-profile .btn.btn--share:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

/* ============================================================
   Kopfbereich — Variante C (01.09.2026)
   ------------------------------------------------------------
   Vorher standen Name, Metazeile, Social-Links, Bio und Zaehler
   untereinander: 316px hoch. Jetzt zwei Zeilen plus eine einzeilige
   Bio; die Zahlen wandern in die Namenszeile, die Links in die
   Metazeile.
   ============================================================ */
.user-profile__header {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 14px 18px;
}
/* Schwacher roter Schein oben rechts — dieselbe Handschrift wie das
   Kopfband des Planers, nur zurueckhaltender. */
.user-profile__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(680px 120px at 88% 0%, rgba(165, 9, 5, 0.16) 0%, rgba(165, 9, 5, 0) 70%);
}
.user-profile__top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}
.user-profile__avatar {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
    border: 1px solid var(--border-panel, #252830);
}
.user-profile__ident {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.user-profile__headline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.user-profile__name {
    font-size: 1.375rem;
    margin: 0;
    line-height: 1.15;
}
.user-profile__stats {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-dimmed, #7a7870);
    font-size: 0.85rem;
}
.user-profile__stat b {
    color: var(--text-primary, #e0ddd5);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.user-profile__subline {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}
.user-profile__subline .user-profile__meta,
.user-profile__subline .user-profile__social {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
}
/* Die Social-Links werden zu Textlinks in der Metazeile — als Chips
   waeren sie in einer zweizeiligen Kopfzeile zu laut. */
.user-profile__subline .user-profile__social-link {
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.85rem;
    color: var(--text-dimmed, #7a7870);
    gap: 0.3rem;
}
.user-profile__subline .user-profile__social-link:hover {
    color: var(--text-primary, #e0ddd5);
    border: 0;
}
.user-profile__subline .user-profile__social::before {
    content: '';
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 0.1rem;
}
.user-profile__subline .user-profile__social:empty::before { display: none; }

.user-profile__right-actions {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}
.user-profile__follow-btn {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ── Bio-Zeile ── */
.user-profile__bioline {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.user-profile__bioline .user-profile__bio {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #a09d94;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-profile__bioline--open .user-profile__bio {
    white-space: normal;
    overflow: visible;
}
.user-profile__bio-more {
    flex: none;
    padding: 0;
    background: none;
    border: 0;
    color: var(--gold, #c4a24e);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.user-profile__bio-more:hover { color: var(--gold-bright, #d9b45f); text-decoration: underline; }

@media (max-width: 768px) {
    .user-profile__top { flex-wrap: wrap; }
    .user-profile__right-actions { width: 100%; justify-content: flex-start; }
}

/* ── Gleiche Abstaende zwischen allen Bloecken ────────────────
   Gemessen standen dort 32 / 12 / 16 / 24px — jeder Block brachte
   sein eigenes Mass mit. Einheitlich 16px, wie zwischen den Panels
   im Planer. */
.user-profile__header { margin-bottom: 16px; }
.user-profile .profile-tabs { margin-bottom: 16px; }
.user-profile .class-grid--filter { margin-bottom: 16px; }
.user-profile .filter-bar { margin-bottom: 16px; }
.user-profile .profile-tab-panel > .class-grid--filter { margin-top: 0; }

/* Trennstrich auch ZWISCHEN den sozialen Links, nicht nur davor —
   sonst lesen sich "Twitch YouTube" als ein Eintrag. */
.user-profile__subline .user-profile__social {
    gap: 0.5rem;
}
.user-profile__subline .user-profile__social-link + .user-profile__social-link::before {
    content: '';
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 0.4rem;
}

/* ── Filterleiste: Pfeil und Breitenverteilung ────────────────
   Der native Auswahlpfeil sitzt am Rand des Feldes und laesst sich
   per padding nicht verschieben — deshalb eigener Pfeil als SVG mit
   12px Abstand zur Kante. */
.user-profile .filter-bar__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7870' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.user-profile .filter-bar__select:hover {
    border-color: var(--border-hover, #3a3a45);
}

/* Die Suche bekommt doppelt so viel Platz wie ein Auswahlfeld; die
   drei Felder teilen sich den Rest zu gleichen Teilen und die Zeile
   ist wieder ausgefuellt. */
.user-profile .filter-bar__select { flex: 1 1 0; min-width: 0; }
.user-profile .filter-bar__search { flex: 2 1 0; min-width: 160px; }

/* ── Metazeile mit senkrechten Trennern ───────────────────────
   Alle Eintraege (Mitglied seit, BattleTag, Steam, Twitch, YouTube)
   liegen jetzt in EINEM Container — nur so passt ein Trenner
   zuverlaessig zwischen je zwei, unabhaengig davon, welche Dienste
   ein Profil hinterlegt hat. */
.user-profile__subline .user-profile__meta {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.user-profile__mi {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-dimmed, #7a7870);
    font-size: 0.85rem;
    text-decoration: none;
}
a.user-profile__mi:hover { color: var(--text-primary, #e0ddd5); }
.user-profile__mi + .user-profile__mi { margin-left: 0.6rem; }
.user-profile__mi + .user-profile__mi::before {
    content: '';
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 0.6rem;
}
/* Die Markenfarbe steckt im SVG-fill; die Box haelt nur die Groesse. */
.user-profile__meta-icon { flex: none; }

/* Die alten Gruppen-Trenner entfallen — sie zeigten auf den nun
   leeren Social-Container. */
.user-profile__subline .user-profile__social,
.user-profile__subline .user-profile__social::before { display: none; }

/* Zaehler etwas abgesetzt vom Namen — direkt daneben lasen sie sich
   wie ein Namenszusatz. Die 8px Grundabstand der Zeile bleiben, die
   Zaehler ruecken zusaetzlich ab. */
.user-profile__headline .user-profile__stats { margin-left: 42px; }

/* ============================================================
   Internes Profil (/profile) — Angleichung an das neue Layout
   ------------------------------------------------------------
   Kopf, Reiter, Panels und Karten standen auf --bg-panel (#1a1b1f)
   mit --border-color; die Reiter waren eine nackte Zeile mit
   Unterstrich. Ab hier dieselbe Sprache wie das oeffentliche Profil.
   Alles auf .profile-page gescoped — `.panel` ist eine globale Klasse.
   ============================================================ */
.profile-page { max-width: 1280px; margin: 0 auto; }

.profile-page .profile-header,
.profile-page .panel,
.profile-page .settings-grid__panel,
.profile-page .profile-guide-card,
.profile-page .following-card,
.profile-page .filter-bar {
    background: rgba(10, 10, 15, 0.55);
    border: 1px solid var(--border-panel, #252830);
    border-radius: var(--border-radius-lg, 8px);
}
/* Der Kopf traegt wie im oeffentlichen Profil den goldgetoenten Rahmen. */
.profile-page .profile-header,
.profile-page .filter-bar {
    border-color: rgba(196, 162, 78, 0.18);
}

/* Kopf flacher: 1.5rem Innenabstand und ein 72px-Avatar ergaben eine
   sehr hohe Zeile fuer drei Zahlen. */
.profile-page .profile-header {
    padding: 14px 18px;
    gap: 1rem;
    margin-bottom: 16px;
}
.profile-page .profile-header__avatar {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
}

/* Teilen-Knopf wie auf der Build-Detailseite. */
.profile-page .profile-header__share-btn {
    top: 50%;
    transform: translateY(-50%);
    right: 18px;
    height: 32px;
    padding: 0 13.6px;
    gap: 6.4px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    color: var(--text-primary, #e0ddd5);
    font-size: 0.85rem;
    font-weight: 500;
}
.profile-page .profile-header__share-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

/* ── Reiter als Konsole (wie im oeffentlichen Profil) ── */
.profile-page .profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.7rem 0.8rem;
    margin-bottom: 16px;
    background: rgba(10, 10, 15, 0.55);
    border: 1px solid rgba(196, 162, 78, 0.18);
    border-radius: var(--border-radius-lg, 8px);
}
.profile-page .profile-tabs__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6.4px 12px;
    margin-bottom: 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-secondary);
    font-size: 0.83rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.profile-page .profile-tabs__tab:hover {
    background: rgba(196, 162, 78, 0.07);
    border-color: var(--gold-dark);
    color: var(--text-primary);
}
.profile-page .profile-tabs__tab--active,
.profile-page .profile-tabs__tab--active:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-color: var(--gold);
    color: #fff;
    font-weight: 700;
}
.profile-page .profile-tabs__badge {
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-primary);
}
.profile-page .profile-tabs__tab--active .profile-tabs__badge {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* ── Gleiche Abstaende wie im oeffentlichen Profil ── */
.profile-page .filter-bar { margin-bottom: 16px; }
.profile-page .settings-grid { gap: 16px; }
.profile-page .settings-grid__panel { padding: 14px 16px 16px; }
.profile-page .settings-grid__heading {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 0.7rem;
    padding: 0 0 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* ── Auswahlfelder: eigener Pfeil, wie im oeffentlichen Profil ── */
.profile-page .filter-bar__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7870' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    border-radius: 6px;
    border-color: var(--border-panel, #252830);
    background-color: rgba(0, 0, 0, 0.25);
    flex: 1 1 0;
    min-width: 0;
}
.profile-page .filter-bar__select option,
.profile-page .filter-bar__select optgroup {
    background: #15161a;
    color: var(--text-primary, #e0ddd5);
}
.profile-page .filter-bar__search {
    flex: 2 1 0;
    min-width: 160px;
    border-radius: 6px;
    border-color: var(--border-panel, #252830);
    background: rgba(0, 0, 0, 0.25);
}

/* Karten reagieren wie ueberall mit goldenem Rand. */
.profile-page .profile-guide-card:hover,
.profile-page .following-card:hover {
    border-color: rgba(196, 162, 78, 0.35);
}

/* ── Reste in den uebrigen Reitern ────────────────────────────
   Durchgesehen: Creator-Status, Erfolge, Ticket- und Ideen-Karten
   sowie die Formularfelder der Einstellungen standen noch auf
   #1a1b1f bzw. #1f2025. */
.profile-page .creator-tab__status,
.profile-page .achievements-progress,
.profile-page .achievement-card,
.profile-page .ticket-card {
    background: rgba(10, 10, 15, 0.55);
    border: 1px solid var(--border-panel, #252830);
    border-radius: var(--border-radius-lg, 8px);
}
.profile-page .achievement-card:hover,
.profile-page .ticket-card:hover {
    border-color: rgba(196, 162, 78, 0.35);
}
.profile-page .achievement-card__icon {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-panel, #252830);
    border-radius: 6px;
}

/* Formularfelder und verknuepfte Konten auf den abgesetzten Grund. */
.profile-page .form-input,
.profile-page .oauth-account,
.profile-page textarea.form-input,
.profile-page select.form-input {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-panel, #252830);
    border-radius: 6px;
}
.profile-page .form-input:focus {
    border-color: var(--gold-dark, #a37e2c);
    outline: none;
}
.profile-page select.form-input option {
    background: #15161a;
    color: var(--text-primary, #e0ddd5);
}

/* Die Zeilen ueber der Filterleiste (Aktiv/Archiviert und die
   Sammelaktionen) standen ohne eigene Flaeche zwischen zwei Panels. */
.profile-page .profile-tab-panel .builds-toolbar,
.profile-page .profile-bulkbar {
    background: rgba(10, 10, 15, 0.55);
    border: 1px solid var(--border-panel, #252830);
    border-radius: var(--border-radius-lg, 8px);
    padding: 0.6rem 0.8rem;
    margin-bottom: 16px;
}

/* ── "Aktiv / Archiviert" als Chip-Paar ───────────────────────
   Standen als zwei randlose Textknoepfe mit Unterstrich in der Zeile —
   dieselbe alte Form wie die Reiter vorher. Jetzt Chips wie die
   Leveling/Endgame-Schalter im oeffentlichen Profil. */
.profile-page .profile-builds__segment {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.profile-page .segment-btn,
.profile-page .profile-builds__segment .segment-btn {
    padding: 6.4px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-secondary);
    font-size: 0.83rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.profile-page .segment-btn:hover {
    background: rgba(196, 162, 78, 0.07);
    border-color: var(--gold-dark);
    color: var(--text-primary);
}
/* Dieselbe Spezifitaet wie die Grundregel oben — die fuehrt
   `.profile-builds__segment .segment-btn` und wuerde eine reine
   `.profile-page .segment-btn--active`-Regel sonst ueberstimmen. */
.profile-page .segment-btn--active,
.profile-page .segment-btn--active:hover,
.profile-page .profile-builds__segment .segment-btn--active,
.profile-page .profile-builds__segment .segment-btn--active:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-color: var(--gold);
    color: #fff;
    font-weight: 700;
}

/* ── Favoriten-Listen (Builds + Guides), eigenes + oeffentliches Profil (Migr. 398) ── */
.fav-lists__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
}
.fav-lists__hint {
    margin: 0;
    color: var(--text-dimmed);
    font-size: 0.875rem;
    flex: 1 1 18rem;
}
.fav-lists__section + .fav-lists__section { margin-top: 2rem; }
.fav-lists__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
    letter-spacing: 0.02em;
}
.fav-lists__loading {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
}
.fav-lists .build-card { position: relative; }
.fav-card { position: relative; display: flex; }
.fav-card > .chub-card { flex: 1; }

/* Augen-Schalter: oeffentlich (gold) / privat (gedimmt) */
.fav-vis {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(10, 10, 15, 0.85);
    color: var(--text-dimmed);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.fav-vis:hover { color: var(--text-primary); border-color: rgba(196, 162, 78, 0.6); }
.fav-vis--public {
    color: #c4a24e;
    border-color: rgba(196, 162, 78, 0.7);
    box-shadow: 0 0 8px rgba(196, 162, 78, 0.35);
}
.fav-vis:disabled { opacity: 0.6; cursor: wait; }
.fav-vis:focus-visible { outline: 2px solid #c4a24e; outline-offset: 2px; }
.fav-vis--inline {
    position: static;
    flex-shrink: 0;
    width: 1.9rem;
    height: 1.9rem;
    margin-right: 0.4rem;
}
/* Oeffentliches Profil, Filter "Alle": leere Bereiche ganz ausblenden */
.fav-lists[data-public][data-scope="all"] [data-fav-section][data-empty="1"] { display: none; }
/* Zeilenansicht (eigenes Profil): Auge oben links auf dem Vorschaubild, ueber dem gestreckten Titel-Link */
.chub-row--guide .fav-vis { top: 1.3rem; left: 1.5rem; right: auto; }

/* ── Reiter "Meine Guides" / "Meine News": Zeilenansicht wie unter Favoriten
   (guide-cards.js guideRowsHtml/newsRowsHtml), aber ohne die Karte rechts:
   der Status steht in der Kopfzeile, Datum und Likes in der Faktenzeile neben
   den Aufrufen, die Aktionen sitzen am Zeilenende. Der Titel-Link ist ueber die
   ganze Zeile gespannt — die Buttons brauchen deshalb z-index. */
.guide-row-owner__status { font-size: 0.68rem; }
.guide-row-owner__actions {
    position: relative; z-index: 1;
    flex: none; align-self: center; margin-left: auto;
    display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.3rem;
}
@media (max-width: 600px) {
    .guide-row-owner__actions { align-self: flex-start; }
}
