/* Accmaa Profile — 4 hub icons → gallery drill-down */
.accmaa-profile-section {
    padding: 36px 24px 56px;
    background: linear-gradient(180deg, #eef4fa 0%, #fff 50%);
    border-radius: 24px;
    margin: 28px 16px;
    border: 1px solid #e8edf3;
}

/* ─── Hub: 4 icons only ─── */
.accmaa-profile-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.accmaa-profile-hub-icon {
    appearance: none;
    border: 2px solid #e8edf3;
    background: #fff;
    border-radius: 20px;
    padding: 28px 22px 22px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
    box-shadow: 0 8px 28px rgba(10, 54, 105, 0.08);
    position: relative;
    overflow: hidden;
}

.accmaa-profile-hub-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--hub-color, var(--primary));
}

.accmaa-profile-hub-icon:hover {
    transform: translateY(-10px);
    border-color: var(--gold, #D4AF37);
    box-shadow: 0 22px 50px rgba(10, 54, 105, 0.16);
}

.accmaa-profile-hub-glyph {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--hub-color), color-mix(in srgb, var(--hub-color) 65%, #000));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 4px;
}

.accmaa-profile-hub-logo {
    max-width: 100px;
    max-height: 56px;
    object-fit: contain;
    margin: 4px 0;
}

.accmaa-profile-hub-icon strong {
    font-size: 1.15rem;
    color: var(--primary);
}

.accmaa-profile-hub-icon small {
    font-size: 0.82rem;
    color: var(--muted, #64748b);
    line-height: 1.45;
    max-width: 220px;
}

.accmaa-profile-hub-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 14px;
    border-radius: 999px;
    background: #fffbeb;
    color: var(--gold, #C9A227);
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid var(--gold);
}

.accmaa-profile-hub-cta {
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--hub-color, var(--primary));
}

/* ─── Gallery (inside icon) ─── */
.accmaa-profile-gallery-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #eef2f7;
}

.accmaa-profile-gallery-title {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.accmaa-profile-gallery-title h3 {
    margin: 0 0 4px;
    color: var(--primary);
    font-size: 1.2rem;
}

.accmaa-profile-gallery-title p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.accmaa-profile-cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.accmaa-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.accmaa-profile-card {
    appearance: none;
    border: 2px solid #e8edf3;
    background: #fff;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    text-align: start;
    transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
    box-shadow: 0 6px 20px rgba(10, 54, 105, 0.08);
}

.accmaa-profile-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 48px rgba(10, 54, 105, 0.18);
    border-color: var(--gold, #D4AF37);
}

.accmaa-profile-thumb {
    display: block;
    aspect-ratio: 1200 / 1700;
    background: #fff;
    overflow: hidden;
    border-bottom: 3px solid var(--primary, #0A3669);
}

.accmaa-profile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
}

.accmaa-profile-meta {
    display: block;
    padding: 12px 14px 14px;
}

.accmaa-profile-meta strong {
    display: block;
    font-size: 0.82rem;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 4px;
}

.accmaa-profile-meta small {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
}

.profile-empty-wrap {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px;
}

/* Lightbox */
.accmaa-profile-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.accmaa-profile-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.accmaa-profile-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 31, 61, 0.88);
    backdrop-filter: blur(6px);
}

.accmaa-profile-lightbox-dialog {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    max-width: min(920px, 96vw);
    max-height: 94vh;
    overflow: auto;
    padding: 20px 24px 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.accmaa-profile-lb-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    cursor: pointer;
    color: var(--primary);
}

.accmaa-profile-lb-title {
    margin: 0 0 16px;
    padding-inline-start: 44px;
    font-size: 1.1rem;
    color: var(--primary);
}

.accmaa-profile-lb-body img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 3px solid var(--primary);
}

.accmaa-profile-lb-actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

body.accmaa-lb-open { overflow: hidden; }

@media (max-width: 640px) {
    .accmaa-profile-hub-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .accmaa-profile-hub-icon { padding: 20px 14px; }
    .accmaa-profile-hub-glyph { width: 56px; height: 56px; font-size: 1.5rem; }
}
