.portal-home-compact {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    isolation: isolate;
}

.portal-home-compact::before {
    content: "";
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse, rgba(25, 195, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.ph-shell {
    padding: 1.15rem 1.2rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(35, 75, 114, 0.55);
    box-shadow: 0 22px 48px rgba(2, 8, 18, 0.45);
    background: linear-gradient(180deg, rgba(11, 22, 40, 0.78) 0%, rgba(8, 17, 32, 0.58) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ph-kicker {
    margin: 0 0 0.8rem;
    color: #f0f8ff;
    letter-spacing: 0.14em;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ph-title {
    margin: 0 0 0.55rem;
    color: #f3f9ff;
    font-size: clamp(2.8rem, 4.8vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.ph-subtitle {
    margin: 0 auto 1.5rem;
    color: #b9d2e7;
    font-size: 1.15rem;
    max-width: 50ch;
}

.ph-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.62rem;
    margin-bottom: 1.25rem;
}

.ph-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(30, 70, 104, 0.9);
    background: rgba(9, 19, 35, 0.64);
    color: #9ed4ff !important;
    text-decoration: none !important;
    font-size: 0.86rem;
    font-weight: 700;
}

.ph-chip i {
    color: #19c3ff;
    font-size: 0.82rem;
}

.ph-chip-value {
    font-variant-numeric: tabular-nums;
}

.ph-chip-label {
    color: #8ca5bf;
    font-weight: 600;
}

.ph-chip.is-alert,
.ph-chip.is-alert i {
    color: #f87171 !important;
}

.ph-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.72rem;
    margin-bottom: 1.35rem;
}

.ph-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 96px;
    padding: 0.55rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(31, 63, 94, 0.9);
    background: rgba(9, 19, 35, 0.64);
    color: #18bfff !important;
    text-decoration: none !important;
    font-size: 0.96rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.ph-tile i {
    font-size: 1.08rem;
}

.ph-tile:hover {
    border-color: rgba(25, 195, 255, 0.55);
    background: rgba(10, 24, 45, 0.8);
    transform: translateY(-1px);
}

.ph-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

/* Center portal block vertically/horizontally on index */
.hoxta-content.is-portal-home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hoxta-content.is-portal-home::before {
    content: none;
}

.ph-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 12px;
    padding: 0.85rem 1.75rem;
    font-size: 1.02rem;
    font-weight: 800;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.ph-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, #19c3ff 0%, #0ea5e9 100%);
    border: 1px solid transparent;
    box-shadow: 0 8px 24px rgba(25, 195, 255, 0.25);
}

.ph-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(25, 195, 255, 0.34);
}

.ph-btn-outline {
    color: #a7d9ff !important;
    border: 1px solid rgba(35, 73, 108, 0.95);
    background: rgba(9, 19, 35, 0.65);
}

.ph-btn-outline:hover {
    border-color: rgba(25, 195, 255, 0.55);
}

@media (max-width: 900px) {
    .portal-home-compact {
        max-width: 860px;
    }

    .hoxta-content.is-portal-home {
        align-items: flex-start;
        min-height: auto;
        padding-top: 1.4rem;
    }

    .ph-title {
        font-size: clamp(2.2rem, 7vw, 3rem);
    }

    .ph-subtitle {
        font-size: 1.02rem;
    }

    .ph-shell {
        padding: 1rem 0.9rem;
    }
}

@media (max-width: 680px) {
    .portal-home-compact {
        max-width: 100%;
    }

    .ph-chips {
        margin-bottom: 1rem;
    }

    .ph-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ph-tile {
        min-height: 88px;
        font-size: 0.9rem;
    }
}
