/* ── Shared page hero banner ─────────────────────────────────────────────── */
.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 2.5rem;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10,25,80,.72) 0%, rgba(0,40,60,.60) 100%);
    z-index: 1;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 3.5rem 2rem;
    text-align: center;
    color: #fff;
}

.page-hero__badge {
    display: inline-block;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    padding: 5px 18px;
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255,255,255,.95);
    margin-bottom: 1rem;
    letter-spacing: .03em;
}

.page-hero__title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    color: #fff !important;
    text-shadow: 0 2px 14px rgba(0,0,0,.48);
    margin-bottom: .6rem;
    line-height: 1.15;
}

.page-hero__subtitle {
    font-size: clamp(.95rem, 2vw, 1.15rem);
    color: rgba(255,255,255,.93) !important;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
    max-width: 680px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.page-hero__stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-hero__stat {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 10px 20px;
    min-width: 100px;
    text-align: center;
}

.page-hero__stat-num {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.page-hero__stat-label {
    font-size: .73rem;
    color: rgba(255,255,255,.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 3px;
}

/* Admin controls overlay */
.page-hero__admin-bar {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 20;
    display: flex;
    gap: 6px;
    align-items: center;
}

.page-hero__admin-btn {
    background: rgba(255,255,255,.92);
    color: #1a237e;
    border: none;
    border-radius: 8px;
    padding: 6px 13px;
    font-size: .77rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,.22);
    transition: background .15s, transform .1s;
    line-height: 1;
    text-decoration: none;
}
.page-hero__admin-btn:hover {
    background: #fff;
    transform: translateY(-1px);
}
.page-hero__admin-btn--remove {
    background: rgba(220,53,69,.85);
    color: #fff;
}
.page-hero__admin-btn--remove:hover {
    background: rgba(220,53,69,1);
    color: #fff;
}

/* Upload progress toast inside hero */
.page-hero__toast {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 20;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    animation: heroToastIn .25s ease;
}
@keyframes heroToastIn {
    from { opacity:0; transform:translateY(6px); }
    to   { opacity:1; transform:translateY(0); }
}

@media (max-width: 576px) {
    .page-hero { min-height: 220px; }
    .page-hero__content { padding: 2.2rem 1rem; }
    .page-hero__stats { gap: .6rem; }
    .page-hero__stat { padding: 7px 12px; min-width: 80px; }
    .page-hero__stat-num { font-size: 1.3rem; }
}
