/* Addition to main.css — same variables and style */
.user-link { color: var(--teal); text-decoration: none; }
.user-link:hover { text-decoration: underline; }
.muted { color: var(--text-muted); font-size: 12px; margin-top: 12px; }
.price { color: var(--amber) !important; }

.friend-row { display: flex; gap: 12px; flex-wrap: wrap; }
.friend-chip { width: 96px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 9px; }
.friend-chip:hover { border-color: #555; }
.friend-chip strong { font-size: 12px; }
.friend-chip > span:last-child { font-size: 10px; color: var(--text-muted); }
.friend-avatar { position: relative; }
.friend-avatar .avatar-circle { width: 46px; height: 46px; font-size: 18px; }
.dot { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%;
    background: #555; border: 2px solid var(--surface); }
.dot.on { background: #6fcf97; }

.filter-row { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.chip { padding: 8px 14px; background: var(--surface-light); color: var(--text-muted); border: 1px solid var(--border);
    border-radius: 20px; font-size: 12px; font-weight: 700; }
.chip.active, .chip:hover { color: var(--text); border-color: #777; }

.profile-head { display: flex; align-items: center; gap: 22px; padding: 26px; background: #141414;
    border: 1px solid #303030; border-radius: 11px; flex-wrap: wrap; }
.profile-main { flex: 1; min-width: 220px; }
.profile-main h1 { font-size: 28px; letter-spacing: -0.8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-main p { color: var(--text-muted); font-size: 13px; margin-top: 6px; }
.profile-actions { display: flex; gap: 8px; }
.badge-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 12px; background: #263750; color: #dce7f7; }
.badge-icon.b-founder { background: rgba(214,184,117,.18); color: var(--amber); }
.badge-icon.b-dev { background: #2a2f3a; color: #a8b8d1; border-radius: 6px; }
.user-tag { padding: 4px 9px; font-size: 10px; font-weight: 800; color: var(--amber);
    background: rgba(214,184,117,.1); border: 1px solid rgba(214,184,117,.2); border-radius: 5px; }

.stat-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 16px 0 28px; }
.stat { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.stat strong { display: block; font-size: 19px; }
.stat span { color: var(--text-muted); font-size: 11px; }

.profile-cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.experience-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.info-card h3 { font-size: 14px; margin-bottom: 12px; }
.info-card dl { display: grid; grid-template-columns: auto auto; gap: 10px 12px; font-size: 12px; }
.info-card dt { color: var(--text-muted); }
.info-card dd { text-align: right; font-weight: 700; }

.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.inv-item { padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.inv-item span { display: block; font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }
.inv-item strong { font-size: 12px; }
.empty-state.small { min-height: 90px; padding: 18px; }

.pack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pack { position: relative; padding: 24px 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.pack strong { font-size: 20px; color: var(--amber); }
.pack span { color: var(--text-muted); font-size: 13px; }
.pack button { margin-top: 8px; }
.pack.popular { border-color: var(--amber); }
.pack em { position: absolute; top: 10px; right: 12px; font-size: 10px; font-style: normal; font-weight: 800; color: var(--amber); }

@media (max-width: 1050px) { .stat-row { grid-template-columns: repeat(3, 1fr); } .pack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .profile-cols { grid-template-columns: 1fr; } .experience-grid.two { grid-template-columns: 1fr; } }

/* ---- real-data additions (avatar images, thumbnails, achievements) ---- */
.avatar-circle.avatar-image {
    background-size: cover;
    background-position: center;
    color: transparent;
}

.experience-image.has-thumb .preview-label { z-index: 2; }
.experience-thumb {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
}

.achievement-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.achievement-list li { display: flex; gap: 10px; align-items: flex-start; }
.achievement-list .ach-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #202020;
    font-size: 13px;
}
.achievement-list .ach-icon-image { background-size: cover; background-position: center; }
.achievement-list .ach-text strong { display: block; font-size: 12px; }
.achievement-list .ach-text span {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.4;
}

/* ---- profile layout (about me, handle, account panel) ---- */
.profile-head.has-about { border-radius: 11px 11px 0 0; }

.profile-handle {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 13px;
}

.profile-sub {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 11px;
}

.profile-about {
    padding: 18px 26px 22px;
    background: #141414;
    border: 1px solid #303030;
    border-top: 0;
    border-radius: 0 0 11px 11px;
}

.profile-about .eyebrow { display: block; margin-bottom: 8px; }
.profile-about p { font-size: 13px; }

.stat-row.three { grid-template-columns: repeat(3, 1fr); }

.profile-cols aside { display: flex; flex-direction: column; gap: 16px; }

/* ---- friend requests ---- */
.request-list { display: flex; flex-direction: column; gap: 8px; }

.request-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.request-info { display: flex; flex-direction: column; }
.request-info strong { font-size: 13px; }
.request-info span { color: var(--text-muted); font-size: 11px; }
.request-actions { margin-left: auto; display: flex; gap: 8px; }

/* notifications: icon circle + unread accent */
.notification-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
}

.notification-item.unread { border-color: var(--teal-dark); }
.notification-item.unread .notification-icon { color: var(--teal-dark); border-color: var(--teal-dark); }

.mini-button {
    padding: 7px 14px;
    border: 0;
    border-radius: 7px;
    background: var(--teal-dark);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}
.mini-button.ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* ---- search bars ---- */
.search-bar {
    display: flex;
    gap: 8px;
    margin: 0 0 24px;
    max-width: 520px;
}

.search-bar input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 13px;
}

.search-bar input:focus {
    outline: none;
    border-color: #555;
}

.search-actions { margin-top: 18px; }

/* ---- settings extras ---- */
.settings-field textarea,
.settings-field select {
    width: 100%;
    padding: 10px 12px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 13px;
}

.settings-field textarea { resize: vertical; }

.settings-field input[type="file"] {
    width: 100%;
    padding: 9px 12px;
    background: var(--surface);
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 7px;
    font-size: 12px;
}

.settings-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 6px;
}

.settings-saved {
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
}

/* ---- auth modal extras ---- */
.auth-forgot {
    display: block;
    margin: 2px 0 14px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-decoration: underline;
}

.auth-forgot:hover { color: var(--text); }

/* ---- staff / role tags ---- */
.user-tag.staff-owner {
    color: #ffd98a;
    background: rgba(214, 184, 117, 0.16);
    border-color: rgba(214, 184, 117, 0.35);
}

.user-tag.staff-admin {
    color: #ffd98a;
    background: rgba(214, 184, 117, 0.12);
}

.user-tag.staff-moderator {
    color: #cfe0f7;
    background: rgba(120, 146, 189, 0.16);
    border-color: rgba(120, 146, 189, 0.3);
}

/* ---- favourite (heart) button on cards ---- */
.favorite-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.7);

    font-size: 14px;
    line-height: 1;
    transition: 0.15s ease;
}

.favorite-button:hover {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
}

.favorite-button.is-fav { color: #ff6b81; }
