:root {
    --hmp-teal-950: #003c3a;
    --hmp-teal-900: #004b48;
    --hmp-teal-800: #075f5b;
    --hmp-teal-700: #08736d;
    --hmp-teal-100: #e7f3f1;
    --hmp-gold-500: #d7ad4f;
    --hmp-gold-100: #fbf3df;
    --hmp-ink: #182b2a;
    --hmp-muted: #617371;
    --hmp-line: #d9e7e5;
    --hmp-surface: #ffffff;
    --hmp-bg: #f5f8f7;
    --hmp-danger: #a52b2b;
    --hmp-danger-bg: #fff1f1;
    --hmp-success: #176b45;
    --hmp-success-bg: #edf8f2;
    --hmp-radius: 16px;
    --hmp-shadow: 0 16px 45px rgba(7, 71, 69, 0.09);
}

.hmp-auth-shell,
.hmp-page-shell,
.hmp-dashboard-lite,
.hmp-auth-required,
.hmp-component-placeholder {
    width: 100%;
    box-sizing: border-box;
    color: var(--hmp-ink);
    font-family: inherit;
}

.hmp-auth-shell *,
.hmp-page-shell *,
.hmp-dashboard-lite *,
.hmp-auth-required *,
.hmp-component-placeholder * {
    box-sizing: border-box;
}

.hmp-auth-shell {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.hmp-auth-shell--wide {
    padding: 18px 0 34px;
}

.hmp-auth-card,
.hmp-page-shell,
.hmp-dashboard-lite,
.hmp-auth-required {
    border: 1px solid var(--hmp-line);
    border-radius: var(--hmp-radius);
    background: var(--hmp-surface);
    box-shadow: var(--hmp-shadow);
}

.hmp-auth-card {
    width: min(100%, 500px);
    padding: 36px;
}

.hmp-auth-card--wide {
    width: min(100%, 940px);
    padding: 38px;
}

.hmp-auth-card__header,
.hmp-page-heading,
.hmp-dashboard-lite__hero,
.hmp-dashboard-lite__panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.hmp-auth-card__brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--hmp-teal-700), var(--hmp-teal-950));
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 75, 72, 0.22);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hmp-auth-card__header .hmp-auth-card__brand-mark {
    margin-bottom: 0;
}

.hmp-eyebrow {
    margin: 0 0 7px;
    color: var(--hmp-teal-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hmp-auth-card h2,
.hmp-page-shell h2,
.hmp-dashboard-lite h2,
.hmp-auth-required h2 {
    margin: 0;
    color: var(--hmp-ink);
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.14;
    letter-spacing: -0.025em;
}

.hmp-form-intro,
.hmp-page-heading p,
.hmp-dashboard-lite__hero p,
.hmp-auth-required p {
    margin: 12px 0 0;
    color: var(--hmp-muted);
    font-size: 15px;
    line-height: 1.72;
}

.hmp-form {
    margin-top: 27px;
}

.hmp-fieldset {
    min-width: 0;
    margin: 0 0 26px;
    padding: 0 0 26px;
    border: 0;
    border-bottom: 1px solid var(--hmp-line);
}

.hmp-fieldset:last-of-type {
    margin-bottom: 24px;
}

.hmp-fieldset legend {
    width: 100%;
    margin: 0 0 17px;
    padding: 0;
    color: var(--hmp-ink);
    font-size: 17px;
    font-weight: 800;
}

.hmp-form-grid {
    display: grid;
    gap: 18px;
}

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

.hmp-field--full {
    grid-column: 1 / -1;
}

.hmp-field {
    min-width: 0;
}

.hmp-field label,
.hmp-field__label-row label {
    display: block;
    margin-bottom: 8px;
    color: var(--hmp-ink);
    font-size: 14px;
    font-weight: 700;
}

.hmp-field label span {
    color: #a0462e;
}

.hmp-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hmp-field__label-row a,
.hmp-auth-card__footer a,
.hmp-text-link {
    color: var(--hmp-teal-700);
    font-weight: 700;
    text-decoration: none;
}

.hmp-field__label-row a:hover,
.hmp-auth-card__footer a:hover,
.hmp-text-link:hover {
    text-decoration: underline;
}

.hmp-field input[type="text"],
.hmp-field input[type="email"],
.hmp-field input[type="password"],
.hmp-field input[type="tel"],
.hmp-field input[type="number"],
.hmp-field input[type="date"] {
    display: block;
    width: 100%;
    min-height: 49px;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #b8cac7;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: var(--hmp-ink);
    box-shadow: none;
    font: inherit;
    font-size: 15px;
    line-height: 1.3;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hmp-field input[readonly] {
    background: #f2f5f4;
    color: #566765;
    cursor: not-allowed;
}

.hmp-field input:focus {
    border-color: var(--hmp-teal-700);
    box-shadow: 0 0 0 3px rgba(8, 115, 109, 0.13);
}

.hmp-field small {
    display: block;
    margin-top: 7px;
    color: var(--hmp-muted);
    font-size: 12px;
    line-height: 1.55;
}

.hmp-password-wrap {
    position: relative;
}

.hmp-password-wrap input {
    padding-inline-end: 70px !important;
}

.hmp-password-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 8px;
    transform: translateY(-50%);
    min-height: 34px;
    padding: 4px 9px;
    border: 0;
    border-radius: 7px;
    background: var(--hmp-teal-100);
    color: var(--hmp-teal-800);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.hmp-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 18px 0;
    color: var(--hmp-muted);
    font-size: 14px;
    cursor: pointer;
}

.hmp-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--hmp-teal-700);
}

.hmp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hmp-button:hover {
    transform: translateY(-1px);
}

.hmp-button:focus-visible,
.hmp-password-toggle:focus-visible,
.hmp-text-link:focus-visible {
    outline: 3px solid rgba(215, 173, 79, 0.46);
    outline-offset: 2px;
}

.hmp-button--primary {
    background: linear-gradient(135deg, var(--hmp-teal-700), var(--hmp-teal-900));
    color: #fff !important;
    box-shadow: 0 9px 22px rgba(0, 75, 72, 0.18);
}

.hmp-button--primary:hover {
    background: linear-gradient(135deg, var(--hmp-teal-800), var(--hmp-teal-950));
    color: #fff !important;
}

.hmp-button--secondary {
    border-color: var(--hmp-line);
    background: #fff;
    color: var(--hmp-teal-800) !important;
}

.hmp-button--secondary:hover {
    border-color: #b4ceca;
    background: var(--hmp-teal-100);
}

.hmp-button--full {
    width: 100%;
}

.hmp-auth-card__footer {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--hmp-line);
    color: var(--hmp-muted);
    font-size: 14px;
    text-align: center;
}

.hmp-alert {
    margin: 20px 0;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.55;
}

.hmp-alert ul {
    margin: 0;
    padding-inline-start: 20px;
}

.hmp-alert--error {
    border-color: #e8bbbb;
    background: var(--hmp-danger-bg);
    color: var(--hmp-danger);
}

.hmp-alert--success {
    border-color: #b8ddc9;
    background: var(--hmp-success-bg);
    color: var(--hmp-success);
}

.hmp-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.hmp-page-shell,
.hmp-dashboard-lite {
    padding: 34px;
}

.hmp-page-heading {
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hmp-line);
}

.hmp-page-heading > div {
    max-width: 680px;
}

.hmp-profile-form {
    margin-top: 0;
}

.hmp-form-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 25px;
}

.hmp-dashboard-lite {
    background: var(--hmp-bg);
}

.hmp-dashboard-lite__hero {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--hmp-line);
    border-radius: 14px;
    background: #fff;
}

.hmp-dashboard-lite__hero::after {
    position: absolute;
    inset: 0 0 0 auto;
    width: 37%;
    background-image: radial-gradient(circle at 2px 2px, rgba(215, 173, 79, 0.16) 1px, transparent 0);
    background-size: 15px 15px;
    content: "";
    pointer-events: none;
}

.hmp-dashboard-lite__hero > * {
    position: relative;
    z-index: 1;
}

.hmp-dashboard-lite__hero > div:first-child {
    max-width: 680px;
}

.hmp-member-chip {
    min-width: 160px;
    padding: 15px 17px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--hmp-teal-800), var(--hmp-teal-950));
    color: #fff;
    text-align: end;
}

.hmp-member-chip span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hmp-member-chip strong {
    font-size: 17px;
}

.hmp-dashboard-lite__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 17px;
}

.hmp-summary-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-height: 128px;
    padding: 20px;
    border: 1px solid var(--hmp-line);
    border-radius: 13px;
    background: #fff;
}

.hmp-summary-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: var(--hmp-gold-100);
    color: var(--hmp-teal-800);
    font-weight: 900;
}

.hmp-summary-card > div > span,
.hmp-summary-card small {
    display: block;
    color: var(--hmp-muted);
    font-size: 12px;
}

.hmp-summary-card strong {
    display: block;
    margin: 3px 0 5px;
    color: var(--hmp-teal-800);
    font-size: 20px;
}

.hmp-summary-card--muted strong {
    color: #7b6a42;
}

.hmp-progress {
    width: 100%;
    height: 6px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 99px;
    background: #e7eeec;
}

.hmp-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hmp-gold-500), var(--hmp-teal-700));
}

.hmp-dashboard-lite__panel {
    margin-top: 17px;
    padding: 26px;
    border: 1px solid var(--hmp-line);
    border-radius: 14px;
    background: #fff;
}

.hmp-dashboard-lite__panel h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.hmp-details-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 30px;
    margin: 0;
}

.hmp-details-list div {
    display: grid;
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 10px;
}

.hmp-details-list dt {
    color: var(--hmp-muted);
    font-size: 13px;
}

.hmp-details-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--hmp-ink);
    font-size: 14px;
    font-weight: 700;
}

.hmp-dashboard-lite__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.hmp-auth-required {
    max-width: 650px;
    margin: 20px auto;
    padding: 42px;
    text-align: center;
}

.hmp-auth-required .hmp-auth-card__brand-mark {
    margin-inline: auto;
}

.hmp-auth-required__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.hmp-component-placeholder {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--hmp-line);
    border-radius: 14px;
    background: #fff;
    color: var(--hmp-ink);
    box-shadow: 0 10px 28px rgba(7, 71, 69, 0.06);
}

.hmp-component-placeholder__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--hmp-teal-800);
    color: #fff;
    font-weight: 800;
}

.hmp-component-placeholder strong {
    display: block;
    margin: 1px 0 6px;
    font-size: 17px;
}

.hmp-component-placeholder p {
    margin: 0;
    color: var(--hmp-muted);
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 760px) {
    .hmp-auth-card,
    .hmp-auth-card--wide,
    .hmp-page-shell,
    .hmp-dashboard-lite,
    .hmp-auth-required {
        padding: 23px;
        border-radius: 13px;
    }

    .hmp-auth-card__header,
    .hmp-page-heading,
    .hmp-dashboard-lite__hero,
    .hmp-dashboard-lite__panel {
        flex-direction: column;
    }

    .hmp-form-grid--2,
    .hmp-dashboard-lite__grid,
    .hmp-details-list {
        grid-template-columns: 1fr;
    }

    .hmp-field--full {
        grid-column: auto;
    }

    .hmp-member-chip {
        width: 100%;
        text-align: start;
    }

    .hmp-dashboard-lite__hero::after {
        width: 100%;
        opacity: 0.55;
    }

    .hmp-dashboard-lite__actions {
        width: 100%;
    }

    .hmp-auth-required__actions,
    .hmp-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hmp-button {
        width: 100%;
    }

    .hmp-details-list div {
        grid-template-columns: 90px minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hmp-button,
    .hmp-field input {
        transition: none;
    }
}

.hmp-privacy-note {
    margin: -4px 0 16px;
    color: var(--hmp-muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.hmp-privacy-note a {
    color: var(--hmp-teal-700);
    font-weight: 700;
}

/* Phase 3: annual membership checkout */
.hmp-membership-page {
    max-width: 1180px;
    margin-inline: auto;
}

.hmp-membership-current,
.hmp-pending-payment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 22px 0;
    padding: 22px;
    border: 1px solid #bcded5;
    border-radius: 14px;
    background: linear-gradient(135deg, #f1fbf7, #ffffff);
}

.hmp-membership-current__badge {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--hmp-teal-800);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.hmp-membership-current__content {
    flex: 1 1 auto;
}

.hmp-membership-current h3,
.hmp-pending-payment h3,
.hmp-membership-section-heading h3,
.hmp-plan-card h3 {
    margin: 7px 0 8px;
    color: var(--hmp-ink);
}

.hmp-membership-current p,
.hmp-pending-payment p,
.hmp-plan-card p,
.hmp-membership-security-note p {
    margin: 0;
    color: var(--hmp-muted);
    line-height: 1.6;
}

.hmp-membership-current__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 10px 0;
    color: var(--hmp-muted);
    font-size: 14px;
}

.hmp-membership-current__meta strong {
    color: var(--hmp-ink);
}

.hmp-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hmp-status-pill--active {
    background: #daf2e5;
    color: #14613f;
}

.hmp-status-pill--pending {
    background: var(--hmp-gold-100);
    color: #79530b;
}

.hmp-pending-payment {
    border-color: #ebd39b;
    background: #fffaf0;
}

.hmp-pending-payment__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.hmp-pending-payment__actions form {
    margin: 0;
}

.hmp-pending-note {
    max-width: 230px;
    color: #745b24;
    font-size: 13px;
}

.hmp-membership-section-heading {
    margin: 34px 0 18px;
}

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

.hmp-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 25px;
    overflow: hidden;
    border: 1px solid var(--hmp-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(7, 71, 69, 0.07);
}

.hmp-plan-card--featured {
    border-color: #caa344;
    box-shadow: 0 18px 42px rgba(151, 111, 17, 0.13);
}

.hmp-plan-ribbon {
    position: absolute;
    top: 16px;
    right: -37px;
    width: 140px;
    padding: 6px 0;
    transform: rotate(38deg);
    background: var(--hmp-gold-500);
    color: #2d260f;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.hmp-plan-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hmp-plan-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--hmp-teal-100);
    font-size: 22px;
}

.hmp-plan-label {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f3f7f6;
    color: var(--hmp-teal-800);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hmp-plan-price {
    margin: 22px 0 5px;
    color: var(--hmp-teal-900);
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 900;
    letter-spacing: -.03em;
}

.hmp-plan-price small {
    color: var(--hmp-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.hmp-plan-formula {
    min-height: 45px;
    font-size: 13px;
}

.hmp-plan-features {
    display: grid;
    gap: 9px;
    margin: 20px 0 24px;
    padding: 0;
    list-style: none;
    color: var(--hmp-muted);
    font-size: 14px;
}

.hmp-plan-features li {
    position: relative;
    padding-inline-start: 22px;
}

.hmp-plan-features li::before {
    position: absolute;
    inset-inline-start: 0;
    content: "✓";
    color: var(--hmp-teal-700);
    font-weight: 900;
}

.hmp-membership-form {
    margin-top: auto;
}

.hmp-plan-card__field,
.hmp-plan-fields {
    margin: 0 0 16px;
}

.hmp-button--block {
    width: 100%;
    justify-content: center;
}

.hmp-button--text {
    padding-inline: 6px;
    border-color: transparent;
    background: transparent;
    color: var(--hmp-teal-700);
    box-shadow: none;
}

.hmp-button--text:hover {
    background: var(--hmp-teal-100);
}

.hmp-membership-security-note {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 17px 19px;
    border: 1px solid var(--hmp-line);
    border-radius: 13px;
    background: var(--hmp-bg);
}

.hmp-membership-security-note > span {
    font-size: 25px;
}

@media (max-width: 980px) {
    .hmp-plan-grid {
        grid-template-columns: 1fr;
    }

    .hmp-plan-card {
        max-width: 680px;
        width: 100%;
        margin-inline: auto;
    }
}

html.hmp-portal-menu-open,
html.hmp-portal-menu-open body {
    overflow: hidden;
    overscroll-behavior: none;
}

@media (max-width: 680px) {
    .hmp-membership-current,
    .hmp-pending-payment {
        align-items: flex-start;
        flex-direction: column;
    }

    .hmp-pending-payment__actions {
        align-items: stretch;
        width: 100%;
        flex-direction: column;
    }

    .hmp-pending-payment__actions .hmp-button,
    .hmp-pending-payment__actions form,
    .hmp-pending-payment__actions form button {
        width: 100%;
    }

    .hmp-plan-card {
        padding: 22px;
    }
}

/* --------------------------------------------------------------------------
 * Phase 4: complete frontend member portal
 * -------------------------------------------------------------------------- */
.hmp-portal,
.hmp-portal * {
    box-sizing: border-box;
}

.hmp-portal {
    position: relative;
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    width: min(100%, 1480px);
    min-height: 760px;
    margin: 24px auto;
    overflow: hidden;
    border: 1px solid var(--hmp-line);
    border-radius: 22px;
    background: var(--hmp-bg);
    box-shadow: 0 26px 70px rgba(0, 60, 58, .13);
    color: var(--hmp-ink);
    font-family: inherit;
}

.hmp-portal svg {
    display: block;
    width: 21px;
    height: 21px;
}

.hmp-portal__sidebar {
    position: relative;
    z-index: 12;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px 18px 20px;
    background:
        radial-gradient(circle at 20% 4%, rgba(255,255,255,.08), transparent 28%),
        linear-gradient(180deg, #004d49 0%, #003b39 100%);
    color: #fff;
}

.hmp-portal__drawer-header {
    display: block;
}

.hmp-portal__close-button {
    display: none;
}

.hmp-portal__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 28px;
    border-bottom: 1px solid rgba(255,255,255,.13);
}

.hmp-portal__brand-mark {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 13px;
    background: rgba(255,255,255,.1);
    color: #f0cf79;
    font-size: 25px;
    font-weight: 900;
}

.hmp-portal__brand strong,
.hmp-portal__brand small {
    display: block;
}

.hmp-portal__brand strong {
    color: #fff;
    font-size: 18px;
    line-height: 1.05;
}

.hmp-portal__brand small {
    margin-top: 4px;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hmp-portal__nav {
    display: grid;
    gap: 6px;
    margin-top: 24px;
}

.hmp-portal__nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 47px;
    padding: 10px 13px;
    border-radius: 11px;
    color: rgba(255,255,255,.76);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.hmp-portal__nav-link:hover,
.hmp-portal__nav-link:focus-visible,
.hmp-portal__nav-link.is-active {
    background: rgba(255,255,255,.12);
    color: #fff;
    transform: translateX(2px);
}

.hmp-portal__nav-link.is-active {
    box-shadow: inset 3px 0 0 var(--hmp-gold-500);
}

.hmp-portal__nav-icon {
    display: grid;
    place-items: center;
    width: 24px;
    color: #a9d6d0;
}

.hmp-portal__nav-link.is-active .hmp-portal__nav-icon {
    color: #f0cf79;
}

.hmp-portal__sidebar-bottom {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
}

.hmp-portal__support {
    display: flex;
    gap: 11px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    background: rgba(255,255,255,.07);
}

.hmp-portal__support-icon {
    color: #f0cf79;
}

.hmp-portal__support strong,
.hmp-portal__support small,
.hmp-portal__support a {
    display: block;
}

.hmp-portal__support strong {
    margin-bottom: 4px;
    color: #fff;
    font-size: 13px;
}

.hmp-portal__support small,
.hmp-portal__support a {
    color: rgba(255,255,255,.69);
    font-size: 11px;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.hmp-portal__logout {
    border-top: 1px solid rgba(255,255,255,.1);
    border-radius: 0;
}

.hmp-portal__main {
    min-width: 0;
    padding: 30px clamp(22px, 3.4vw, 46px) 46px;
}

.hmp-portal__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 28px;
}

.hmp-portal__eyebrow {
    margin: 0 0 5px !important;
    color: var(--hmp-teal-700) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hmp-portal__topbar h1 {
    margin: 0;
    color: var(--hmp-ink);
    font-size: clamp(28px, 3.3vw, 42px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.hmp-portal__topbar > div > p:last-child {
    margin: 8px 0 0;
    color: var(--hmp-muted);
    font-size: 14px;
}

.hmp-portal__identity {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px 10px 7px 7px;
    border: 1px solid var(--hmp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--hmp-ink);
    text-decoration: none !important;
}

.hmp-portal__identity strong,
.hmp-portal__identity small {
    display: block;
}

.hmp-portal__identity strong {
    max-width: 180px;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hmp-portal__identity small {
    margin-top: 2px;
    color: var(--hmp-muted);
    font-size: 10px;
}

.hmp-portal__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--hmp-teal-700), var(--hmp-teal-950));
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.hmp-portal__avatar--large {
    width: 76px;
    height: 76px;
    margin-inline: auto;
    font-size: 24px;
}

.hmp-portal__menu-button {
    display: none;
}

.hmp-portal-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
    padding: 24px 27px;
    overflow: hidden;
    border-radius: 17px;
    background:
        radial-gradient(circle at 85% 5%, rgba(215,173,79,.28), transparent 25%),
        linear-gradient(135deg, #005853 0%, #004440 100%);
    color: #fff;
}

.hmp-portal-welcome p,
.hmp-portal-welcome h2,
.hmp-portal-welcome span {
    margin: 0;
    color: inherit;
}

.hmp-portal-welcome p {
    color: #b9d9d5;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hmp-portal-welcome h2 {
    margin-top: 3px;
    font-size: clamp(24px, 3vw, 34px);
}

.hmp-portal-welcome span {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
}

.hmp-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.hmp-stat-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hmp-stat-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
    padding: 19px;
    border: 1px solid var(--hmp-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(7,71,69,.045);
}

.hmp-stat-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    border-radius: 11px;
    background: var(--hmp-teal-100);
    color: var(--hmp-teal-700);
}

.hmp-stat-card small,
.hmp-stat-card strong,
.hmp-stat-card p {
    display: block;
    margin: 0;
}

.hmp-stat-card small {
    color: var(--hmp-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.hmp-stat-card strong {
    margin-top: 5px;
    color: var(--hmp-ink);
    font-size: 19px;
    line-height: 1.2;
}

.hmp-stat-card strong .woocommerce-Price-amount {
    font: inherit;
}

.hmp-stat-card p {
    margin-top: 5px;
    color: var(--hmp-muted);
    font-size: 11px;
    line-height: 1.45;
}

.hmp-stat-grid--muted .hmp-stat-card {
    display: block;
    text-align: center;
}

.hmp-stat-grid--muted .hmp-stat-card strong {
    font-size: 30px;
}

.hmp-dashboard-grid,
.hmp-section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr);
    gap: 20px;
    margin-bottom: 20px;
}

.hmp-dashboard-grid--activity {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
}

.hmp-section-grid--membership {
    align-items: start;
}

.hmp-section-grid--profile {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
}

.hmp-portal-panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--hmp-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 27px rgba(7,71,69,.045);
}

.hmp-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.hmp-panel-heading small,
.hmp-panel-heading h3 {
    display: block;
    margin: 0;
}

.hmp-panel-heading small {
    color: var(--hmp-teal-700);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.hmp-panel-heading h3 {
    margin-top: 4px;
    color: var(--hmp-ink);
    font-size: 19px;
}

.hmp-panel-heading > a,
.hmp-panel-heading a {
    color: var(--hmp-teal-700);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.hmp-panel-total {
    text-align: right;
}

.hmp-panel-total strong {
    display: block;
    margin-top: 3px;
    color: var(--hmp-teal-800);
    font-size: 20px;
}

.hmp-digital-card {
    position: relative;
    min-height: 250px;
    padding: 25px;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 15%, rgba(226,187,89,.35), transparent 22%),
        linear-gradient(145deg, #005b56, #003b38 78%);
    color: #fff;
    box-shadow: 0 20px 35px rgba(0,59,56,.22);
}

.hmp-digital-card.is-inactive {
    filter: saturate(.6);
}

.hmp-digital-card__glow {
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(255,255,255,.03), 0 0 0 68px rgba(255,255,255,.025);
}

.hmp-digital-card__top,
.hmp-digital-card__brand,
.hmp-digital-card__meta {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.hmp-digital-card__top {
    justify-content: space-between;
    gap: 15px;
}

.hmp-digital-card__brand {
    gap: 9px;
}

.hmp-digital-card__brand > span {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 10px;
    color: #f2cf73;
    font-weight: 900;
}

.hmp-digital-card__brand strong {
    color: #fff;
    font-size: 13px;
}

.hmp-digital-card__status {
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.hmp-digital-card__name {
    position: relative;
    z-index: 2;
    margin: 38px 0 30px;
}

.hmp-digital-card__name small,
.hmp-digital-card__name strong {
    display: block;
}

.hmp-digital-card__name small,
.hmp-digital-card__meta small {
    color: rgba(255,255,255,.62);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.hmp-digital-card__name strong {
    margin-top: 5px;
    color: #fff;
    font-size: 23px;
    letter-spacing: .02em;
}

.hmp-digital-card__meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hmp-digital-card__meta strong {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #fff;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hmp-empty-state,
.hmp-placeholder-hero,
.hmp-donation-preview {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: 245px;
    padding: 28px;
    border: 1px dashed #b9cecb;
    border-radius: 14px;
    background: #f8fbfa;
    text-align: center;
}

.hmp-empty-state--compact {
    min-height: 170px;
    padding: 20px;
}

.hmp-empty-state > span,
.hmp-placeholder-hero > span,
.hmp-donation-preview > span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 13px;
    border-radius: 15px;
    background: var(--hmp-teal-100);
    color: var(--hmp-teal-700);
}

.hmp-empty-state strong,
.hmp-placeholder-hero h2,
.hmp-donation-preview strong {
    color: var(--hmp-ink);
}

.hmp-empty-state p,
.hmp-placeholder-hero > p,
.hmp-donation-preview p,
.hmp-empty-copy {
    max-width: 560px;
    margin: 7px auto 0;
    color: var(--hmp-muted);
    font-size: 13px;
    line-height: 1.65;
}

.hmp-placeholder-hero {
    min-height: 380px;
    margin-bottom: 20px;
    border-style: solid;
    background: linear-gradient(145deg, #fff, #f2f8f6);
}

.hmp-placeholder-hero h2 {
    margin: 2px 0 0;
    font-size: clamp(26px, 4vw, 38px);
}

.hmp-placeholder-hero > p:not(.hmp-portal__eyebrow) {
    margin-top: 14px;
}

.hmp-placeholder-hero > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.hmp-profile-progress {
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid var(--hmp-line);
}

.hmp-profile-progress > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--hmp-muted);
    font-size: 12px;
}

.hmp-profile-progress progress {
    display: block;
    width: 100%;
    height: 7px;
    margin: 9px 0;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #dfecea;
}

.hmp-profile-progress progress::-webkit-progress-bar { background: #dfecea; }
.hmp-profile-progress progress::-webkit-progress-value { background: var(--hmp-teal-700); }
.hmp-profile-progress progress::-moz-progress-bar { background: var(--hmp-teal-700); }

.hmp-profile-progress a {
    color: var(--hmp-teal-700);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.hmp-activity-list {
    display: grid;
}

.hmp-activity-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--hmp-line);
}

.hmp-activity-item:last-child { border-bottom: 0; }
.hmp-activity-item > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--hmp-teal-100);
    color: var(--hmp-teal-700);
}
.hmp-activity-item strong { display: block; font-size: 13px; }
.hmp-activity-item p { margin: 3px 0 0; color: var(--hmp-muted); font-size: 11px; }
.hmp-activity-item time { color: #82918f; font-size: 10px; white-space: nowrap; }

.hmp-donation-preview { min-height: 250px; }
.hmp-donation-preview .hmp-button { margin-top: 15px; }

.hmp-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--hmp-line);
}

.hmp-detail-grid > div {
    padding: 15px 7px;
    border-bottom: 1px solid var(--hmp-line);
}

.hmp-detail-grid dt { color: var(--hmp-muted); font-size: 11px; }
.hmp-detail-grid dd { margin: 5px 0 0; color: var(--hmp-ink); font-size: 14px; font-weight: 800; }

.hmp-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hmp-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px 20px;
    border: 1px solid #c9ddd9;
    border-radius: 14px;
    background: var(--hmp-teal-100);
}

.hmp-info-banner > span {
    color: var(--hmp-teal-700);
}

.hmp-info-banner strong { display: block; font-size: 13px; }
.hmp-info-banner p { margin: 4px 0 0; color: var(--hmp-muted); font-size: 12px; line-height: 1.55; }

.hmp-status-pill--inactive,
.hmp-status-pill--cancelled,
.hmp-status-pill--expired {
    background: #f4eded;
    color: #8e3f3f;
}
.hmp-status-pill--pending_payment { background: var(--hmp-gold-100); color: #76520c; }
.hmp-status-pill--active { background: var(--hmp-success-bg); color: var(--hmp-success); }

.hmp-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hmp-payment-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 12px;
}

.hmp-payment-table th {
    padding: 12px 13px;
    border-bottom: 1px solid var(--hmp-line);
    color: var(--hmp-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
}

.hmp-payment-table td {
    padding: 15px 13px;
    border-bottom: 1px solid var(--hmp-line);
    color: var(--hmp-ink);
    vertical-align: middle;
}

.hmp-payment-table tr:last-child td { border-bottom: 0; }
.hmp-payment-table td strong,
.hmp-payment-table td small { display: block; }
.hmp-payment-table td small { margin-top: 3px; color: var(--hmp-muted); }

.hmp-order-status {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef4f3;
    color: var(--hmp-muted);
    font-size: 10px;
    font-weight: 800;
}
.hmp-order-status--completed,
.hmp-order-status--processing { background: var(--hmp-success-bg); color: var(--hmp-success); }
.hmp-order-status--pending,
.hmp-order-status--on-hold { background: var(--hmp-gold-100); color: #76520c; }
.hmp-order-status--failed,
.hmp-order-status--cancelled,
.hmp-order-status--refunded { background: var(--hmp-danger-bg); color: var(--hmp-danger); }
.hmp-table-action { color: var(--hmp-teal-700); font-weight: 800; text-decoration: none; white-space: nowrap; }
.hmp-table-dash { color: #a5b0ae; }

.hmp-profile-form--portal { margin-top: 0; }
.hmp-profile-score {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--hmp-teal-100);
    color: var(--hmp-teal-800);
    font-size: 13px;
    font-weight: 900;
}

.hmp-profile-aside {
    position: sticky;
    top: 24px;
    text-align: center;
}
.hmp-profile-aside h3 { margin: 14px 0 0; font-size: 18px; }
.hmp-profile-aside > p { margin: 4px 0 0; color: var(--hmp-muted); font-size: 11px; }
.hmp-mini-details { margin: 18px 0 0; text-align: left; }
.hmp-mini-details > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hmp-line); }
.hmp-mini-details dt { color: var(--hmp-muted); font-size: 11px; }
.hmp-mini-details dd { margin: 0; font-size: 11px; font-weight: 800; text-align: right; }

.hmp-family-layout {
    display: grid;
    grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr);
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.hmp-family-form,
.hmp-family-item form { margin: 0; }
.hmp-field textarea {
    display: block;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #b8cac7;
    border-radius: 10px;
    background: #fff;
    color: var(--hmp-ink);
    font: inherit;
    resize: vertical;
}

.hmp-check-field {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--hmp-ink);
    font-size: 12px;
    font-weight: 700;
}
.hmp-check-field input { width: 17px; height: 17px; accent-color: var(--hmp-teal-700); }

.hmp-family-list { display: grid; gap: 10px; }
.hmp-family-item {
    border: 1px solid var(--hmp-line);
    border-radius: 12px;
    background: #fbfdfc;
}
.hmp-family-item summary {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    cursor: pointer;
    list-style: none;
}
.hmp-family-item summary::-webkit-details-marker { display: none; }
.hmp-family-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--hmp-teal-100);
    color: var(--hmp-teal-700);
    font-weight: 900;
}
.hmp-family-item summary strong,
.hmp-family-item summary small { display: block; }
.hmp-family-item summary strong { font-size: 13px; }
.hmp-family-item summary small { margin-top: 3px; color: var(--hmp-muted); font-size: 10px; }
.hmp-family-edit { color: var(--hmp-teal-700); font-size: 11px; font-weight: 800; }
.hmp-family-item__edit { padding: 16px; border-top: 1px solid var(--hmp-line); background: #fff; }
.hmp-family-item__actions { display: flex; align-items: center; gap: 9px; margin-top: 15px; }
.hmp-button--danger { border-color: #e1b6b6; background: #fff4f4; color: var(--hmp-danger); }
.hmp-button--danger:hover { background: #ffeaea; }

.hmp-portal .hmp-notice {
    margin-bottom: 20px;
}

@media (max-width: 1180px) {
    .hmp-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hmp-dashboard-grid,
    .hmp-dashboard-grid--activity,
    .hmp-section-grid--membership { grid-template-columns: 1fr; }
    .hmp-digital-card { max-width: 720px; }
}

@media (max-width: 900px) {
    .hmp-portal {
        display: block;
        margin: 14px auto;
        border-radius: 16px;
    }

    .hmp-portal__menu-button {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 14px 14px 0;
        padding: 10px 13px;
        border: 0;
        border-radius: 10px;
        background: var(--hmp-teal-900);
        color: #fff;
        font: inherit;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
    }

    .hmp-portal.is-menu-open > .hmp-portal__menu-button {
        visibility: hidden;
        pointer-events: none;
    }

    .hmp-portal__sidebar {
        position: fixed;
        top: var(--hmp-mobile-drawer-top, 0px);
        right: auto;
        bottom: 0;
        left: 0;
        z-index: 100001;
        width: min(84vw, 285px);
        min-height: 0;
        height: calc(100vh - var(--hmp-mobile-drawer-top, 0px));
        height: calc(100dvh - var(--hmp-mobile-drawer-top, 0px));
        transform: translateX(-105%);
        transition: transform .22s ease;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .hmp-portal__drawer-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(255,255,255,.13);
    }

    .hmp-portal__brand {
        min-width: 0;
        padding: 0 0 0 10px;
        border-bottom: 0;
    }

    .hmp-portal__close-button {
        display: grid;
        place-items: center;
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid rgba(255,255,255,.22);
        border-radius: 11px;
        background: rgba(255,255,255,.08);
        color: #fff;
        cursor: pointer;
    }

    .hmp-portal__close-button:hover,
    .hmp-portal__close-button:focus-visible {
        background: rgba(255,255,255,.16);
    }

    .hmp-portal.is-menu-open .hmp-portal__sidebar { transform: translateX(0); }
    .hmp-portal__overlay {
        position: fixed;
        top: var(--hmp-mobile-drawer-top, 0px);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100000;
        background: rgba(1,31,30,.58);
        overscroll-behavior: contain;
    }
    .hmp-portal.is-menu-open .hmp-portal__overlay { display: block; }
    .hmp-portal__main { padding: 22px 18px 34px; }
    .hmp-section-grid--profile,
    .hmp-family-layout { grid-template-columns: 1fr; }
    .hmp-profile-aside { position: static; }
}

@media (max-width: 680px) {
    .hmp-portal__topbar { align-items: flex-start; flex-direction: column; }
    .hmp-portal__identity { width: 100%; border-radius: 13px; }
    .hmp-portal-welcome { align-items: flex-start; flex-direction: column; }
    .hmp-portal-welcome .hmp-button { width: 100%; justify-content: center; }
    .hmp-stat-grid,
    .hmp-stat-grid--three { grid-template-columns: 1fr; }
    .hmp-stat-card { padding: 16px; }
    .hmp-portal-panel { padding: 18px; }
    .hmp-digital-card { min-height: 310px; padding: 21px; }
    .hmp-digital-card__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hmp-activity-item { grid-template-columns: 36px minmax(0, 1fr); }
    .hmp-activity-item time { grid-column: 2; }
    .hmp-detail-grid { grid-template-columns: 1fr; }
    .hmp-form-grid--2 { grid-template-columns: 1fr; }
    .hmp-field--full { grid-column: auto; }
    .hmp-placeholder-hero { padding: 24px 18px; }
    .hmp-placeholder-hero > div { width: 100%; }
    .hmp-placeholder-hero .hmp-button { width: 100%; justify-content: center; }
    .hmp-family-item summary { grid-template-columns: 38px minmax(0, 1fr); }
    .hmp-family-edit { grid-column: 2; }
    .hmp-family-item__actions { align-items: stretch; flex-direction: column; }
    .hmp-family-item__actions .hmp-button,
    .hmp-family-item__actions form { width: 100%; }
}
.hmp-family-delete-form {
    margin-top: 10px !important;
    padding-top: 10px;
    border-top: 1px solid var(--hmp-line);
}

/* Phase 5: Hedayat Donations integration */
.hmp-info-banner--warning {
    margin-bottom: 20px;
    border-color: #ead6a6;
    background: #fff9eb;
}

.hmp-info-banner--warning > span {
    color: #8a650e;
}

.hmp-money-separator {
    color: #99aaa7;
    font-size: .72em;
}

.hmp-donation-stat-grid {
    margin-top: 20px;
}

.hmp-donation-categories {
    margin-bottom: 20px;
}

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

.hmp-category-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px 12px;
    padding: 15px;
    border: 1px solid var(--hmp-line);
    border-radius: 13px;
    background: #fbfdfc;
}

.hmp-category-card > span {
    display: grid;
    place-items: center;
    grid-row: 1 / span 2;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--hmp-teal-100);
    color: var(--hmp-teal-700);
}

.hmp-category-card strong,
.hmp-category-card small,
.hmp-category-card b {
    display: block;
}

.hmp-category-card strong {
    color: var(--hmp-ink);
    font-size: 13px;
}

.hmp-category-card small {
    margin-top: 3px;
    color: var(--hmp-muted);
    font-size: 10px;
}

.hmp-category-card b {
    grid-column: 2;
    color: var(--hmp-teal-800);
    font-size: 14px;
}

.hmp-panel-actions--heading {
    margin-top: 0;
}

.hmp-donation-table {
    min-width: 1050px;
}

.hmp-order-status--partially-refunded {
    background: #f3eefb;
    color: #654397;
}

.hmp-donation-receipt {
    margin-bottom: 20px;
    border-color: #b8d3ce;
    box-shadow: 0 14px 36px rgba(7,71,69,.08);
}

.hmp-receipt-head {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f4faf8, #fbfdfc);
}

.hmp-receipt-head > span:first-child {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--hmp-teal-100);
    color: var(--hmp-teal-700);
}

.hmp-receipt-head strong,
.hmp-receipt-head p {
    display: block;
    margin: 0;
}

.hmp-receipt-head strong {
    color: var(--hmp-ink);
    font-size: 17px;
}

.hmp-receipt-head p {
    margin-top: 4px;
    color: var(--hmp-muted);
    font-size: 11px;
}

.hmp-detail-grid--receipt {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hmp-receipt-note {
    margin: 17px 0 0;
    color: var(--hmp-muted);
    font-size: 11px;
    line-height: 1.6;
}

.hmp-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--hmp-line);
}

.hmp-pagination a,
.hmp-pagination span,
.hmp-pagination strong {
    font-size: 11px;
}

.hmp-pagination a,
.hmp-pagination span {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 8px 12px;
    border: 1px solid var(--hmp-line);
    border-radius: 9px;
    text-decoration: none;
}

.hmp-pagination a {
    color: var(--hmp-teal-700);
    font-weight: 800;
}

.hmp-pagination span {
    color: #a3afad;
    background: #f7f9f8;
}

.hmp-pagination strong {
    color: var(--hmp-muted);
    text-align: center;
}

.hmp-pagination > :last-child {
    justify-self: end;
}

.hmp-donation-preview--data {
    min-height: 250px;
}

.hmp-donation-preview--data > strong {
    font-size: 28px;
}

.hmp-donation-preview--data > small {
    display: block;
    margin-top: 8px;
    color: var(--hmp-muted);
    font-size: 10px;
    line-height: 1.5;
}

.hmp-preview-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.hmp-preview-actions .hmp-button {
    margin-top: 0;
}

@media (max-width: 1180px) {
    .hmp-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 620px) {
    .hmp-category-grid,
    .hmp-detail-grid--receipt {
        grid-template-columns: 1fr;
    }

    .hmp-receipt-head {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .hmp-receipt-head > span:first-child {
        width: 44px;
        height: 44px;
    }

    .hmp-receipt-head .hmp-order-status {
        grid-column: 1 / -1;
        width: max-content;
    }

    .hmp-pagination {
        grid-template-columns: 1fr 1fr;
    }

    .hmp-pagination strong {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

/* Phase 6: Modern Events Calendar integration */
.hmp-events-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: 24px 26px;
    border: 1px solid #c9ded9;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0f8f6 0%, #fbfdfc 62%, #fff8e8 100%);
    box-shadow: 0 12px 34px rgba(7, 71, 69, .06);
}

.hmp-events-hero p,
.hmp-events-hero h2,
.hmp-events-hero span {
    margin: 0;
}

.hmp-events-hero p {
    color: var(--hmp-gold-700, #96700e);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.hmp-events-hero h2 {
    margin-top: 5px;
    color: var(--hmp-ink);
    font-size: clamp(20px, 2.4vw, 28px);
}

.hmp-events-hero span {
    display: block;
    margin-top: 6px;
    color: var(--hmp-muted);
    font-size: 12px;
}

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

.hmp-event-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--hmp-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(7, 71, 69, .055);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.hmp-event-card:hover {
    transform: translateY(-3px);
    border-color: #b8d3ce;
    box-shadow: 0 17px 38px rgba(7, 71, 69, .105);
}

.hmp-event-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(145deg, var(--hmp-teal-100), #e8f0ed);
}

.hmp-event-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.hmp-event-card:hover .hmp-event-card__media img {
    transform: scale(1.035);
}

.hmp-event-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--hmp-teal-700);
}

.hmp-event-card__placeholder svg {
    width: 42px;
    height: 42px;
    opacity: .55;
}

.hmp-event-card__date {
    position: absolute;
    inset: 14px auto auto 14px;
    display: grid;
    place-items: center;
    min-width: 54px;
    padding: 8px 9px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 13px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 7px 20px rgba(0, 0, 0, .12);
    color: var(--hmp-teal-900, #073f3d);
    line-height: 1;
    backdrop-filter: blur(8px);
}

.hmp-event-card__date b {
    font-size: 22px;
}

.hmp-event-card__date small {
    margin-top: 4px;
    color: var(--hmp-muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hmp-event-card__body {
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 18px;
}

.hmp-event-card__state {
    align-self: flex-start;
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf6f3;
    color: var(--hmp-teal-700);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.hmp-event-card__state.is-live {
    background: #fff0ee;
    color: #b33a2f;
}

.hmp-event-card__body h3 {
    margin: 11px 0 13px;
    color: var(--hmp-ink);
    font-size: 17px;
    line-height: 1.35;
}

.hmp-event-card__body h3 a {
    color: inherit;
    text-decoration: none;
}

.hmp-event-card__meta {
    display: grid;
    gap: 10px;
}

.hmp-event-card__meta p {
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    margin: 0;
}

.hmp-event-card__meta p > span:first-child {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    background: var(--hmp-teal-100);
    color: var(--hmp-teal-700);
}

.hmp-event-card__meta svg {
    width: 14px;
    height: 14px;
}

.hmp-event-card__meta strong,
.hmp-event-card__meta small {
    display: block;
}

.hmp-event-card__meta strong {
    color: var(--hmp-ink);
    font-size: 11px;
    line-height: 1.45;
}

.hmp-event-card__meta small {
    margin-top: 2px;
    color: var(--hmp-muted);
    font-size: 9px;
    line-height: 1.45;
}

.hmp-event-card__excerpt {
    margin: 14px 0 0;
    color: var(--hmp-muted);
    font-size: 10px;
    line-height: 1.7;
}

.hmp-event-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    margin-top: auto;
    padding-top: 17px;
    color: var(--hmp-teal-700);
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.hmp-event-card__link svg {
    width: 14px;
    height: 14px;
    transition: transform .2s ease;
}

.hmp-event-card__link:hover svg {
    transform: translateX(3px);
}

.hmp-dashboard-events {
    display: grid;
    gap: 9px;
    margin-bottom: 18px;
}

.hmp-dashboard-event {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border: 1px solid var(--hmp-line);
    border-radius: 13px;
    background: #fbfdfc;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.hmp-dashboard-event:hover {
    transform: translateX(2px);
    border-color: #b9d4ce;
    background: #f4faf8;
}

.hmp-dashboard-event.is-featured {
    border-color: #bfd8d2;
    background: linear-gradient(135deg, #f1f8f6, #fffdf7);
}

.hmp-dashboard-event__date {
    display: grid;
    place-items: center;
    width: 48px;
    min-height: 49px;
    border-radius: 11px;
    background: var(--hmp-teal-700);
    color: #fff;
    line-height: 1;
}

.hmp-dashboard-event__date b {
    font-size: 18px;
}

.hmp-dashboard-event__date small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .78);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hmp-dashboard-event__content {
    min-width: 0;
}

.hmp-dashboard-event__content small,
.hmp-dashboard-event__content strong,
.hmp-dashboard-event__content span {
    display: block;
}

.hmp-dashboard-event__content > small {
    color: var(--hmp-gold-700, #8a650e);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hmp-dashboard-event__content strong {
    overflow: hidden;
    margin-top: 3px;
    color: var(--hmp-ink);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hmp-dashboard-event__content > span {
    overflow: hidden;
    margin-top: 3px;
    color: var(--hmp-muted);
    font-size: 9px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hmp-dashboard-event__arrow {
    color: var(--hmp-teal-600, #19746e);
}

.hmp-dashboard-event__arrow svg {
    width: 15px;
    height: 15px;
}

.hmp-dashboard-events__count {
    margin: 0;
    color: var(--hmp-muted);
    font-size: 9px;
    text-align: right;
}

@media (max-width: 1180px) {
    .hmp-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .hmp-events-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .hmp-event-grid {
        grid-template-columns: 1fr;
    }

    .hmp-event-card__body {
        min-height: 0;
    }
}

@media (max-width: 420px) {
    .hmp-dashboard-event {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .hmp-dashboard-event__date {
        width: 44px;
        min-height: 46px;
    }

    .hmp-dashboard-event__arrow {
        display: none;
    }
}

/* Phase 8: portal notifications */
.hmp-portal__top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hmp-notification-menu {
    position: relative;
    z-index: 20;
}

.hmp-notification-menu > summary {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--hmp-line);
    border-radius: 13px;
    background: #fff;
    color: var(--hmp-teal-700);
    cursor: pointer;
    list-style: none;
    box-shadow: 0 5px 18px rgba(18, 64, 59, .06);
}

.hmp-notification-menu > summary::-webkit-details-marker {
    display: none;
}

.hmp-notification-menu > summary svg {
    width: 20px;
    height: 20px;
}

.hmp-notification-menu > summary > span {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #d83b3b;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

.hmp-notification-menu[open] > summary {
    border-color: #b8d2cc;
    background: var(--hmp-teal-100);
}

.hmp-notification-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(390px, calc(100vw - 34px));
    overflow: hidden;
    border: 1px solid var(--hmp-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 52px rgba(11, 52, 48, .18);
}

.hmp-notification-menu__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--hmp-line);
    background: #f8fbfa;
}

.hmp-notification-menu__heading strong,
.hmp-notification-menu__heading small {
    display: block;
}

.hmp-notification-menu__heading strong {
    color: var(--hmp-ink);
    font-size: 13px;
}

.hmp-notification-menu__heading small {
    margin-top: 2px;
    color: var(--hmp-muted);
    font-size: 9px;
}

.hmp-notification-menu__heading form,
.hmp-notification-item__actions form {
    margin: 0;
}

.hmp-notification-menu__heading button,
.hmp-notification-item__actions button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hmp-teal-700);
    font: inherit;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.hmp-notification-menu__list {
    max-height: min(460px, 67vh);
    overflow: auto;
}

.hmp-notification-item {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr);
    gap: 10px;
    padding: 15px 17px;
    border-bottom: 1px solid #edf2f1;
}

.hmp-notification-item:last-child {
    border-bottom: 0;
}

.hmp-notification-item.is-unread {
    background: #f4faf8;
}

.hmp-notification-item__dot {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 999px;
    background: #cbd7d5;
}

.hmp-notification-item.is-unread .hmp-notification-item__dot {
    background: var(--hmp-gold-500, #d7a92d);
    box-shadow: 0 0 0 4px rgba(215, 169, 45, .13);
}

.hmp-notification-item strong,
.hmp-notification-item p,
.hmp-notification-item small {
    display: block;
}

.hmp-notification-item strong {
    color: var(--hmp-ink);
    font-size: 11px;
    line-height: 1.4;
}

.hmp-notification-item p {
    margin: 4px 0 5px;
    color: var(--hmp-muted);
    font-size: 9px;
    line-height: 1.6;
}

.hmp-notification-item small {
    color: #8a9a97;
    font-size: 8px;
}

.hmp-notification-item__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.hmp-notification-item__actions a {
    color: var(--hmp-teal-700);
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
}

.hmp-notification-empty {
    display: grid;
    justify-items: center;
    padding: 30px 20px;
    color: var(--hmp-muted);
    text-align: center;
}

.hmp-notification-empty svg {
    width: 26px;
    height: 26px;
    margin-bottom: 9px;
    color: var(--hmp-teal-600, #19746e);
}

.hmp-notification-empty strong {
    color: var(--hmp-ink);
    font-size: 12px;
}

.hmp-notification-empty p {
    max-width: 250px;
    margin: 6px 0 0;
    font-size: 9px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .hmp-portal__topbar {
        align-items: flex-start;
    }

    .hmp-portal__top-actions {
        gap: 7px;
    }

    .hmp-portal__identity > span:last-child {
        display: none;
    }

    .hmp-notification-menu__panel {
        position: fixed;
        top: calc(var(--hmp-mobile-drawer-top, 0px) + 72px);
        right: 14px;
        left: 14px;
        width: auto;
        max-height: calc(100dvh - var(--hmp-mobile-drawer-top, 0px) - 92px);
    }
}

@media (max-width: 760px) {
    .hmp-portal__top-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .hmp-portal__top-actions .hmp-portal__identity {
        width: auto;
        min-width: 52px;
        justify-content: center;
        padding-right: 7px;
    }
}

/* Phase 9: digital membership card, profile photo, and public verification */
.hmp-member-avatar {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--hmp-teal-600, #19746e), var(--hmp-teal-900, #063f3b));
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.hmp-member-avatar img,
.hmp-member-avatar.has-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hmp-photo-field {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid var(--hmp-line, #dfe8e7);
    border-radius: 18px;
    background: #f8fbfa;
}

.hmp-photo-field__preview {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 22px;
    background: #dce9e7;
    box-shadow: 0 9px 24px rgba(9, 71, 66, .12);
    color: var(--hmp-teal-800, #07534e);
    font-size: 26px;
    font-weight: 900;
}

.hmp-photo-field__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hmp-photo-field__controls {
    display: grid;
    gap: 8px;
}

.hmp-photo-field__controls > span {
    color: var(--hmp-ink, #1c2c2a);
    font-size: 13px;
    font-weight: 900;
}

.hmp-photo-field__controls input[type="file"] {
    max-width: 100%;
    padding: 10px;
    border: 1px dashed #a8bfbc;
    border-radius: 12px;
    background: #fff;
}

.hmp-photo-field__controls small,
.hmp-photo-field__remove {
    color: var(--hmp-muted, #687b78);
    font-size: 11px;
    line-height: 1.6;
}

.hmp-photo-field__remove {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
}

.hmp-membership-card-wrap {
    width: 100%;
    max-width: 760px;
}

.hmp-membership-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 430px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 28px;
    background: linear-gradient(135deg, var(--hmp-card-primary, #00645f) 0%, #064b47 55%, #062f2d 100%);
    box-shadow: 0 28px 70px rgba(2, 55, 51, .24);
    color: #fff;
}

.hmp-membership-card--expired,
.hmp-membership-card--cancelled,
.hmp-membership-card--none {
    --hmp-card-primary: #596563 !important;
    filter: saturate(.72);
}

.hmp-membership-card--pending_payment {
    --hmp-card-primary: #8c6b1d !important;
}

.hmp-membership-card__pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .26;
    background:
        radial-gradient(circle at 90% 15%, rgba(226, 182, 91, .45), transparent 28%),
        repeating-linear-gradient(128deg, transparent 0 36px, rgba(255, 255, 255, .045) 36px 38px);
}

.hmp-membership-card__header,
.hmp-membership-card__body,
.hmp-membership-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hmp-membership-card__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hmp-membership-card__brand > img,
.hmp-membership-card__mark {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 15px;
    background: #fff;
    object-fit: contain;
}

.hmp-membership-card__mark {
    display: grid;
    place-items: center;
    color: var(--hmp-card-primary, #00645f);
    font-size: 25px;
    font-weight: 950;
}

.hmp-membership-card__brand strong,
.hmp-membership-card__brand small {
    display: block;
}

.hmp-membership-card__brand strong {
    font-size: 17px;
    letter-spacing: .01em;
}

.hmp-membership-card__brand small {
    margin-top: 3px;
    color: #e5bd69;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.hmp-membership-card__status {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.hmp-membership-card__body {
    min-height: 180px;
    margin: 34px 0 26px;
}

.hmp-membership-card__identity {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.hmp-membership-card__photo {
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, .82);
    border-radius: 24px;
    background: rgba(255, 255, 255, .13);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.hmp-membership-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hmp-membership-card__identity small {
    display: block;
    margin-bottom: 7px;
    color: #e5bd69;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hmp-membership-card__identity h3 {
    max-width: 430px;
    margin: 0;
    color: #fff;
    font-size: clamp(25px, 4vw, 38px);
    line-height: 1.08;
}

.hmp-membership-card__identity p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}

.hmp-membership-card__qr-block {
    display: grid;
    flex: 0 0 154px;
    justify-items: center;
    gap: 7px;
    padding: 12px 12px 9px;
    border-radius: 20px;
    background: #fff;
    color: #15524e;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .18);
}

.hmp-membership-card__qr,
.hmp-admin-card-preview__qr,
.hmp-admin-verify-qr {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
}

.hmp-membership-card__qr canvas,
.hmp-membership-card__qr img {
    display: block;
    width: 126px !important;
    height: 126px !important;
}

.hmp-membership-card__qr-block small {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hmp-membership-card__details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.hmp-membership-card__details div {
    min-width: 0;
}

.hmp-membership-card__details dt,
.hmp-membership-card__details dd {
    margin: 0;
}

.hmp-membership-card__details dt {
    margin-bottom: 6px;
    color: #e5bd69;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hmp-membership-card__details dd {
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hmp-membership-card__footer {
    padding-top: 18px;
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
}

.hmp-membership-card__footer a {
    color: #e9c579;
    font-weight: 900;
    text-decoration: none;
}

.hmp-membership-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hmp-membership-card-actions .hmp-button {
    min-height: 42px;
}

.hmp-card-help {
    margin: 0;
    color: var(--hmp-muted, #687b78);
    font-size: 12px;
}

.hmp-card-standalone {
    width: min(100%, 820px);
    margin: 32px auto;
    padding: 0 20px;
}

.hmp-verification-page {
    display: grid;
    min-height: 62vh;
    padding: 42px 18px;
    place-items: center;
    background: linear-gradient(180deg, #f4f9f7, #fff);
}

.hmp-verification-card {
    width: min(100%, 560px);
    padding: 30px;
    border: 1px solid #dce8e6;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(11, 75, 69, .13);
    text-align: center;
}

.hmp-verification-card__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 26px;
}

.hmp-verification-card__brand > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: #075d57;
    color: #fff;
    font-size: 21px;
    font-weight: 950;
}

.hmp-verification-card__brand strong,
.hmp-verification-card__brand small {
    display: block;
    text-align: left;
}

.hmp-verification-card__brand strong {
    color: #18312f;
    font-size: 15px;
}

.hmp-verification-card__brand small {
    margin-top: 2px;
    color: #758582;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hmp-verification-card__result-icon {
    display: grid;
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    background: #e4f4ec;
    color: #12744d;
}

.hmp-verification-card__result-icon svg {
    width: 34px;
    height: 34px;
}

.hmp-verification-page--expired .hmp-verification-card__result-icon,
.hmp-verification-page--cancelled .hmp-verification-card__result-icon,
.hmp-verification-page--invalid .hmp-verification-card__result-icon {
    background: #fdebec;
    color: #a8333d;
}

.hmp-verification-page--pending .hmp-verification-card__result-icon,
.hmp-verification-page--missing .hmp-verification-card__result-icon,
.hmp-verification-page--rate_limited .hmp-verification-card__result-icon {
    background: #fff4d8;
    color: #876418;
}

.hmp-verification-card__eyebrow {
    margin: 0 0 7px;
    color: #16746e;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hmp-verification-card h1 {
    margin: 0;
    color: #17302e;
    font-size: clamp(25px, 5vw, 36px);
}

.hmp-verification-card__message {
    max-width: 440px;
    margin: 12px auto 24px;
    color: #687b78;
    font-size: 13px;
    line-height: 1.7;
}

.hmp-verification-details {
    display: grid;
    gap: 0;
    margin: 0 0 22px;
    overflow: hidden;
    border: 1px solid #dfebe9;
    border-radius: 17px;
    text-align: left;
}

.hmp-verification-details div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 15px;
    border-bottom: 1px solid #e8f0ef;
}

.hmp-verification-details div:last-child {
    border-bottom: 0;
}

.hmp-verification-details dt,
.hmp-verification-details dd {
    margin: 0;
}

.hmp-verification-details dt {
    color: #72827f;
    font-size: 10px;
    font-weight: 800;
}

.hmp-verification-details dd {
    color: #17302e;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}

.hmp-verification-card__privacy {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 20px;
    padding: 13px;
    border-radius: 14px;
    background: #f4f8f7;
    color: #667a77;
    text-align: left;
}

.hmp-verification-card__privacy svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #16746e;
}

.hmp-verification-card__privacy p {
    margin: 0;
    font-size: 10px;
    line-height: 1.6;
}

.hmp-verification-card__timestamp {
    display: block;
    margin-top: 18px;
    color: #889693;
    font-size: 9px;
}

@media (max-width: 660px) {
    .hmp-photo-field {
        grid-template-columns: 1fr;
    }

    .hmp-membership-card {
        min-height: 0;
        padding: 20px;
        border-radius: 23px;
    }

    .hmp-membership-card__header {
        align-items: flex-start;
    }

    .hmp-membership-card__brand > img,
    .hmp-membership-card__mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .hmp-membership-card__brand strong {
        font-size: 14px;
    }

    .hmp-membership-card__status {
        padding: 7px 10px;
        font-size: 9px;
    }

    .hmp-membership-card__body {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        margin: 28px 0 22px;
    }

    .hmp-membership-card__photo {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
        border-radius: 18px;
    }

    .hmp-membership-card__identity h3 {
        font-size: 26px;
    }

    .hmp-membership-card__qr-block {
        grid-template-columns: auto 1fr;
        width: 100%;
        box-sizing: border-box;
        justify-items: start;
        align-items: center;
    }

    .hmp-membership-card__qr canvas,
    .hmp-membership-card__qr img {
        width: 96px !important;
        height: 96px !important;
    }

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

    .hmp-membership-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hmp-membership-card-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hmp-membership-card-actions .hmp-button {
        width: 100%;
        justify-content: center;
    }

    .hmp-verification-card {
        padding: 24px 18px;
        border-radius: 22px;
    }
}

@media print {
    body.hmp-printing-card * {
        visibility: hidden !important;
    }

    body.hmp-printing-card .hmp-membership-card.is-print-target,
    body.hmp-printing-card .hmp-membership-card.is-print-target * {
        visibility: visible !important;
    }

    body.hmp-printing-card .hmp-membership-card.is-print-target {
        position: fixed;
        inset: 10mm auto auto 10mm;
        width: 170mm;
        min-height: 100mm;
        box-sizing: border-box;
        box-shadow: none;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* Match the profile form's field/row markup. */
.hmp-photo-field {
    display: block;
    margin-bottom: 0;
}

.hmp-photo-field > label {
    display: block;
    margin-bottom: 10px;
}

.hmp-photo-field__row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.hmp-photo-field__row .hmp-member-avatar,
.hmp-photo-field__row .hmp-profile-photo-preview {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
    border: 3px solid #fff;
    border-radius: 22px;
    box-shadow: 0 9px 24px rgba(9, 71, 66, .12);
    font-size: 26px;
}

.hmp-photo-field__row > div {
    display: grid;
    gap: 8px;
}

.hmp-photo-field__row input[type="file"] {
    max-width: 100%;
    padding: 10px;
    border: 1px dashed #a8bfbc;
    border-radius: 12px;
    background: #fff;
}

.hmp-photo-field__row small,
.hmp-photo-field__row .hmp-checkbox-inline {
    color: var(--hmp-muted, #687b78);
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 660px) {
    .hmp-photo-field__row {
        grid-template-columns: 1fr;
    }
}

.hmp-card-help--warning {
    padding: 11px 13px;
    border: 1px solid #e9c2c4;
    border-radius: 12px;
    background: #fff6f6;
    color: #923b43;
}

/* Phase 10: event registration, tickets, and check-in */
.hmp-event-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 16px;
}

.hmp-event-register-button {
    min-height: 42px;
    padding: 10px 16px;
    white-space: nowrap;
}

.hmp-event-registration-state {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3f5f4;
    color: #52615f;
    font-size: 13px;
    font-weight: 700;
}

.hmp-event-registration-state.state-full,
.hmp-event-registration-state.state-closed,
.hmp-event-registration-state.state-past {
    background: #f7eeee;
    color: #8e3f3f;
}

.hmp-event-registration-state.state-membership_required {
    background: #fff6df;
    color: #80601d;
}

.hmp-event-registration-form-panel {
    margin-bottom: 24px;
    border: 1px solid rgba(0, 100, 95, .2);
    box-shadow: 0 20px 50px rgba(7, 49, 46, .08);
}

.hmp-event-registration-form__summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: #f1f8f7;
}

.hmp-event-registration-form__summary > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #00645f;
    color: #fff;
    flex: 0 0 auto;
}

.hmp-event-registration-form__summary svg {
    width: 22px;
    height: 22px;
}

.hmp-event-registration-form__summary strong,
.hmp-event-registration-form__summary p {
    display: block;
    margin: 0;
}

.hmp-event-registration-form fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 24px;
}

.hmp-event-registration-form legend {
    width: 100%;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 800;
    color: #183f3d;
}

.hmp-event-attendee-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    margin-bottom: 9px;
    border: 1px solid #dfe8e6;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.hmp-event-attendee-option:hover {
    border-color: #76a8a4;
    background: #f8fbfa;
}

.hmp-event-attendee-option.is-primary {
    background: #f1f8f7;
    cursor: default;
}

.hmp-event-attendee-option input {
    width: 18px;
    height: 18px;
    accent-color: #00645f;
    flex: 0 0 auto;
}

.hmp-event-attendee-option span,
.hmp-event-attendee-option strong,
.hmp-event-attendee-option small {
    display: block;
}

.hmp-event-attendee-option small {
    margin-top: 3px;
    color: #71807e;
}

.hmp-event-guest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hmp-event-guest-grid label span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #38504e;
}

.hmp-event-guest-grid input {
    width: 100%;
}

.hmp-event-registration-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid #e4ecea;
}

.hmp-event-registration-form__footer p {
    margin: 0;
    color: #687775;
}

.hmp-event-registration-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.hmp-event-registration-summary article {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 108px;
    padding: 20px;
    border: 1px solid #e1e9e7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 59, 56, .05);
}

.hmp-event-registration-summary article > span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #edf6f5;
    color: #00645f;
}

.hmp-event-registration-summary svg {
    width: 23px;
    height: 23px;
}

.hmp-event-registration-summary small,
.hmp-event-registration-summary strong {
    display: block;
}

.hmp-event-registration-summary small {
    color: #71807e;
}

.hmp-event-registration-summary strong {
    margin-top: 4px;
    font-size: 28px;
    line-height: 1;
    color: #173e3b;
}

.hmp-my-event-list {
    display: grid;
    gap: 18px;
}

.hmp-my-event-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 20px;
    padding: 20px;
    border: 1px solid #dfe8e6;
    border-radius: 20px;
    background: #fff;
}

.hmp-my-event-card.status-checked_in {
    border-color: rgba(0, 100, 95, .35);
    background: linear-gradient(135deg, #fff, #f4fbfa);
}

.hmp-my-event-card__main {
    display: flex;
    gap: 16px;
    min-width: 0;
}

.hmp-my-event-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 76px;
    border-radius: 17px;
    background: #00645f;
    color: #fff;
    flex: 0 0 auto;
}

.hmp-my-event-card__date b {
    font-size: 27px;
    line-height: 1;
}

.hmp-my-event-card__date small {
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hmp-my-event-card__content {
    min-width: 0;
}

.hmp-my-event-card__content h3 {
    margin: 8px 0 6px;
    font-size: 21px;
}

.hmp-my-event-card__content h3 a {
    color: #173e3b;
    text-decoration: none;
}

.hmp-my-event-card__content > p {
    margin: 0 0 12px;
    color: #647472;
}

.hmp-my-event-card__eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.hmp-my-event-card__eyebrow code {
    padding: 4px 7px;
    border-radius: 7px;
    background: #f1f4f3;
    color: #4f6260;
    font-size: 12px;
}

.hmp-event-attendees-inline {
    padding: 11px 13px;
    border-radius: 13px;
    background: #f6f8f8;
}

.hmp-event-attendees-inline strong,
.hmp-event-attendees-inline span {
    display: block;
}

.hmp-event-attendees-inline span {
    margin-top: 3px;
    color: #6b7978;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.hmp-event-ticket {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 14px;
    border-radius: 17px;
    background: #f2f7f6;
    text-align: center;
}

.hmp-event-ticket [data-hmp-qr] {
    width: 148px;
    min-height: 148px;
    padding: 7px;
    border-radius: 10px;
    background: #fff;
}

.hmp-event-ticket canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
}

.hmp-event-ticket strong {
    margin-top: 4px;
    color: #173e3b;
}

.hmp-event-ticket small {
    max-width: 165px;
    color: #71807e;
}

.hmp-status-badge.hmp-event-status-registered,
.hmp-event-status-registered {
    background: #eaf5f3;
    color: #00645f;
}

.hmp-status-badge.hmp-event-status-checked_in,
.hmp-event-status-checked_in {
    background: #e5f4e8;
    color: #28733b;
}

.hmp-status-badge.hmp-event-status-cancelled,
.hmp-event-status-cancelled {
    background: #f8eaea;
    color: #984040;
}

.hmp-status-badge.hmp-event-status-missed,
.hmp-event-status-missed {
    background: #f2eeee;
    color: #6d6262;
}

.hmp-button--danger {
    border: 1px solid #d9a8a8;
    background: #fff;
    color: #9c3b3b;
}

.hmp-button--danger:hover {
    border-color: #9c3b3b;
    background: #fff5f5;
    color: #7d2828;
}

.hmp-event-history-table-wrap {
    overflow-x: auto;
}

.hmp-event-history-table {
    min-width: 700px;
}

.hmp-form-help {
    margin: -5px 0 12px;
    color: #71807e;
    font-size: 13px;
}

@media (max-width: 900px) {
    .hmp-event-registration-summary {
        grid-template-columns: 1fr;
    }

    .hmp-my-event-card {
        grid-template-columns: 1fr;
    }

    .hmp-event-ticket {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .hmp-event-ticket [data-hmp-qr] {
        width: 112px;
        min-height: 112px;
        flex: 0 0 112px;
    }
}

@media (max-width: 640px) {
    .hmp-event-guest-grid {
        grid-template-columns: 1fr;
    }

    .hmp-event-registration-form__footer,
    .hmp-event-card__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hmp-event-registration-form__footer .hmp-button,
    .hmp-event-card__actions .hmp-button {
        width: 100%;
        justify-content: center;
    }

    .hmp-my-event-card,
    .hmp-event-registration-summary article {
        padding: 16px;
    }

    .hmp-my-event-card__main {
        align-items: flex-start;
    }

    .hmp-my-event-card__date {
        width: 58px;
        height: 66px;
    }

    .hmp-event-ticket {
        align-items: center;
    }
}
