
/* Phoenix 99 Members Hub v2 */
.p99-hub-heading {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(1.8rem, 5vw, 2.7rem);
}
.p99-hub-intro {
    margin: 0 0 22px;
    color: rgba(255,255,255,.88);
    font-size: 1rem;
}
.p99-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
}
.p99-hub-tile {
    position: relative;
    display: block;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 17px;
    background: #17284a center / cover no-repeat;
    color: #fff;
    box-shadow: 0 9px 26px rgba(0,0,0,.18);
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}
.p99-hub-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(3,10,23,.08) 12%,
            rgba(3,10,23,.38) 48%,
            rgba(3,10,23,.92) 100%
        );
}
.p99-hub-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,.23);
}
.p99-hub-tile-content {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 20px;
}
.p99-hub-tile h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 1.45rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.p99-hub-tile p {
    margin: 0;
    color: rgba(255,255,255,.88);
    line-height: 1.4;
}
.p99-hub-arrow {
    display: inline-block;
    margin-top: 10px;
    color: #fff;
    font-weight: 800;
}
.p99-hub-shop { background-image: url("../hub/shop.jpg"); }
.p99-hub-events { background-image: url("../hub/events.jpg"); }
.p99-hub-chronicles { background-image: url("../hub/chronicles.jpg"); }
.p99-hub-rules { background-image: url("../hub/rules.jpg"); }
.p99-hub-payments { background-image: url("../hub/payments.jpg"); }
.p99-hub-profile { background-image: url("../hub/profile.jpg"); }

.p99-events-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}
.p99-events-tools .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.p99-events-secondary {
    margin-left: auto;
}
.p99-shop-head {
    margin-bottom: 22px;
}
.p99-shop-head h1 {
    margin: 0 0 7px;
    color: #fff;
}
.p99-shop-head p {
    margin: 0;
    color: rgba(255,255,255,.88);
}
.p99-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
}
.p99-product-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #d6e2f7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.13);
}
.p99-product-image-wrap {
    position: relative;
    aspect-ratio: 5 / 6;
    overflow: hidden;
    background: #e7edf7;
}
.p99-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.p99-product-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #17284a;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.p99-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 19px;
}
.p99-product-body h2 {
    margin: 0 0 8px;
    color: #173b8a;
    font-size: 1.2rem;
}
.p99-product-body p {
    margin: 0 0 16px;
    color: #596a86;
    line-height: 1.5;
}
.p99-product-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}
.p99-product-price {
    font-size: 1.35rem;
    font-weight: 850;
    color: #17284a;
}
.p99-product-footer .btn {
    margin-left: auto;
}
.p99-product-coming {
    opacity: .72;
    cursor: default;
}
.p99-profile-note {
    margin: 0 0 18px;
    color: #596a86;
    line-height: 1.5;
}
.p99-link-note {
    font-size: .88rem;
    color: #6d7d96;
}
@media (max-width: 900px) {
    .p99-hub-grid,
    .p99-shop-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}
@media (max-width: 620px) {
    .p99-hub-grid,
    .p99-shop-grid {
        grid-template-columns: 1fr;
    }
    .p99-hub-tile {
        min-height: 145px;
    }
    .p99-events-tools {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .p99-events-tools .btn {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
    .p99-events-secondary {
        margin-left: 0;
    }
    .p99-product-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .p99-product-footer .btn {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }
}


/* Horizontal / patch product images stay fully visible instead of being cropped. */
.p99-product-image-wrap.is-compact {
    aspect-ratio: 16 / 10;
    background: #fff;
}
.p99-product-image-wrap.is-compact .p99-product-image {
    object-fit: contain;
    padding: 12px;
}

/* Reusable Events child-page back button. */
.p99-back-to-events {
    margin: 0 0 16px;
}
.p99-back-to-events .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 620px) {
    .p99-hub-tile {
        min-height: 175px;
    }

    .p99-product-image-wrap.is-compact {
        aspect-ratio: 16 / 9;
        max-height: 230px;
    }

    .p99-back-to-events .btn {
        width: 100%;
    }
}
