* {
    box-sizing: border-box;
}

:root {
    --blue-950: #07182b;
    --blue-900: #0b2847;
    --blue-800: #123d68;
    --blue-200: #bcd5ea;
    --white: #ffffff;
    --muted: #d4e1ed;
    --green: #57d497;
    --red: #f07c7c;
    --radius-large: 28px;
    --radius-medium: 20px;
    --shadow-large: 0 24px 70px rgba(0, 0, 0, .38);
    --shadow-medium: 0 12px 28px rgba(0, 0, 0, .24);
}

html {
    min-height: 100%;
    background:
        radial-gradient(circle at top, #1a537f 0%, var(--blue-900) 48%, var(--blue-950) 100%);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--white);
}

.page-shell,
.member-page {
    display: grid;
    place-items: center;
    padding: 22px 14px;
}

.panel,
.member-card {
    width: min(100%, 460px);
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: var(--radius-large);
    background: linear-gradient(160deg, rgba(18, 61, 104, .96), rgba(7, 24, 43, .98));
    box-shadow: var(--shadow-large), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.panel {
    padding: 26px;
}

.login-panel,
.member-card {
    text-align: center;
}

.member-card {
    padding: 22px;
}

.main-logo,
.pulse-logo {
    width: min(68vw, 230px);
    height: auto;
    object-fit: contain;
}

.main-logo {
    border-radius: var(--radius-medium);
}

.logo-frame {
    margin: 12px auto 18px;
    padding: 14px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 24px;
    box-shadow: var(--shadow-medium);
    background: rgba(255, 255, 255, .96);
}

.pulse-logo {
    display: block;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.035); }
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 9vw, 3.2rem);
    line-height: 1;
}

h2 {
    margin: 8px 0 14px;
    font-size: 1.45rem;
}

.overline,
.section-label {
    display: block;
    color: var(--blue-200);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.intro,
.fine-print,
.member-number {
    color: var(--muted);
}

form {
    margin-top: 24px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
}

input {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    color: #12243a;
    font: inherit;
}

button,
.partner-button {
    width: 100%;
    display: inline-block;
    margin-top: 14px;
    padding: 15px;
    border: 1px solid white;
    border-radius: 14px;
    background: transparent;
    color: white;
    font: inherit;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}

.notice {
    margin-top: 18px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 14px;
    text-align: left;
}

.notice.success {
    background: rgba(87, 212, 151, .15);
}

.notice.error {
    background: rgba(240, 124, 124, .16);
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.text-link,
.back-link {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .65);
}

.back-link {
    display: block;
    width: fit-content;
    font-size: .9rem;
}

.benefit-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.benefit-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 18px;
    color: white;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.benefit-link div {
    display: grid;
    gap: 4px;
}

.benefit-link span {
    color: var(--muted);
}

.benefit-link b {
    max-width: 48%;
    font-size: 1rem;
    text-align: right;
}

.discount-block {
    margin: 22px 0;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .26);
}

.discount-block > strong {
    display: block;
    font-size: clamp(2.3rem, 12vw, 4.4rem);
    line-height: 1;
}

.discount-block p {
    margin-bottom: 0;
    color: var(--muted);
}

.outlined-section {
    padding: 19px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: var(--radius-medium);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .22);
}

.family-names {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.family-names span {
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 999px;
}

.facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.facts-grid div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 16px;
    text-align: left;
}

.facts-grid span {
    display: block;
    margin-bottom: 5px;
    color: var(--blue-200);
    font-size: .78rem;
}

.facts-grid strong {
    font-size: .96rem;
}

.live-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 18px;
}

.live-status > div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.live-status > div span {
    color: var(--muted);
    font-size: .8rem;
}

.live-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(87, 212, 151, .55);
    animation: dotPulse 1.6s infinite;
}

@keyframes dotPulse {
    70% { box-shadow: 0 0 0 12px rgba(87, 212, 151, 0); }
    100% { box-shadow: 0 0 0 0 rgba(87, 212, 151, 0); }
}

.live-clock {
    display: block;
    margin-top: 12px;
    font-size: clamp(2.7rem, 14vw, 4.2rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.live-status.expired {
    border-color: var(--red);
    color: #ffdada;
}

.live-status.expired .live-dot {
    background: var(--red);
    animation: none;
}

.expired-card .pulse-logo {
    animation: none;
    filter: grayscale(1);
    opacity: .65;
}

.site-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .62);
    font-size: .72rem;
    text-align: center;
}

@media (max-width: 400px) {
    .facts-grid {
        grid-template-columns: 1fr;
    }

    .panel,
    .member-card {
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pulse-logo,
    .live-dot {
        animation: none;
    }
}

/* ==========================================================
   MEDLEMSPORTAL
   ========================================================== */

.portal-panel {
    width: min(100%, 760px);
    margin-inline: auto;
}

.portal-header {
    display: block;
    margin-bottom: 20px;
    text-align: center;
}

.portal-header-content {
    width: 100%;
}

.portal-header .overline {
    margin-bottom: 5px;
}

.portal-header h1 {
    margin: 0;
}

.portal-header .member-number {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.93rem;
}

/* ----------------------------------------------------------
   Mitt BVK
   ---------------------------------------------------------- */

.portal-member {
    margin-bottom: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 18px;
    background: transparent;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.portal-member-toggle {
    width: 100%;
    min-height: 68px;
    margin: 0;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--white);
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    appearance: none;
}

.portal-member-toggle:hover {
    background: rgba(255, 255, 255, .06);
}

.portal-member-toggle:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .28);
    outline-offset: -3px;
}

.portal-member-toggle-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.portal-member-toggle-text strong {
    color: var(--white);
    font-size: 1.03rem;
    line-height: 1.25;
}

.portal-member-toggle-text small {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 400;
    line-height: 1.3;
}

.portal-member-toggle-arrow {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    margin-right: 3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: center;
    transition: transform 220ms ease;
}

.portal-member-toggle[aria-expanded="true"] .portal-member-toggle-arrow {
    transform: rotate(225deg) translate(-2px, -2px);
}

/* ----------------------------------------------------------
   Utfällbart innehåll
   ---------------------------------------------------------- */

.portal-member-dropdown {
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    opacity: 0;
    visibility: hidden;
    transition:
        max-height 350ms ease,
        opacity 200ms ease,
        visibility 0s linear 350ms,
        border-color 200ms ease;
}

.portal-member-dropdown.is-open {
    max-height: 900px;
    border-top-color: rgba(255, 255, 255, .22);
    opacity: 1;
    visibility: visible;
    transition:
        max-height 350ms ease,
        opacity 200ms ease,
        visibility 0s linear 0s,
        border-color 200ms ease;
}

.portal-member-content {
    padding: 5px 18px 18px;
}

/* ----------------------------------------------------------
   Medlemsuppgifter
   ---------------------------------------------------------- */

.portal-member-information {
    margin: 0;
}

.portal-information-row {
    display: grid;
    grid-template-columns: minmax(115px, .38fr) minmax(0, .62fr);
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.portal-information-row dt {
    margin: 0;
    color: var(--blue-200);
    font-size: .77rem;
    font-weight: 700;
    letter-spacing: .035em;
    line-height: 1.45;
    text-transform: uppercase;
}

.portal-information-row dd {
    margin: 0;
    color: var(--white);
    font-size: .94rem;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* ----------------------------------------------------------
   Giltighet och betalning
   ---------------------------------------------------------- */

.portal-validity {
    margin-top: 16px;
}

.portal-validity-link,
.portal-validity-box {
    min-height: 76px;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 13px;
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    text-decoration: none;
}

.portal-validity-link {
    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.portal-validity-link:hover {
    border-color: rgba(255, 255, 255, .86);
    background: rgba(255, 255, 255, .13);
    transform: translateY(-1px);
}

.portal-validity-link:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .28);
    outline-offset: 2px;
}

.portal-status-dot {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
}

.portal-status-dot.is-valid {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(87, 212, 151, .14);
}

.portal-status-dot.is-expired {
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(240, 124, 124, .13);
}

.portal-status-dot.is-unknown {
    background: #a8b2ac;
    box-shadow: 0 0 0 4px rgba(168, 178, 172, .13);
}

.portal-validity-text {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.portal-validity-text small {
    color: var(--blue-200);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .025em;
    line-height: 1.3;
    text-transform: uppercase;
}

.portal-validity-text strong {
    color: var(--white);
    font-size: .98rem;
    line-height: 1.35;
}

.portal-validity-text span {
    color: var(--muted);
    font-size: .79rem;
    line-height: 1.35;
}

.portal-validity-arrow {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    margin-right: 3px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

/* ----------------------------------------------------------
   Medlemsförmåner
   ---------------------------------------------------------- */

.portal-benefits h2 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 1.08rem;
}

.portal-empty-benefits {
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
}

/* ----------------------------------------------------------
   Logga ut
   ---------------------------------------------------------- */

.portal-logout {
    width: min(100%, 760px);
    margin: 15px auto 0;
    padding: 4px 15px 18px;
    text-align: center;
}

.portal-logout a {
    display: inline-block;
    padding: 8px 14px;
    color: rgba(255, 255, 255, .72);
    font-size: .88rem;
    text-decoration: none;
}

.portal-logout a:hover {
    color: var(--white);
    text-decoration: underline;
}

.portal-logout a:focus-visible {
    border-radius: 6px;
    outline: 3px solid rgba(255, 255, 255, .28);
    outline-offset: 2px;
}

/* ----------------------------------------------------------
   Mobil
   ---------------------------------------------------------- */

@media (max-width: 600px) {
    .portal-panel {
        width: 100%;
    }

    .portal-member-toggle {
        min-height: 64px;
        padding-inline: 15px;
    }

    .portal-member-content {
        padding-inline: 15px;
    }

    .portal-information-row {
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 11px 0;
    }

    .portal-validity-link,
    .portal-validity-box {
        padding-inline: 13px;
    }

    .portal-logout {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-member-toggle-arrow,
    .portal-member-dropdown,
    .portal-validity-link {
        transition: none;
    }
}


/* ==========================================================
   MITT BVK – STARTSIDA
   ========================================================== */

.portal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.portal-header .overline {
    margin: 0 0 16px;
}

.portal-logo {
    display: block;
    width: 118px;
    height: 118px;
    margin: 0 auto 17px;
    object-fit: contain;
}

.portal-header h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 8vw, 3.1rem);
    line-height: 1;
}

.portal-welcome {
    margin: 16px 0 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
}

.member-number {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.85rem;
}

/* Ta bort webbläsarens blå standardlänkar */

.portal-menu a,
.portal-card,
.portal-card:link,
.portal-card:visited,
.portal-card:hover,
.portal-card:active {
    color: inherit;
    text-decoration: none;
}

/* Kort */

.portal-menu {
    display: grid;
    gap: 13px;
}

.portal-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 19px 18px;
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

a.portal-card:hover {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

a.portal-card:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 3px;
}

.portal-card-content {
    min-width: 0;
}

.portal-card-label {
    display: block;
    margin-bottom: 5px;
    color: #9ed8ff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.13rem;
    line-height: 1.25;
}

.portal-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: 1.5;
}

.portal-card-arrow {
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
}

/* Inaktiva kort */

.portal-card-disabled {
    opacity: 0.58;
}

.portal-card-disabled .portal-card-arrow {
    display: none;
}

.portal-status {
    display: inline-block;
    margin-top: 12px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Utloggning */

.portal-footer {
    margin-top: 26px;
    padding-top: 19px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    text-align: center;
}

.portal-logout,
.portal-logout:link,
.portal-logout:visited {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.87rem;
    font-weight: 700;
    text-decoration: none;
}

.portal-logout:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Mobil */

@media (max-width: 520px) {
    .portal-logo {
        width: 100px;
        height: 100px;
    }

    .portal-card {
        padding: 17px 15px;
    }

    .portal-card h2 {
        font-size: 1.04rem;
    }

    .portal-card p {
        font-size: 0.82rem;
    }

    .portal-card-arrow {
        font-size: 1.75rem;
    }
}
.portal-back,
.portal-back:link,
.portal-back:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 24px;

    color: rgba(255,255,255,.85);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

.portal-back:hover {
    color: #ffffff;
    text-decoration: underline;
}

.portal-back::before {
    content: "←";
    font-size: 1rem;
}

/* ==========================================================
   VÄDERSTATIONER
   ========================================================== */

.weather-station-list {
    display: grid;
    gap: 16px;
}

.weather-station {
    position: relative;
    overflow: hidden;

    padding: 20px;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.11),
            rgba(255, 255, 255, 0.035)
        );

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Liten ljus markering högst upp i varje kort */

.weather-station::before {
    content: "";

    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;

    height: 3px;

    border-radius: 0 0 3px 3px;

    background: rgba(122, 211, 255, 0.85);
}

.weather-station-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.weather-station-top > div:first-child {
    min-width: 0;
}

.weather-station-name,
.weather-station-name:link,
.weather-station-name:visited {
    display: inline-block;

    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

a.weather-station-name {
    border-bottom: 1px solid rgba(255, 255, 255, 0.38);
}

a.weather-station-name:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.weather-station-direction {
    margin: 7px 0 0;

    color: rgba(255, 255, 255, 0.67);
    font-size: 0.84rem;
    line-height: 1.4;
}

/* Vindvärdet till höger */

.weather-wind-values {
    flex: 0 0 auto;

    min-width: 110px;
    padding: 11px 13px;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;

    background: rgba(0, 0, 0, 0.13);

    text-align: right;
}

.weather-wind-values strong {
    display: block;

    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.weather-wind-values strong::after {
    content: " m/s";

    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    font-weight: 600;
}

.weather-wind-values span {
    display: block;

    margin-top: 7px;

    color: rgba(255, 255, 255, 0.68);
    font-size: 0.74rem;
    line-height: 1.3;
}

/* Grafknapp */

.weather-graph-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    margin-top: 17px;
    padding: 9px 14px;

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;

    box-shadow: none;

    font-size: 0.78rem;
    font-weight: 700;

    cursor: pointer;
}

.weather-graph-button:hover {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.13);
}

/* Grafens ram */

.weather-graph {
    height: 270px;

    margin-top: 16px;
    padding: 14px;

    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 15px;

    background: rgba(0, 0, 0, 0.18);
}

.weather-graph[hidden] {
    display: none;
}
.weather-station-direction strong {
    color: rgba(255,255,255,.85);
    font-weight: 700;
}
.membership-page {
    display: grid;
    gap: 1rem;
}

.membership-hero {
    padding: 0.25rem 0 0.5rem;
}

.membership-hero h1 {
    margin: 0;
}

.membership-name {
    margin: 0.75rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.membership-number {
    margin: 0.25rem 0 0;
    color: var(--text-muted, #64748b);
}

.membership-card {
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.08);
}

.membership-card h2 {
    margin: 0.2rem 0 1rem;
    font-size: 1.2rem;
}

.membership-card-overline {
    margin: 0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.membership-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.membership-status-dot {
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.35rem;
    flex: 0 0 auto;
    border-radius: 50%;
}

.membership-status-dot.is-active {
    background: #22c55e;
    box-shadow: 0 0 0 0.3rem rgba(34, 197, 94, 0.15);
}

.membership-status-dot.is-inactive {
    background: #ef4444;
    box-shadow: 0 0 0 0.3rem rgba(239, 68, 68, 0.15);
}

.membership-details {
    margin: 0;
}

.membership-detail-row {
    display: grid;
    grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.membership-detail-row:last-child {
    border-bottom: 0;
}

.membership-detail-row dt {
    color: #64748b;
}

.membership-detail-row dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.membership-card-actions {
    margin-top: 1rem;
}

.membership-card-actions .button {
    width: 100%;
    color: hsla(219, 90%, 16%, 0.849);
}

.membership-family-list {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.membership-family-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.membership-family-list li:last-child {
    border-bottom: 0;
}

.membership-family-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #e0f2fe;
    color: #075985;
    font-weight: 800;
}

.membership-navigation {
    display: grid;
    gap: 0.5rem;
    padding: 0.5rem 0 1rem;
    text-align: center;
}

.membership-navigation a {
    display: block;
    padding: 0.75rem;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.membership-card {
    background: #ffffff;
    color: #17324d;
}
.membership-form {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.membership-form-field {
    display: grid;
    gap: 0.45rem;
}

.membership-form-field label {
    color: #17324d;
    font-size: 0.9rem;
    font-weight: 700;
}

.membership-form-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(23, 50, 77, 0.2);
    border-radius: 12px;
    background: #ffffff;
    color: #17324d;
    font: inherit;
}

.membership-form-field input:focus {
    outline: 3px solid rgba(36, 108, 170, 0.2);
    border-color: #246caa;
}

.membership-form-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.4fr) minmax(0, 1fr);
    gap: 1rem;
}

.membership-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    color: #17324d;
}

.membership-message p {
    margin-top: 0;
    color: inherit;
    font-weight: 700;
}

.membership-message ul {
    margin-bottom: 0;
}

.membership-message-success {
    background: #e8f6ed;
    border: 1px solid #94cfaa;
}

.membership-message-error {
    background: #fff0f0;
    border: 1px solid #e2a1a1;
}

@media (max-width: 600px) {
    .membership-form-row {
        grid-template-columns: 1fr;
    }
}