/* ═══════════════════════════════════════════════════════════════════
   NextLife Wonderlife — Spielerprofil v2.0
   Datei: /assets/css/profile.css
   Modernes Dark UI mit Neon/Glow Akzenten
═══════════════════════════════════════════════════════════════════ */

/* ── Profil-Seite Wrapper ─────────────────────────────────────── */
.profile-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
}

/* ══ PROFIL HEADER ═══════════════════════════════════════════════ */
.profile-header {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px 24px 0 0;
    overflow: visible;
    margin-bottom: 0;
    position: relative;
    box-shadow: 0 8px 60px rgba(0,0,0,0.5);
}

/* Banner */
.profile-banner {
    height: 260px;
    background-size: cover;
    background-position: center;
    background-color: var(--card2);
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}

.banner-change-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
    z-index: 5;
}
.banner-change-btn:hover {
    background: rgba(var(--gold-rgb),.4);
    border-color: var(--gold);
}

/* Avatar — sitzt im unteren Drittel des Banners */
.profile-avatar-container {
    position: absolute;
    left: 45px;
    top: 275px;
    z-index: 10;
}

@media(max-width: 600px) {
    .profile-avatar-container {
        left: 50%;
        transform: translateX(-50%);
        top: 145px;
    }
}

.profile-avatar-wrap {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--card);
    position: relative;
    background: var(--bg);
    box-shadow: 0 0 0 3px var(--gold), 0 12px 40px rgba(0,0,0,0.6);
}

.profile-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.avatar-change-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--card);
    transition: transform 0.2s, background 0.2s;
}
.avatar-change-btn:hover { transform: scale(1.1); background: var(--gold-h); }

/* Online Dot */
.online-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid var(--card);
    position: absolute;
    bottom: 8px;
    right: 10px;
    z-index: 2;
}
.online-dot.is-online  { background: var(--success); box-shadow: 0 0 10px var(--success); }
.online-dot.is-offline { background: #555; }
.online-dot.sm { width: 12px; height: 12px; border-width: 2px; bottom: 2px; right: 2px; }

/* Info Bar */
.profile-info-bar {
    /* Avatar ist 150px hoch, top 130px → ragt 130+150-260 = 20px unter Banner = info-bar braucht oben 20px + etwas Luft */
    padding: 1.5rem 2rem 1.5rem calc(40px + 150px + 2rem);
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    min-height: 6rem;
}

@media(max-width: 768px) {
    .profile-info-bar {
        padding: 2rem 1.5rem 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media(max-width: 600px) {
    .profile-info-bar {
        padding: 4.5rem 1.5rem 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.profile-identity { flex: 1; min-width: 0; }

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.profile-name {
    font-family: var(--font-head);
    font-size: 2.2rem;
    letter-spacing: 3px;
    color: #fff;
    line-height: 1;
    margin: 0;
    text-shadow: 0 0 30px rgba(var(--gold-rgb),.3);
}

.online-badge {
    background: var(--success);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 3px 8px;
    border-radius: 20px;
    font-family: var(--font-mono);
    animation: pulse-online 2s ease infinite;
}

@keyframes pulse-online {
    0%, 100% { box-shadow: 0 0 0 0 rgba(87,242,135,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(87,242,135,0); }
}

.faction-badge {
    background: rgba(var(--faction-color, 139,43,226), 0.15);
    border: 1px solid var(--faction-color, var(--gold));
    color: var(--faction-color, var(--gold));
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: var(--font-mono);
}

.profile-meta-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text2);
    margin-bottom: 0.8rem;
}
.meta-sep { color: var(--muted); }
.meta-item { color: var(--text2); }
.rank-badge { color: var(--gold); }
.muted { color: var(--muted); }

/* Level Bar */
.level-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.4rem;
}
.level-badge {
    font-family: var(--font-head);
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--gold);
    flex-shrink: 0;
    text-shadow: 0 0 16px rgba(var(--gold-rgb),.7);
}
.level-bar {
    flex: 1;
    max-width: 300px;
    height: 18px;
    background: rgba(255,255,255,0.07);
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(var(--gold-rgb),.25);
}
.level-bar.wide { max-width: 380px; height: 18px; }
.level-fill {
    height: 100%;
    background: linear-gradient(90deg, #5a0fad, var(--gold));
    border-radius: 9px;
    box-shadow: 0 0 18px rgba(var(--gold-rgb),.7);
    transition: width 1.2s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.level-fill::after {
    content: '';
    position: absolute;
    top: 2px; left: 6px; right: 6px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}
.xp-label {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--muted);
    flex-shrink: 0;
    white-space: nowrap;
}

/* Stats Bar */
.profile-stats {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-shrink: 0;
}

.stat-item { text-align: center; }
.stat-val {
    display: block;
    font-family: var(--font-head);
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: #fff;
    line-height: 1;
}
.stat-lbl {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 1.5px;
    margin-top: 2px;
    font-family: var(--font-mono);
}

@media(max-width: 900px) {
    .profile-stats { display: none; }
}

/* Action Buttons */
.profile-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.btn-profile {
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.btn-profile:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary  { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-primary:hover:not(:disabled)  { background: var(--gold-h); box-shadow: 0 0 20px rgba(var(--gold-rgb),.4); }
.btn-ghost    { background: transparent; color: var(--text2); border-color: var(--border2); }
.btn-ghost:hover:not(:disabled)    { color: #fff; border-color: var(--gold); background: var(--gold-l); }
.btn-success  { background: rgba(87,242,135,0.15); color: var(--success); border-color: var(--success); }
.btn-success:hover:not(:disabled)  { background: rgba(87,242,135,0.25); }
.btn-danger   { background: rgba(237,66,69,0.15); color: var(--danger); border-color: var(--danger); }
.btn-danger:hover:not(:disabled)   { background: rgba(237,66,69,0.25); }
.btn-icon     { padding: 0.5rem 0.65rem; }
.btn-sm       { padding: 0.35rem 0.75rem; font-size: 0.7rem; }

/* Dropdown More Menu */
.btn-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 12px;
    min-width: 190px;
    z-index: 100;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.2s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.dropdown-menu.open { opacity: 1; transform: none; pointer-events: all; }
.dropdown-menu button {
    width: 100%;
    background: none;
    border: none;
    color: var(--text2);
    font-size: 0.82rem;
    font-family: var(--font-body);
    padding: 0.75rem 1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}
.dropdown-menu button:hover { background: var(--gold-l); color: #fff; }
.dropdown-menu button.danger:hover { background: rgba(237,66,69,0.12); color: var(--danger); }

/* ══ TABS ════════════════════════════════════════════════════════ */
.profile-tabs-wrapper {
    background: var(--card);
    border: 1px solid var(--border);
    border-top: none;
    margin-bottom: 2rem;
    position: relative;
    z-index: 5;
    border-radius: 0 0 16px 16px;
}

.profile-tabs-wrapper.sticky {
    position: sticky;
    top: var(--nav-h);
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.profile-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 1rem;
    gap: 0;
}
.profile-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 1rem 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
    flex-shrink: 0;
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.8rem;
    right: 0.8rem;
    height: 2px;
    background: var(--gold);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform 0.2s;
}
.tab-btn:hover { color: var(--text1); }
.tab-btn.active { color: var(--gold); }
.tab-btn.active::after { transform: scaleX(1); }

.tab-count {
    background: var(--gold-l);
    color: var(--gold);
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 0.65rem;
}

/* ══ TAB PANELS ══════════════════════════════════════════════════ */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ══ GRID LAYOUTS ════════════════════════════════════════════════ */
.profile-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media(max-width: 900px) {
    .profile-grid { grid-template-columns: 1fr; }
}

.profile-body { }

/* ══ WIDGETS / CARDS ══════════════════════════════════════════════ */
.widget-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s;
}
.widget-card:hover { border-color: var(--border2); }

.widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.widget-head h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin: 0;
}
.widget-link {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 0.75rem;
    cursor: pointer;
    font-family: var(--font-mono);
}
.widget-link:hover { text-decoration: underline; }

/* Bio */
.bio-text {
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Fraktion Info Mini */
.faction-info-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(var(--fc), 0.08);
    border: 1px solid color-mix(in srgb, var(--fc, var(--gold)) 30%, transparent);
    border-radius: 10px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}
.faction-icon { font-size: 1.8rem; }
.faction-name { font-family: var(--font-head); font-size: 1rem; letter-spacing: 1px; color: #fff; }
.faction-rank { font-size: 0.75rem; color: var(--muted); font-family: var(--font-mono); }

/* Stats Grid */
.stats-grid { display: flex; flex-direction: column; gap: 0.4rem; }
.stat-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stat-row:last-child { border-bottom: none; }
.stat-icon  { font-size: 1.1rem; width: 24px; }
.stat-label { flex: 1; font-size: 0.82rem; color: var(--text2); }
.stat-value { font-family: var(--font-head); font-size: 1rem; color: var(--gold); letter-spacing: 1px; }

/* ══ POSTS ═══════════════════════════════════════════════════════ */
.post-card { padding: 1.5rem; }

.post-composer {
    margin-bottom: 1.25rem;
}
.composer-top {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.composer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border2);
}
.composer-input-wrap { flex: 1; }
.composer-input-wrap textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text1);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    resize: none;
    min-height: 48px;
    max-height: 300px;
    overflow-y: auto;
    transition: border-color 0.2s, height 0.1s;
    line-height: 1.5;
}
.composer-input-wrap textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--gold-l);
}
.composer-actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.composer-tools { display: flex; gap: 0.5rem; align-items: center; }
.composer-tool-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    border: 1px solid transparent;
}
.composer-tool-btn:hover { color: var(--gold); border-color: var(--border2); background: var(--gold-l); }
.composer-submit { display: flex; gap: 0.5rem; }

.image-preview-wrap {
    position: relative;
    display: inline-block;
    margin-top: 0.5rem;
}
.image-preview-wrap img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
}
.remove-img-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Post Header */
.post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    position: relative;
}
.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border2);
    flex-shrink: 0;
}
.post-meta { flex: 1; }
.post-author {
    display: block;
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: 1px;
    color: #fff;
}
.post-time { font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono); }

/* Post Menu */
.post-menu { position: relative; margin-left: auto; }
.post-menu-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.post-menu-btn:hover { background: var(--gold-l); color: var(--gold); }
.post-menu-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--card2);
    border: 1px solid var(--border2);
    border-radius: 10px;
    overflow: hidden;
    min-width: 160px;
    z-index: 50;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    display: none;
}
.post-menu-dropdown button {
    width: 100%;
    background: none;
    border: none;
    color: var(--text2);
    padding: 0.65rem 1rem;
    text-align: left;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: var(--font-body);
    transition: background 0.15s;
}
.post-menu-dropdown button:hover { background: var(--gold-l); }
.post-menu-dropdown button.danger { color: var(--danger); }

/* Post Body */
.post-body { font-size: 0.95rem; line-height: 1.7; color: var(--text1); margin-bottom: 0.75rem; }
.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    cursor: zoom-in;
    transition: transform 0.2s;
}
.post-image:hover { transform: scale(1.01); }

/* Reactions Bar */
.reactions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.75rem;
}
.reaction {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}
.reaction:hover { border-color: var(--gold); background: var(--gold-l); }

/* Post Actions */
.post-actions {
    display: flex;
    gap: 0.25rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    flex-wrap: wrap;
}
.action-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.82rem;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.action-btn:hover { color: var(--gold); background: var(--gold-l); }
.action-btn.liked  { color: var(--danger); }
.action-btn.liked svg { fill: currentColor; }

/* Emoji Picker */
.emoji-picker-trigger { position: relative; }
.emoji-picker {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: var(--card2);
    border: 1px solid var(--border2);
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    gap: 4px;
    z-index: 50;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: all 0.2s;
}
.emoji-picker.open { opacity: 1; transform: none; pointer-events: all; }
.emoji-picker button {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: transform 0.15s, background 0.15s;
}
.emoji-picker button:hover { transform: scale(1.3); background: var(--gold-l); }

/* Bearbeiten Textarea */
.edit-textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: var(--text1);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
    resize: vertical;
    min-height: 80px;
}
.edit-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

/* ══ KOMMENTARE ══════════════════════════════════════════════════ */
.comments-section {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}
.comments-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 0.75rem; }

.comment {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}
.comment.is-reply { margin-left: 2.5rem; }

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border2);
}
.comment-body { flex: 1; }
.comment-bubble {
    background: rgba(255,255,255,0.04);
    border-radius: 0 12px 12px 12px;
    padding: 0.6rem 0.8rem;
    display: inline-block;
    max-width: 100%;
}
.comment-author {
    display: block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 2px;
}
.comment-text { font-size: 0.88rem; color: var(--text1); line-height: 1.5; }
.comment-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.3rem;
    align-items: center;
}
.cmt-action {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.75rem;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: color 0.2s;
    padding: 0;
}
.cmt-action:hover { color: var(--gold); }
.cmt-action.liked { color: var(--danger); }
.cmt-action.danger:hover { color: var(--danger); }
.cmt-time { font-size: 0.7rem; color: var(--muted); margin-left: auto; }

.replies { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }

.comment-composer {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.comment-composer input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text1);
    font-family: var(--font-body);
    font-size: 0.88rem;
    padding: 0.5rem 1rem;
}
.comment-composer input:focus { outline: none; border-color: var(--gold); }
.comment-composer button {
    background: var(--gold);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.comment-composer button:hover { background: var(--gold-h); }

.reply-composer {
    margin-top: 0.5rem;
    margin-left: 2.5rem;
}
.reply-to-label {
    font-size: 0.75rem;
    color: var(--gold);
    font-family: var(--font-mono);
    display: block;
    margin-bottom: 0.4rem;
}
.muted-small { font-size: 0.82rem; color: var(--muted); text-align: center; padding: 1rem; }

/* ══ GALERIE ════════════════════════════════════════════════════ */
.gallery-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.filter-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text2);
    font-size: 0.78rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--gold-l);
    border-color: var(--gold);
    color: var(--gold);
}



.gallery-item {
    aspect-ratio: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--card2);
}
.gallery-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.gallery-item:hover .gallery-media { transform: scale(1.05); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
    gap: 0.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-title { flex: 1; font-size: 0.82rem; color: #fff; font-weight: 600; }
.gallery-likes { font-size: 0.78rem; color: rgba(255,255,255,0.8); }
.gallery-delete-btn {
    background: rgba(237,66,69,0.8);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.gallery-delete-btn:hover { background: var(--danger); }
.gallery-video-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Upload Drop Zone */
.gallery-upload-area { margin-bottom: 1.25rem; }
.upload-drop-zone {
    border: 2px dashed var(--border2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.upload-drop-zone:hover, .upload-drop-zone.dragover {
    border-color: var(--gold);
    background: var(--gold-l);
}
.upload-drop-zone svg { color: var(--muted); }
.upload-drop-zone p { font-size: 0.95rem; color: var(--text2); }
.upload-drop-zone span { font-size: 0.78rem; color: var(--muted); font-family: var(--font-mono); }

/* ══ GALERIE GRID (verbessert) ══════════════════════════════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
}
.gallery-item {
    aspect-ratio: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255,255,255,.04);
    transition: transform .18s, box-shadow .18s;
}
.gallery-item:hover { transform: scale(1.02); box-shadow: 0 8px 32px rgba(0,0,0,.6); z-index: 2; }
.gallery-media { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery-item:hover .gallery-media { transform: scale(1.06); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 55%);
    opacity: 0; transition: opacity .2s;
    display: flex; align-items: flex-end; padding: .6rem .7rem; gap: .4rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-title { flex: 1; font-size: .78rem; color: #fff; font-weight: 600; line-height: 1.3; }
.gallery-likes { font-size: .72rem; color: rgba(255,255,255,.8); }
.gallery-delete-btn {
    background: rgba(237,66,69,.85); border: none; color: #fff;
    width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
    font-size: .65rem; display: flex; align-items: center; justify-content: center;
}
.gallery-video-badge {
    position: absolute; top: 7px; right: 7px;
    background: rgba(0,0,0,.75); color: #fff; border-radius: 12px;
    padding: 2px 8px; font-size: .65rem; font-family: var(--font-mono);
    letter-spacing: .5px; backdrop-filter: blur(4px);
}

/* ══ DIASHOW LIGHTBOX ══════════════════════════════════════════ */
.diashow-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.97);
    backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.diashow-overlay.open { opacity: 1; pointer-events: all; }
.diashow-wrap {
    width: 100%; height: 100vh;
    display: flex; flex-direction: column;
}
/* Top bar */
.diashow-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: .75rem 1.25rem;
    background: rgba(0,0,0,.4);
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}
.diashow-counter {
    font-family: var(--font-mono, monospace); font-size: .78rem;
    color: rgba(255,255,255,.6); letter-spacing: 1px;
}
.diashow-controls { display: flex; gap: .5rem; }
.diashow-ctrl-btn {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    color: #fff; border-radius: 8px; padding: .3rem .75rem;
    font-size: .85rem; cursor: pointer; transition: background .15s;
    font-family: var(--font-mono, monospace);
}
.diashow-ctrl-btn:hover { background: rgba(255,255,255,.2); }
/* Stage */
.diashow-stage {
    flex: 1; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; min-height: 0;
}
.diashow-media-wrap {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.diashow-media {
    max-width: calc(100% - 140px); max-height: 100%;
    object-fit: contain; border-radius: 6px;
    transition: opacity .2s;
}
.diashow-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    color: #fff; font-size: 1.8rem; width: 52px; height: 80px;
    border-radius: 10px; cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, transform .15s;
}
.diashow-nav:hover { background: rgba(201,162,39,.25); border-color: rgba(201,162,39,.4); transform: translateY(-50%) scale(1.05); }
.diashow-prev { left: 1rem; }
.diashow-next { right: 1rem; }
.diashow-spinner {
    width: 40px; height: 40px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.15); border-top-color: var(--gold, #c9a227);
    animation: spin .7s linear infinite; position: absolute;
    display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Info */
.diashow-info {
    padding: .5rem 1.25rem; min-height: 32px;
    display: flex; align-items: center; gap: 1rem;
    font-size: .82rem; color: rgba(255,255,255,.7);
    background: rgba(0,0,0,.35); flex-shrink: 0;
}
/* Thumbnail strip */
.diashow-thumbs {
    display: flex; gap: 4px; padding: 8px 1rem;
    overflow-x: auto; background: rgba(0,0,0,.5);
    flex-shrink: 0; scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
}
.diashow-thumb {
    width: 56px; height: 56px; flex-shrink: 0; border-radius: 6px;
    overflow: hidden; cursor: pointer; border: 2px solid transparent;
    transition: border-color .15s, opacity .15s; opacity: .55;
}
.diashow-thumb.active { border-color: var(--gold, #c9a227); opacity: 1; }
.diashow-thumb:hover { opacity: .85; }
.diashow-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ══ FREUNDE ════════════════════════════════════════════════════ */
.friends-search-bar {
    margin-bottom: 1.25rem;
}
.friends-search-bar input {
    width: 100%;
    max-width: 400px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text1);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    transition: border-color 0.2s;
}
.friends-search-bar input:focus { outline: none; border-color: var(--gold); }

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

.friend-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
    display: block;
    text-decoration: none;
    color: inherit;
}
.friend-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(var(--gold-rgb),.15);
}
.friend-avatar-wrap {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 0.75rem;
}
.friend-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border2);
}
.friend-name { font-family: var(--font-head); font-size: 1rem; letter-spacing: 1px; color: #fff; margin-bottom: 2px; }
.friend-meta { font-size: 0.75rem; color: var(--muted); font-family: var(--font-mono); }
.friend-status { font-size: 0.72rem; margin-top: 0.5rem; font-family: var(--font-mono); }
.friend-status.online { color: var(--success); }
.friend-status.offline { color: var(--muted); }
.mutual-badge {
    display: inline-block;
    background: var(--gold-l);
    color: var(--gold);
    border: 1px solid var(--border2);
    border-radius: 20px;
    font-size: 0.65rem;
    padding: 2px 8px;
    margin-top: 0.4rem;
    font-family: var(--font-mono);
}

/* ══ AKTIVITÄTEN / TIMELINE ══════════════════════════════════════ */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold) 0%, transparent 100%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s;
}
.timeline-item:hover { border-color: var(--border2); }

.timeline-dot {
    position: absolute;
    left: -2.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card2);
    border: 2px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.timeline-title { font-size: 0.92rem; color: var(--text1); font-weight: 600; margin-bottom: 0.25rem; }
.timeline-detail { font-size: 0.82rem; color: var(--text2); line-height: 1.5; }
.timeline-time { font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono); margin-top: 0.4rem; }

/* ══ FAHRZEUGE ══════════════════════════════════════════════════ */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.vehicle-card { padding: 0; overflow: hidden; }
.vehicle-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.vehicle-img-placeholder {
    width: 100%;
    height: 160px;
    background: var(--card2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--muted);
}
.vehicle-info { padding: 1rem 1.25rem; }
.vehicle-name { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: 2px; color: #fff; margin-bottom: 0.25rem; }
.vehicle-plate {
    display: inline-block;
    background: #fff;
    color: #000;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.vehicle-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text2); margin-bottom: 0.5rem; }
.vehicle-status {
    display: inline-block;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.status-aktiv         { background: rgba(87,242,135,0.15); color: var(--success); }
.status-garage        { background: rgba(255,255,255,0.08); color: var(--muted); }
.status-beschlagnahmt { background: rgba(237,66,69,0.15);  color: var(--danger); }

/* ══ IMMOBILIEN ════════════════════════════════════════════════ */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.property-card { padding: 0; overflow: hidden; }
.property-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.property-img-placeholder {
    width: 100%;
    height: 160px;
    background: var(--card2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.property-info { padding: 1rem 1.25rem; }
.property-type-badge {
    display: inline-block;
    background: var(--gold-l);
    color: var(--gold);
    border: 1px solid var(--border2);
    border-radius: 4px;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 2px 8px;
    margin-bottom: 0.4rem;
}
.property-name { font-family: var(--font-head); font-size: 1.1rem; letter-spacing: 1px; color: #fff; margin-bottom: 0.3rem; }
.property-address { font-size: 0.8rem; color: var(--text2); }
.property-desc { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; line-height: 1.5; }

/* ══ ACHIEVEMENTS ═══════════════════════════════════════════════ */
.achievements-header { margin-bottom: 1.5rem; }
.xp-overview {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.xp-circle {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}
.xp-circle svg { width: 100%; height: 100%; }
.xp-big { font-family: var(--font-head); font-size: 2rem; letter-spacing: 2px; color: var(--gold); }
.xp-sub { font-size: 0.8rem; color: var(--muted); font-family: var(--font-mono); margin-bottom: 0.5rem; }

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}
.achievement-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}
.rarity-common::before     { background: #6c757d; }
.rarity-uncommon::before   { background: var(--success); }
.rarity-rare::before       { background: #4e9eff; }
.rarity-epic::before       { background: var(--gold); }
.rarity-legendary::before  { background: linear-gradient(90deg, #ff6b35, #f7931e, #ffcd3c, #82c91e, #4e9eff, #9b59b6); }

.achievement-card:hover { border-color: var(--border2); transform: translateY(-2px); }

.ach-icon-big { font-size: 2.5rem; flex-shrink: 0; }
.ach-info { flex: 1; }
.ach-title { font-family: var(--font-head); font-size: 1rem; letter-spacing: 1px; color: #fff; margin-bottom: 0.25rem; }
.ach-desc { font-size: 0.82rem; color: var(--text2); line-height: 1.5; margin-bottom: 0.5rem; }
.ach-footer { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.rarity-badge {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
}
.rarity-badge.rarity-common    { background: rgba(108,117,125,0.2); color: #9ea5ad; }
.rarity-badge.rarity-uncommon  { background: rgba(87,242,135,0.15); color: var(--success); }
.rarity-badge.rarity-rare      { background: rgba(78,158,255,0.15); color: #4e9eff; }
.rarity-badge.rarity-epic      { background: var(--gold-l); color: var(--gold); }
.rarity-badge.rarity-legendary { background: linear-gradient(90deg, rgba(255,107,53,0.2), rgba(155,89,182,0.2)); color: #ffcd3c; border: 1px solid rgba(255,205,60,0.3); }
.ach-xp { font-size: 0.72rem; color: var(--gold); font-family: var(--font-mono); }
.ach-date { font-size: 0.7rem; color: var(--muted); font-family: var(--font-mono); margin-left: auto; }

/* Sidebar Achievements Mini */
.achievement-mini-list { display: flex; flex-direction: column; gap: 0.6rem; }
.achievement-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.achievement-mini:last-child { border-bottom: none; }
.achievement-mini .ach-icon { font-size: 1.4rem; }
.achievement-mini .ach-title { font-size: 0.85rem; color: #fff; font-weight: 600; }
.achievement-mini .ach-rarity { font-size: 0.7rem; color: var(--muted); font-family: var(--font-mono); }

/* ══ EINSTELLUNGEN ══════════════════════════════════════════════ */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.25rem;
}
.setting-rows { display: flex; flex-direction: column; gap: 0; }
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    gap: 1rem;
}
.setting-row:last-child { border-bottom: none; }
.setting-row.col { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.setting-label { font-size: 0.9rem; color: var(--text1); font-weight: 600; }
.setting-desc  { font-size: 0.78rem; color: var(--muted); font-family: var(--font-mono); margin-top: 2px; }

/* Toggle Switch */
.toggle { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.12);
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.3s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 4px;
    top: 4px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}
.toggle input:checked + .toggle-slider { background: var(--gold); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); }

.setting-select {
    background: var(--card2);
    border: 1px solid var(--border2);
    color: var(--text1);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}
.setting-select:focus { outline: none; border-color: var(--gold); }

/* ══ MODAL ══════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    backdrop-filter: blur(6px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 16px;
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.modal-head h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
}
.modal-head button {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
}
.modal-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.modal-foot {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.8rem; color: var(--muted); font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }
.form-row select,
.form-row textarea {
    background: var(--card2);
    border: 1px solid var(--border);
    color: var(--text1);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    resize: vertical;
}
.form-row select:focus,
.form-row textarea:focus { outline: none; border-color: var(--gold); }

/* ══ TOAST ══════════════════════════════════════════════════════ */
#toastContainer {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--text1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: all;
    max-width: 320px;
}
.toast.show { transform: none; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warn); }
.toast-info    { border-left: 3px solid var(--gold); }

/* ══ LOADING ════════════════════════════════════════════════════ */
.loading-spin {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(var(--gold-rgb),.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 2rem auto;
}
.loading-spin.center { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══ EMPTY STATE ════════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.empty-state.full {
    grid-column: 1 / -1;
    width: 100%;
}
.empty-state svg { opacity: 0.3; }
.empty-state p { font-size: 0.92rem; }

/* ══ RESPONSIVE ════════════════════════════════════════════════ */
@media(max-width: 768px) {
    .profile-page { padding-top: calc(var(--nav-h) + 1rem); }
    .profile-banner { height: 180px; }
    .profile-avatar-wrap { width: 110px; height: 110px; }
    .profile-name { font-size: 1.6rem; }
    .profile-actions { flex-wrap: wrap; justify-content: center; }
    .profile-grid { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .achievements-grid { grid-template-columns: 1fr; }
    .friends-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .vehicles-grid, .properties-grid { grid-template-columns: 1fr; }
    .xp-overview { flex-direction: column; text-align: center; }
    .profile-tabs { padding: 0 0.5rem; }
    .tab-btn { padding: 0.8rem 0.6rem; font-size: 0.65rem; }
}

@media(max-width: 480px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .lightbox-nav { display: none; }
}

/* ── Post: Media & Link Preview ───────────────────────────────── */
.post-media { margin: .75rem 0; border-radius: 14px; overflow: hidden; }
.post-media video { width: 100%; max-height: 420px; display: block; background: #000; }

.post-link-preview {
    display: flex; align-items: center; gap: .75rem;
    padding: .75rem 1rem;
    background: rgba(139,43,226,.06);
    border: 1px solid rgba(139,43,226,.18);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text, #e8e0f0);
    margin: .75rem 0;
    transition: background .15s;
    overflow: hidden;
}
.post-link-preview:hover { background: rgba(139,43,226,.12); }
.post-link-img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.post-link-info { flex: 1; min-width: 0; }
.post-link-domain { font-size: .65rem; color: var(--muted, #888); font-family: monospace; text-transform: uppercase; letter-spacing: 1px; margin-bottom: .2rem; }
.post-link-title { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text, #e8e0f0); }

/* Composer tool button (Link) */
.composer-tool-btn { cursor: pointer; }
