.iq-profile-shell {
    --iq-profile-primary: var(--falcon-primary);
    --iq-profile-secondary: #24b47e;
    --iq-profile-ink: #f7fbff;
    --iq-profile-muted: #9eabb9;
    --iq-profile-panel: rgba(10, 16, 25, .76);
    --iq-profile-panel-border: rgba(134, 153, 174, .22);
}

.iq-profile-hero {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--iq-profile-primary, var(--falcon-primary));
    border-radius: 8px;
    min-height: 276px;
    padding: 1.35rem;
    color: var(--iq-profile-ink);
    background-color: #09111d;
    background-image:
        linear-gradient(115deg, rgba(8, 13, 22, .96), rgba(18, 26, 38, .86) 50%, rgba(8, 14, 24, .94)),
        radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--iq-profile-primary) 34%, transparent), transparent 34%),
        var(--iq-profile-banner-image, linear-gradient(135deg, #0b1220, #152033 52%, #111820));
    background-position: center;
    background-size: cover;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.iq-profile-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, .75), transparent 76%);
}

.iq-profile-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 1.35rem;
    align-items: stretch;
}

.iq-profile-media-frame {
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    border-radius: 8px;
    border: 1px solid rgba(176, 192, 211, .24);
    background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 18px rgba(0, 0, 0, .16);
    overflow: hidden;
}

.iq-profile-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .75rem;
    background: rgba(255, 255, 255, .96);
}

.iq-profile-media-frame-sm {
    width: 84px;
    height: 84px;
}

.iq-profile-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    background: linear-gradient(145deg, color-mix(in srgb, var(--iq-profile-primary) 36%, #192638), #111820);
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: 0;
}

.iq-profile-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.1rem;
}

.iq-profile-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.iq-profile-kicker,
.iq-profile-panel-label,
.iq-profile-section-title {
    color: var(--iq-profile-primary);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .08rem;
    text-transform: uppercase;
}

.iq-profile-heading h2 {
    margin: .2rem 0 .15rem;
    color: #ffffff;
    font-size: 2.05rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.iq-profile-subline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    color: var(--iq-profile-muted);
    font-weight: 700;
}

.iq-profile-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--iq-profile-secondary);
    box-shadow: 0 0 12px color-mix(in srgb, var(--iq-profile-secondary) 70%, transparent);
}

.iq-profile-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .35rem 0 .4rem;
}

.iq-profile-pill {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    width: fit-content;
    border: 1px solid color-mix(in srgb, var(--iq-profile-secondary) 54%, transparent);
    border-radius: 999px;
    padding: .23rem .58rem;
    color: #efffff;
    background: color-mix(in srgb, var(--iq-profile-secondary) 22%, rgba(8, 13, 22, .78));
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.iq-profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.iq-profile-info-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.iq-profile-panel {
    min-width: 0;
    border: 1px solid var(--iq-profile-panel-border);
    border-radius: 8px;
    padding: .95rem;
    background: var(--iq-profile-panel);
    backdrop-filter: blur(10px);
}

.iq-profile-panel-accent {
    border-color: color-mix(in srgb, var(--iq-profile-secondary) 34%, transparent);
}

.iq-profile-line {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .62rem;
    margin-top: .58rem;
    color: #e7edf5;
    font-size: .9rem;
    line-height: 1.35;
}

.iq-profile-line i {
    width: 16px;
    color: var(--iq-profile-primary);
    text-align: center;
}

.iq-profile-line span,
.iq-profile-line a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.iq-profile-line a {
    color: inherit;
}

.iq-profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 1.25rem;
    border: 1px solid rgba(126, 148, 170, .22);
    border-radius: 8px;
    background: rgba(13, 20, 31, .88);
    color: #d8e2ef;
    text-align: center;
}

.iq-profile-loading .lottie {
    display: block;
    flex: 0 0 auto;
    margin-right: auto;
    margin-left: auto;
}

.iq-profile-loading-text {
    display: block;
    width: 100%;
    margin-top: .35rem;
    color: inherit;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08rem;
    text-align: center;
    text-transform: uppercase;
}

.iq-profile-edit-panel {
    border: 1px solid rgba(126, 148, 170, .22);
    border-radius: 8px;
    padding: 1.25rem;
    background: var(--iq-profile-panel);
}

.iq-profile-edit-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(126, 148, 170, .18);
}

.iq-profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: 1.25rem;
}

:root:not([data-bs-theme="dark"]) .iq-profile-shell,
[data-bs-theme="light"] .iq-profile-shell {
    --iq-profile-ink: #17202b;
    --iq-profile-muted: #556270;
    --iq-profile-panel: rgba(255, 255, 255, .84);
    --iq-profile-panel-border: rgba(33, 53, 74, .16);
}

:root:not([data-bs-theme="dark"]) .iq-profile-hero,
[data-bs-theme="light"] .iq-profile-hero {
    color: var(--iq-profile-ink);
    border-color: var(--iq-profile-primary, var(--falcon-primary));
    background-color: #f4f7fb;
    background-image:
        linear-gradient(115deg, rgba(247, 250, 253, .96), rgba(232, 238, 246, .84) 54%, rgba(245, 248, 252, .94)),
        radial-gradient(circle at 83% 18%, color-mix(in srgb, var(--iq-profile-primary) 18%, transparent), transparent 34%),
        var(--iq-profile-banner-image, linear-gradient(135deg, #f8fafc, #e6edf5 56%, #eef3f8));
    box-shadow: 0 14px 32px rgba(33, 53, 74, .12);
}

:root:not([data-bs-theme="dark"]) .iq-profile-hero::before,
[data-bs-theme="light"] .iq-profile-hero::before {
    background-image:
        linear-gradient(rgba(20, 35, 52, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 35, 52, .05) 1px, transparent 1px);
}

:root:not([data-bs-theme="dark"]) .iq-profile-heading h2,
:root:not([data-bs-theme="dark"]) .iq-profile-line,
[data-bs-theme="light"] .iq-profile-heading h2,
[data-bs-theme="light"] .iq-profile-line {
    color: #142033;
}

:root:not([data-bs-theme="dark"]) .iq-profile-panel,
:root:not([data-bs-theme="dark"]) .iq-profile-edit-panel,
[data-bs-theme="light"] .iq-profile-panel,
[data-bs-theme="light"] .iq-profile-edit-panel {
    box-shadow: 0 10px 24px rgba(33, 53, 74, .08);
}

:root:not([data-bs-theme="dark"]) .iq-profile-pill,
[data-bs-theme="light"] .iq-profile-pill {
    color: #173226;
    background: color-mix(in srgb, var(--iq-profile-secondary) 16%, rgba(255, 255, 255, .9));
}

:root:not([data-bs-theme="dark"]) .iq-profile-loading,
[data-bs-theme="light"] .iq-profile-loading {
    border-color: rgba(36, 57, 78, .16);
    background: rgba(247, 250, 253, .92);
    color: #263241;
}

@media (max-width: 767.98px) {
    .iq-profile-hero {
        padding: 1rem;
    }

    .iq-profile-grid,
    .iq-profile-info-grid,
    .iq-profile-info-grid-3 {
        grid-template-columns: 1fr;
    }

    .iq-profile-media-frame {
        width: 96px;
        height: 96px;
    }

    .iq-profile-heading {
        flex-direction: column;
    }

    .iq-profile-heading h2 {
        font-size: 1.7rem;
    }
}
