/* ITKapocs v28 – Public Provider Profile */

.pubProfileShell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px 58px;
}

.pubProfileHero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    border: 1px solid #bfdbfe;
    border-radius: 34px;
    background:
        radial-gradient(circle at 14% 10%, rgba(37, 99, 235, .14), transparent 28%),
        linear-gradient(135deg, #ffffff, #eff6ff);
    box-shadow: 0 30px 80px rgba(15,23,42,.08);
    margin-bottom: 22px;
}

.pubHeroMain {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.pubAvatar {
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0f3b82, #2563eb);
    color: #fff;
    font-size: 42px;
    font-weight: 950;
    box-shadow: 0 18px 40px rgba(37,99,235,.28);
}

.pubEyebrow {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pubHeroMain h1 {
    margin: 12px 0 8px;
    color: #0f172a;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.pubHeroMain p {
    max-width: 720px;
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.pubHeroMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.pubHeroMeta span,
.pubAreaGrid span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 850;
    font-size: 13px;
}

.pubHeroActions {
    display: grid;
    gap: 10px;
    min-width: 210px;
}

.pubPrimary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 16px 34px rgba(37,99,235,.28);
}

.pubProfileGrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

.pubProfileMain {
    display: grid;
    gap: 18px;
}

.pubProfileSide {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 18px;
}

.pubCard {
    border: 1px solid #dbeafe;
    border-radius: 28px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 70px rgba(15,23,42,.07);
    padding: 24px;
}

.pubSectionHead {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.pubSectionHead > span {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: #2563eb;
    color: #fff;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(37,99,235,.20);
}

.pubSectionHead h2,
.pubCard h2 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 24px;
    letter-spacing: -.025em;
}

.pubSectionHead p,
.pubCTA p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.pubDescription {
    color: #334155;
    font-size: 16px;
    line-height: 1.85;
}

.pubAreaGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pubSteps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pubSteps div {
    padding: 18px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.pubSteps b {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
    margin-bottom: 12px;
}

.pubSteps h3 {
    margin: 0 0 6px;
    color: #0f172a;
}

.pubSteps p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
    font-size: 14px;
}

.pubContactRows {
    display: grid;
    gap: 12px;
}

.pubContactRows div,
.pubStat,
.pubUsage {
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.pubContactRows span,
.pubStat span,
.pubUsage span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.pubContactRows strong,
.pubContactRows a,
.pubStat strong,
.pubUsage strong {
    color: #0f172a;
    font-weight: 950;
    word-break: break-word;
}

.pubStatsCard {
    display: grid;
    gap: 12px;
}

.pubUsageBar {
    height: 11px;
    margin-top: 10px;
    border-radius: 999px;
    background: #eaf2ff;
    overflow: hidden;
}

.pubUsageBar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
}

.pubCTA {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
}

.pubCTA h2,
.pubCTA p {
    color: #fff;
}

.pubCTA p {
    opacity: .82;
    margin-bottom: 16px;
}

.publicProviderActions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.publicProviderActions.compact {
    grid-template-columns: 1fr 1fr;
}

.publicProviderListCard .providerIcon {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0f3b82, #2563eb);
    color: #fff;
    font-weight: 950;
}

.pubCopyToast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2000;
    padding: 14px 18px;
    border-radius: 16px;
    background: #0f172a;
    color: #fff;
    font-weight: 850;
    box-shadow: 0 18px 40px rgba(15,23,42,.22);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease;
}

.pubCopyToast.isVisible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .pubProfileHero,
    .pubHeroMain {
        align-items: flex-start;
    }

    .pubProfileHero {
        flex-direction: column;
    }

    .pubHeroActions {
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

    .pubProfileGrid {
        grid-template-columns: 1fr;
    }

    .pubProfileSide {
        position: static;
    }
}

@media (max-width: 720px) {
    .pubProfileShell {
        padding: 16px 12px 42px;
    }

    .pubProfileHero,
    .pubCard {
        border-radius: 24px;
        padding: 20px;
    }

    .pubHeroMain {
        flex-direction: column;
    }

    .pubHeroActions,
    .pubSteps,
    .publicProviderActions {
        grid-template-columns: 1fr;
    }
}
