/* ══ HERO ══ */
.ep-profile-hero {
    position: relative;
    margin-bottom: 2rem;
}
.ep-profile-cover {
    height: 420px;
    background-size: cover;
    background-position: center 30%;
    position: relative;
    overflow: hidden;
}
.ep-profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.05) 0%,
        rgba(0,0,0,.15) 40%,
        rgba(0,0,0,.75) 80%,
        rgba(0,0,0,.88) 100%
    );
}
.ep-profile-hero-inner {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 2;
    padding: 1.5rem 0 1.75rem;
}
.ep-profile-avatar-wrap {
    flex-shrink: 0;
}
.ep-profile-avatar-wrap .avatar {
    border: 3px solid rgba(255,255,255,.35);
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

/* status badge */
.ep-profile-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .74rem;
    font-weight: 600;
    padding: .22rem .6rem;
    border-radius: 50px;
    cursor: pointer;
}
.ep-profile-status.moderated  { background: rgba(25,135,84,.12); color: #198754; }
.ep-profile-status.pending    { background: rgba(255,193,7,.15);  color: #d39e00; }
.ep-profile-status.blocked    { background: rgba(220,53,69,.12);  color: #dc3545; }
[data-theme="dark"] .ep-profile-status.moderated { background:rgba(25,135,84,.22); color:#3fb950; }
[data-theme="dark"] .ep-profile-status.pending   { background:rgba(255,193,7,.18); color:#e3b341; }

/* elite badge */
.ep-elite-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .72rem; font-weight: 700;
    padding: .2rem .55rem; border-radius: 50px;
    background: linear-gradient(135deg, #a00000, #6b0000);
    color: #fff; letter-spacing: .02em;
    text-decoration: none;
}
.ep-elite-badge.inactive {
    background: linear-gradient(135deg,#6c757d,#495057);
}

/* contact icons */
.ep-contact-icon-active  { color: #a00000 !important; }
.ep-contact-icon-inactive { color: rgba(150,150,150,.45) !important; }

/* section card */
.ep-section-card {
    background: var(--ep-card-bg);
    border: 1px solid var(--ep-border-color);
    border-radius: .5rem;
}

/* tabs */
.nav-segment .nav-link.active {
    background: #a00000 !important;
    color: #fff !important;
}
.nav-segment .nav-link {
    color: var(--ep-body-color);
    cursor: pointer;
}

/* referencje bars */
.ep-ref-bar { height: 6px; border-radius: 3px; }

/* Inline detail row */
.ep-detail-row { font-size: .85rem; }
.ep-detail-row i { width: 18px; color: #a00000; }

/* action buttons */
.ep-btn-action {
    border-radius: 50px;
    font-size: .82rem;
    padding: .35rem .9rem;
    font-weight: 600;
}

/* tag skills */
.ep-skill-tag {
    display: inline-block;
    font-size: .75rem;
    padding: .2rem .65rem;
    border-radius: 50px;
    background: var(--ep-body-bg);
    border: 1px solid var(--ep-border-color);
    color: var(--ep-body-color);
    margin: .15rem;
}

/* opis generyczny — nadpisanie starych klas BS3 na BS5 styl */
.ep-ad-generic { line-height: 1.7; color: var(--ep-body-color); font-size: .92rem; }
.ep-ad-generic .btn.btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    gap: .35rem !important;
    background: rgba(160,0,0,.1) !important;
    color: #a00000 !important;
    border: 1px solid rgba(160,0,0,.25) !important;
    border-radius: 50px !important;
    font-size: .78rem !important;
    font-weight: 600 !important;
    padding: .28rem .7rem !important;
    text-decoration: none !important;
    transition: background .15s, color .15s;
    vertical-align: middle;
    margin: .15rem .1rem;
}
.ep-ad-generic .btn.btn-primary:hover {
    background: #a00000 !important;
    color: #fff !important;
}
.ep-ad-generic .u-icon-v1 { display: none !important; }

/* miniaturki pod avatarem */
.ep-thumb-mini {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    border-radius: .35rem;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.3);
    transition: border-color .15s, transform .15s;
    flex-shrink: 0;
}
.ep-thumb-mini:hover {
    border-color: #a00000;
    transform: scale(1.08);
}
.ep-thumb-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ep-thumb-more {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* photo gallery tab */
.ep-gallery-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: .35rem;
    cursor: pointer;
    transition: opacity .15s;
}
.ep-gallery-thumb:hover { opacity: .85; }

@keyframes ep-blink {
    0%   { box-shadow: 0 0 0 0 rgba(160,0,0,.7); }
    70%  { box-shadow: 0 0 0 6px rgba(160,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(160,0,0,0); }
}

.ep-hidden { display: none !important; }
