.account-header,
.account-shell {
    width: min(1120px, calc(100vw - 2rem));
    margin: 0 auto;
}

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 0;
}

/* Brand byline: "een w43.nl product" — the logo carries the mark, the words frame it */
.account-header .header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--text-color) 65%, transparent);
}

.account-header .header-brand w43-logo {
    display: inline-flex;
    font-size: 1.6rem;
}

.account-header nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.account-header a {
    color: var(--text-color);
    text-decoration: none;
}

.account-header nav a {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.account-header nav a:hover {
    background: var(--option-hover-bg);
}

.account-header nav a[aria-current="page"] {
    background: var(--primary-color);
    color: #1a202c;
    font-weight: 700;
}

.account-header nav a#nav-login {
    border: 1px solid var(--border-color);
    background: var(--hero-bg);
    color: var(--hero-text);
    font-weight: 600;
}

.account-header nav a#nav-login:hover {
    background: color-mix(in srgb, var(--hero-bg) 80%, var(--hero-text));
}

#account-login,
.product-card a {
    border: 1px solid var(--border-color);
    border-radius: 0.55rem;
    padding: 0.55rem 0.75rem;
    text-decoration: none;
    font-weight: 700;
    color: var(--hero-text);
    background: var(--hero-bg);
}

.account-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0;
}

.account-title h1 {
    margin: 0;
    color: var(--text-color);
}

.account-title p {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
}

.account-status,
.account-section,
.account-summary {
    border: 1px solid var(--border-color);
    background: var(--container-bg);
    padding: 1rem;
    margin: 1rem 0;
}

.account-summary {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, 1fr));
    gap: 1rem;
}

.account-identity,
.summary-item,
.subscription-card,
.product-card {
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    padding: 1rem;
}

.account-identity span,
.summary-item span,
.subscription-card span,
.subscription-card small,
.product-card span,
.product-card small {
    color: var(--text-muted);
}

.account-identity strong,
.summary-item strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-color);
    font-size: 1.25rem;
    overflow-wrap: anywhere;
}

.account-section h2 {
    margin: 0 0 1rem;
    color: var(--text-color);
}

.subscription-list,
.product-list {
    display: grid;
    gap: 1rem;
}

.subscription-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.subscription-card h3,
.product-card h3 {
    margin: 0;
    color: var(--text-color);
}

.subscription-card progress {
    width: 100%;
    height: 0.7rem;
    margin: 0.6rem 0 0.2rem;
}

.limit-grid,
.quote-grid {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.limit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.limit-grid div,
.quote-card {
    border: 1px solid var(--border-color);
    padding: 0.65rem;
}

.quote-card strong {
    display: block;
    color: var(--text-color);
}

.quote-card span {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.product-card.current {
    outline: 2px solid var(--hero-bg);
}

.product-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.product-card-header b {
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.2rem 0.45rem;
    font-size: 0.85rem;
}

.product-card ul {
    margin: 1rem 0;
    padding-left: 1.2rem;
    color: var(--text-color);
}

.product-card li + li {
    margin-top: 0.35rem;
}

.product-card a {
    display: inline-block;
    margin-top: 0.85rem;
}

@media (max-width: 760px) {
    .account-header,
    .account-title {
        display: block;
    }

    .account-header nav,
    #account-login {
        margin-top: 1rem;
    }

    .account-summary {
        grid-template-columns: 1fr 1fr;
    }

    .account-identity {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .account-summary,
    .limit-grid {
        grid-template-columns: 1fr;
    }
}

/* display:grid on the class would otherwise defeat the hidden attribute */
[hidden] {
    display: none !important;
}

/* The logo defaults to white (for dark heroes); follow the theme in the light header */
.account-header w43-logo {
    --fill-color: var(--text-color);
}

/* "Waarom w43 transfer" benefit cards (landing page) */
.benefits {
    width: min(1120px, calc(100vw - 2rem));
    margin: 2rem auto;
    color: var(--text-color);
}

.benefits > h2 {
    text-align: center;
    font-size: 1.6rem;
    margin: 0 0 1.25rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.benefit-card {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: var(--container-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 1.25rem 1.4rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--shadow-color);
}

.benefit-card .benefit-icon {
    font-size: 1.7rem;
    line-height: 1;
}

.benefit-card h3 {
    margin: 0.6rem 0 0.4rem;
    font-size: 1.05rem;
    color: var(--text-color);
}

.benefit-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}
