/* Billing & Registrierung – an Account / Mathgard-Branding angelehnt */

:root {
    --billing-accent: var(--account-accent, #4a7c59);
    --billing-accent-hover: var(--account-accent-hover, #3d684a);
    --billing-gold: var(--mg-runegold, #c8a94a);
    --billing-muted: var(--account-muted, #5a6170);
    --billing-card-shadow: var(--account-card-shadow, 0 8px 28px rgba(26, 26, 46, 0.08), 0 2px 8px rgba(26, 26, 46, 0.04));
}

/* —— Billing-Seite (App-Layout) —— */
.container:has(.billing-page) {
    justify-content: center;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

.billing-page {
    width: min(56rem, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-top: 1.75rem;
    padding-bottom: 5rem;
    box-sizing: border-box;
}

.billing-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.75rem;
}

/* Nicht style_brand „header { nightblue }“ – eigenes Page-Banner */
body.page-billing header.billing-page-header {
    background: #fff;
    padding: 1.35rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(26, 26, 46, 0.08);
    box-shadow: var(--billing-card-shadow);
    color: var(--mg-app-text, #232733);
}

body.page-billing header.billing-page-header h1,
body.page-billing header.billing-page-header .billing-eyebrow {
    color: var(--mg-app-text, #232733);
}

body.page-billing header.billing-page-header .billing-eyebrow {
    color: var(--billing-accent);
}

body.page-billing header.billing-page-header .billing-lead {
    color: var(--billing-muted);
}

.billing-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--billing-accent);
}

.billing-page-header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mg-app-text, #232733);
}

.billing-lead {
    margin: 0;
    max-width: 36rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--billing-muted);
}

/* Status-Badge */
.billing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.06);
}

.billing-badge__icon {
    font-size: 0.95rem;
    line-height: 1;
}

.billing-badge--active {
    background: #e8f5ec;
    color: #2d5a3a;
    border-color: rgba(74, 124, 89, 0.35);
}

.billing-badge--trial {
    background: #eef4ff;
    color: #2c4a7c;
    border-color: rgba(44, 74, 124, 0.25);
}

.billing-badge--warn,
.billing-badge--locked {
    background: #fff8e6;
    color: #7a5c12;
    border-color: rgba(200, 169, 74, 0.45);
}

.billing-badge--muted {
    background: #f0f1f4;
    color: var(--billing-muted);
    border-color: rgba(26, 26, 46, 0.1);
}

/* Warn-Banner */
.billing-alert {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(200, 169, 74, 0.5);
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e8 100%);
    box-shadow: var(--billing-card-shadow);
}

.billing-alert__icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--billing-gold);
    color: #1a1a2e;
    font-weight: 800;
    font-size: 0.95rem;
}

.billing-alert--warn .billing-alert__icon {
    background: var(--billing-gold);
}

.billing-alert--info {
    border-color: rgba(70, 120, 180, 0.45);
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fc 100%);
}

.billing-alert--info .billing-alert__icon {
    background: #4a7ab8;
    color: #fff;
}

.billing-alert > div > strong:first-child {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--mg-app-text, #232733);
}

.billing-alert p strong {
    display: inline;
    margin-bottom: 0;
}

.billing-alert p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--billing-muted);
}

/* Raster */
.billing-grid {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .billing-grid {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
        gap: 1.75rem;
    }
}

.billing-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.billing-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Billing: helle Kacheln (Lesbarkeit auf Wald-Hintergrund) */
.page-billing .billing-card--light,
.page-billing .account-card.billing-card--light {
    background: #fff;
    color: var(--mg-app-text, #232733);
}

.page-billing .billing-page-header--light h1,
.page-billing .billing-card--light h2,
.page-billing .billing-card--light h3 {
    color: var(--mg-app-text, #232733);
}

.page-billing .billing-card--light .hint,
.page-billing .billing-lead {
    color: var(--billing-muted);
}

.billing-license-terms {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    border: 1px solid rgba(74, 124, 89, 0.22);
    background: rgba(74, 124, 89, 0.06);
    font-size: 0.92rem;
    line-height: 1.5;
}

.billing-license-terms p {
    margin: 0 0 0.55rem;
}

.billing-license-terms p:last-child {
    margin-bottom: 0;
}

.billing-licenses-card {
    margin-top: 1.25rem;
}

.billing-license-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.billing-license-summary--overview {
    margin-bottom: 1.35rem;
}

.billing-license-summary__item {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(74, 124, 89, 0.08);
    border: 1px solid rgba(74, 124, 89, 0.18);
}

.billing-license-summary__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--billing-muted);
}

.billing-license-summary__value {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.billing-license-renew-hint {
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(255, 248, 220, 0.9);
    border: 1px solid rgba(180, 120, 0, 0.35);
}

.billing-license-renew-hint a {
    font-weight: 600;
    color: var(--billing-accent);
}

.billing-license-issue-details {
    margin-bottom: 1rem;
    border: 1px solid rgba(26, 26, 46, 0.1);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    background: #fafafa;
}

.billing-license-issue-details summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.35rem 0;
}

.billing-license-issue-intro {
    margin: 0.65rem 0 0;
    max-width: 42rem;
    line-height: 1.5;
}

.billing-license-issue-details[open] .billing-license-forms {
    margin-top: 0.75rem;
}

.billing-license-bulk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: #f4f6f4;
    border: 1px solid rgba(26, 26, 46, 0.08);
}

.billing-license-select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    margin-right: 0.25rem;
}

.billing-license-bulk-hint {
    flex: 1 1 100%;
    margin: 0;
    font-size: 0.82rem;
}

.billing-btn-danger-outline {
    border-color: rgba(197, 48, 48, 0.45) !important;
    color: #742a2a !important;
}

.billing-license-table__check {
    width: 2.25rem;
}

.billing-license-student-name {
    display: block;
    font-weight: 600;
}

.billing-license-invite-sent {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: var(--mg-muted, #5a6472);
}

.billing-license-mail-hint--warn {
    border-left: 3px solid #c9a227;
    padding-left: 0.65rem;
}

.billing-license-student-email {
    display: block;
    font-size: 0.8rem;
    color: var(--billing-muted);
}

.billing-license-access {
    max-width: 14rem;
    line-height: 1.4;
    font-size: 0.82rem;
}

.billing-license-renewal {
    min-width: 8.5rem;
}

.billing-license-renewal-btn {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    text-align: left;
    line-height: 1.35;
}

.billing-license-renewal-btn--on {
    background: rgba(74, 124, 89, 0.12);
    color: var(--billing-accent-hover);
    border-color: rgba(74, 124, 89, 0.25);
}

.billing-license-renewal-btn--on:hover {
    background: rgba(74, 124, 89, 0.2);
}

.billing-license-renewal-btn--off {
    background: rgba(197, 48, 48, 0.08);
    color: #742a2a;
    border-color: rgba(197, 48, 48, 0.2);
}

.billing-license-renewal-btn--off:hover {
    background: rgba(197, 48, 48, 0.14);
}

.billing-license-renewal-static {
    font-size: 0.78rem;
    color: var(--billing-muted);
}

.billing-license-status {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.billing-license-status--open {
    background: rgba(90, 97, 112, 0.12);
    color: var(--billing-muted);
}

.billing-license-status--active {
    background: rgba(74, 124, 89, 0.15);
    color: var(--billing-accent-hover);
}

.billing-license-status--blocked {
    background: rgba(197, 48, 48, 0.12);
    color: #742a2a;
}

.billing-license-status--removed {
    background: rgba(197, 48, 48, 0.12);
    color: #742a2a;
}

.billing-license-status-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.billing-license-table__action-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.billing-license-table__actions {
    min-width: 6.5rem;
}

.billing-trial-remaining {
    white-space: nowrap;
    display: inline;
}

.billing-trial-remaining strong {
    display: inline;
    margin-bottom: 0;
}

.billing-license-row--blocked td {
    background: rgba(197, 48, 48, 0.04);
}

.billing-license-forms {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 720px) {
    .billing-license-forms {
        grid-template-columns: 1fr 1fr;
    }
    .billing-license-form--wide {
        grid-column: 1 / -1;
    }
}

.billing-license-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.85rem;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid rgba(26, 26, 46, 0.08);
}

.billing-license-form label {
    font-size: 0.85rem;
    font-weight: 600;
}

.billing-license-form input,
.billing-license-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.25rem;
    padding: 0.5rem 0.65rem;
    font: inherit;
    border-radius: 8px;
    border: 1px solid rgba(26, 26, 46, 0.14);
}

.billing-license-table-wrap {
    overflow-x: auto;
}

.billing-license-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.billing-license-table th,
.billing-license-table td {
    padding: 0.5rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid rgba(26, 26, 46, 0.08);
}

.billing-license-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--billing-muted);
}

.billing-license-table__empty {
    text-align: center;
    color: var(--billing-muted);
    padding: 1rem !important;
}

.billing-btn-small {
    padding: 0.35rem 0.65rem !important;
    min-height: auto !important;
    font-size: 0.82rem !important;
}

.billing-grid--teacher .billing-main {
    grid-column: 1 / -1;
}

@media (min-width: 900px) {
    .billing-grid--teacher {
        grid-template-columns: 1fr;
    }
}

/* Status-Karte nutzt .account-card aus style_account_settings */
.billing-status-card .billing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.billing-stat {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: linear-gradient(160deg, #fafbfc 0%, #f3f5f9 100%);
    border: 1px solid rgba(26, 26, 46, 0.07);
}

.billing-stat__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--billing-muted);
    margin-bottom: 0.35rem;
}

.billing-stat__label-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.billing-stat__label-row .billing-stat__label {
    margin-bottom: 0;
}

.billing-stat-info {
    position: relative;
    flex-shrink: 0;
}

.billing-stat-info__btn {
    box-sizing: border-box;
    width: 1.2rem;
    height: 1.2rem;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1;
    color: var(--billing-muted);
    background: transparent;
    border: 1px dashed rgba(100, 116, 139, 0.75);
    border-radius: 50%;
    cursor: pointer;
    vertical-align: middle;
}

.billing-stat-info__btn:hover,
.billing-stat-info__btn:focus-visible {
    color: var(--mg-app-text, #232733);
    border-color: #475569;
    background: rgba(148, 163, 184, 0.14);
    outline: none;
}

.billing-stat-info__panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    min-width: 14rem;
    max-width: 18rem;
    padding: 0.65rem 1.75rem 0.75rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: normal;
    color: var(--mg-app-text, #232733);
    text-align: left;
    background: #fff;
    border: 1px solid rgba(26, 26, 46, 0.12);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.billing-stat-info__close {
    position: absolute;
    top: 0.35rem;
    right: 0.4rem;
    padding: 0.15rem 0.35rem;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--billing-muted);
    background: transparent;
    border: none;
    cursor: pointer;
}

.billing-stat-info__close:hover {
    color: var(--mg-app-text, #232733);
}

.billing-stat-info__heading {
    margin: 0 0 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--mg-app-text, #232733);
}

.billing-stat-info__body p {
    margin: 0 0 0.45rem;
    font-size: 0.85rem;
    color: var(--billing-muted);
}

.billing-stat-info__body p:last-child {
    margin-bottom: 0;
}

.billing-stat__value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mg-app-text, #232733);
    line-height: 1.3;
}

.billing-stat__value--ok {
    color: #1a6b3c;
}

.billing-trial-tile--payment-saved {
    border-color: rgba(26, 107, 60, 0.35);
    background: rgba(232, 248, 238, 0.95);
}

.billing-actions {
    padding-top: 0.25rem;
    border-top: 1px solid rgba(26, 26, 46, 0.08);
}

.billing-action-form {
    margin: 0 0 0.5rem;
}

.billing-actions .hint {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--billing-muted);
    line-height: 1.45;
}

.billing-btn-outline {
    background: transparent !important;
    color: var(--billing-accent) !important;
    border: 2px solid var(--billing-accent) !important;
    box-shadow: none !important;
}

.billing-btn-outline:hover {
    background: rgba(74, 124, 89, 0.08) !important;
}

.billing-pref {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    cursor: pointer;
}

.billing-pref__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.billing-interval-fieldset {
    border: 1px solid rgba(74, 124, 89, 0.25);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0 0 1rem;
}

.billing-interval-fieldset__legend {
    font-weight: 600;
    padding: 0 0.35rem;
}

.billing-pref--interval {
    margin-top: 0.35rem;
}

.billing-interval-pending {
    margin: 0.5rem 0 0;
}

.billing-stripe-manage-hint {
    margin-top: 0.35rem;
    width: 100%;
}

.billing-preferences-card--compact .billing-pref__text .hint {
    font-size: 0.8rem;
}

.billing-alert--setup {
    border-color: rgba(180, 120, 0, 0.45);
    background: rgba(255, 248, 220, 0.95);
}

.billing-setup-issues {
    margin: 0.35rem 0 0;
    padding-left: 1.25rem;
}

.billing-setup-issues li {
    margin: 0.25rem 0;
}

.billing-renewal-block__setup-hint {
    margin: 0.5rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(255, 248, 220, 0.9);
    border: 1px solid rgba(180, 120, 0, 0.35);
}

.billing-renewal-block {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.billing-renewal-block__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.billing-renewal-block__actions {
    margin-top: 0.65rem;
}

.billing-renewal-block__callout,
.billing-preferences-expired-hint,
.billing-expired-hint {
    margin: 0.5rem 0 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(255, 248, 220, 0.9);
    border: 1px solid rgba(180, 120, 0, 0.35);
    max-width: 42rem;
}

.billing-preferences-expired-hint p,
.billing-renewal-block__callout p {
    margin: 0 0 0.45rem;
}

.billing-preferences-expired-hint p:last-child,
.billing-renewal-block__callout--success {
    background: rgba(74, 124, 89, 0.1);
    border-color: rgba(74, 124, 89, 0.35);
}

.billing-renewal-block__callout p:last-child {
    margin-bottom: 0;
}

.billing-seat-hint,
.billing-free-tier-note {
    margin: 0 0 1rem;
    max-width: 42rem;
}

.billing-stripe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.billing-flash {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.billing-flash--error {
    background: #ffebee;
    color: #b71c1c;
    border-color: #ffcdd2;
}

.billing-prefs-flash {
    padding: 0.75rem 1rem;
    margin: 0 0 1rem;
    border-radius: 8px;
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
    font-size: 0.95rem;
}

.billing-interval-change-hint {
    margin: 0.5rem 0 0;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: rgba(74, 124, 89, 0.08);
    border-left: 3px solid var(--billing-accent);
    color: #1b4332;
    font-size: 0.92rem;
}

.billing-preferences-save[aria-busy="true"] {
    opacity: 0.75;
    cursor: wait;
}

.billing-checkout-hint {
    margin-top: 1rem !important;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(74, 124, 89, 0.06);
    border-left: 3px solid var(--billing-accent);
}

/* Quick-Navigation */
.billing-quicknav {
    display: grid;
    gap: 0.65rem;
}

.billing-quicknav__link {
    display: block;
    padding: 0.9rem 1.1rem;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(26, 26, 46, 0.08);
    box-shadow: var(--billing-card-shadow);
    transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.billing-quicknav__link:hover {
    border-color: rgba(74, 124, 89, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(26, 26, 46, 0.1);
}

.billing-quicknav__link--accent {
    border-color: rgba(74, 124, 89, 0.3);
    background: linear-gradient(135deg, #f8fbf9 0%, #eef5f0 100%);
}

.billing-quicknav__title {
    display: block;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--mg-app-text, #232733);
    margin-bottom: 0.15rem;
}

.billing-quicknav__desc {
    display: block;
    font-size: 0.85rem;
    color: var(--billing-muted);
}

/* Preise Sidebar */
.billing-price-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.billing-price-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(26, 26, 46, 0.08);
}

.billing-price-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.billing-price-item__role {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: var(--mg-app-text, #232733);
}

.billing-price-item__amount {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--billing-accent);
}

.billing-price-item__sub {
    display: block;
    font-size: 0.85rem;
    color: var(--billing-muted);
    margin-top: 0.2rem;
}

.billing-tips {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--billing-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.billing-tips li {
    margin-bottom: 0.45rem;
}

.billing-tips li:last-child {
    margin-bottom: 0;
}

/* —— Registrierungsseite —— */
.register-page {
    width: min(72rem, 100%);
    margin: 0 auto;
    padding: 1.75rem clamp(1rem, 4vw, 2rem) 6rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Alle Inhalte auf hellem Kachel-Hintergrund (Wald-Hintergrund der Seite) */
.register-panel {
    padding: 1.5rem 1.65rem 1.65rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(26, 26, 46, 0.08);
    box-shadow: var(--billing-card-shadow);
}

.register-panel--hero {
    text-align: center;
}

.register-panel__title {
    margin: 0 0 0.6rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mg-app-text, #232733);
}

.register-hero__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--billing-accent);
}

.register-hero__lead {
    margin: 0 auto 1rem;
    max-width: 32rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--billing-muted);
}

.register-hero__pricing {
    margin: 0 auto 1rem;
    max-width: 36rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--mg-app-text, #232733);
}

.register-hero__pricing-save {
    display: inline-block;
    margin-top: 0.15rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #2d5a3a;
}

.register-hero__badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d5a3a;
    background: #e8f5ec;
    border: 1px solid rgba(74, 124, 89, 0.35);
}

.register-panel--facts .register-panel__title,
.register-panel--plans .register-panel__title {
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(200, 169, 74, 0.4);
}

.register-facts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.register-fact {
    padding: 1.1rem 1.15rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #faf8f4 0%, #f5f3ef 100%);
    border: 1px solid rgba(26, 26, 46, 0.07);
    text-align: center;
}

.register-fact__icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.register-fact h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--mg-app-text, #232733);
}

.register-fact p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--billing-muted);
}

.register-mode-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.register-mode-tab {
    padding: 0.55rem 1.15rem;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    border: 2px solid rgba(74, 124, 89, 0.35);
    background: #fff;
    color: var(--billing-accent);
    cursor: pointer;
}

.register-mode-tab--active {
    background: var(--billing-accent);
    color: #fff;
    border-color: var(--billing-accent);
}

.register-license-intro {
    margin: 0 0 1rem;
    line-height: 1.5;
    color: var(--billing-muted);
}

.register-plans__intro {
    text-align: center;
    margin: 0.75rem auto 1.35rem;
    max-width: 28rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--billing-muted);
}

.register-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.register-form-hint {
    margin: 0;
    padding: 0.85rem 1rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--billing-muted);
    background: linear-gradient(180deg, #faf8f4 0%, #f3f0ea 100%);
    border: 1px dashed rgba(74, 124, 89, 0.35);
    border-radius: 10px;
}

.register-form-hint[hidden] {
    display: none !important;
}

.register-plan-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.register-plan-bar {
    display: flex;
    flex-direction: column;
    margin: 0;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 2px solid rgba(26, 26, 46, 0.1);
    box-shadow: var(--billing-card-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.register-plan-bar:hover {
    border-color: rgba(74, 124, 89, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(26, 26, 46, 0.12);
}

.register-plan-bar--selected {
    border-color: var(--billing-accent);
    box-shadow:
        0 12px 32px rgba(74, 124, 89, 0.18),
        0 0 0 1px rgba(74, 124, 89, 0.2);
}

.register-plan-bar__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.register-plan-bar__stripe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    color: #fff;
}

.register-plan-bar--student .register-plan-bar__stripe {
    background: linear-gradient(90deg, #3d684a 0%, var(--billing-accent) 100%);
}

.register-plan-bar--teacher .register-plan-bar__stripe {
    background: linear-gradient(90deg, #1a1a2e 0%, #2e2e4e 55%, #3d684a 100%);
}

.register-plan-bar__role {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.register-plan-bar__tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
}

.register-plan-bar__body {
    flex: 1;
    padding: 1.25rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
}

.register-plan-bar__price-lead {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--billing-muted);
}

.register-price-compare {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: linear-gradient(180deg, #f4faf6 0%, #eef5f0 100%);
    border: 1px solid rgba(74, 124, 89, 0.22);
}

.register-price-compare__option {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.register-price-compare__option--year {
    position: relative;
    padding-right: 0.25rem;
}

.register-price-compare__amount {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mg-app-text, #232733);
}

.register-price-compare__unit {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--billing-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.register-price-compare__or {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--billing-muted);
}

.register-price-compare__badge {
    display: inline-block;
    margin-top: 0.2rem;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: var(--billing-accent);
    width: fit-content;
}

.register-plan-bar__price {
    margin-bottom: 0.25rem;
}

.register-plan-bar__price-main {
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 800;
    color: var(--mg-app-text, #232733);
    letter-spacing: -0.02em;
}

.register-plan-bar__price-unit {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--billing-muted);
    margin-top: 0.15rem;
}

.register-plan-bar__price-alt {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--billing-muted);
}

.register-plan-bar__save {
    color: var(--billing-accent);
    font-weight: 700;
}

.register-plan-bar__list {
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
}

.register-plan-bar__list li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--mg-app-text, #232733);
}

.register-plan-bar__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--billing-accent);
}

.register-plan-bar--teacher .register-plan-bar__list li::before {
    background: var(--billing-gold);
}

/* Formular-Karte – klappt nach Modellwahl auf */
.register-form-card {
    overflow: hidden;
    border-radius: 14px;
    border: 2px solid rgba(74, 124, 89, 0.25);
    background: #fff;
    box-shadow: 0 10px 28px rgba(26, 26, 46, 0.1);
    opacity: 0;
    max-height: 0;
    transform: translateY(-8px);
    transition:
        opacity 0.3s ease,
        max-height 0.45s ease,
        transform 0.35s ease;
}

.register-form-card[hidden] {
    display: none !important;
}

.register-form-card.is-open {
    opacity: 1;
    max-height: none;
    overflow: visible;
    transform: translateY(0);
}

.register-form-card__banner {
    padding: 0.85rem 1.25rem;
    color: #fff;
    text-align: center;
}

.register-form-card__banner--student {
    background: linear-gradient(90deg, #3d684a 0%, var(--billing-accent) 100%);
}

.register-form-card__banner--teacher {
    background: linear-gradient(90deg, #1a1a2e 0%, #2e2e4e 50%, #4a7c59 100%);
}

.register-form-card__banner-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 0.2rem;
}

.register-form-card__banner-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.register-form-card__inner {
    padding: 1.35rem 1.5rem 2rem;
}

.register-form-card__title {
    margin: 0 0 1.15rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mg-app-text, #232733);
}

.register-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.register-form-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.register-form-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.9rem;
    font: inherit;
    font-size: 1rem;
    border: 1px solid rgba(26, 26, 46, 0.14);
    border-radius: 10px;
    background: #fafafa;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.register-form-field input:focus {
    outline: none;
    border-color: var(--billing-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.2);
}

.register-password-rules {
    margin-top: 0.25rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #faf8f4 0%, #f3f0ea 100%);
    border: 1px solid rgba(26, 26, 46, 0.08);
}

.register-password-rules__title {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mg-app-text, #232733);
}

.register-password-rules__list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--billing-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.register-password-rules__list li {
    margin-bottom: 0.35rem;
}

.register-password-rules__list li:last-child {
    margin-bottom: 0;
}

.register-password-rules__list li {
    position: relative;
    padding-left: 1.35rem;
}

.register-password-rules__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(26, 26, 46, 0.35);
}

.register-password-rules__list li.pw-rule--ok {
    color: #276749;
}

.register-password-rules__list li.pw-rule--ok::before {
    content: "✓";
    color: #2f855a;
}

.register-password-rules__list li.pw-rule--bad {
    color: #9b2c2c;
}

.register-password-rules__list li.pw-rule--bad::before {
    content: "✕";
    color: #c53030;
}

.register-teacher-seats {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f6f1 0%, #eef5f0 100%);
    border: 1px solid rgba(74, 124, 89, 0.2);
}

.register-teacher-seats label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.register-teacher-seats input[type="number"] {
    width: 6rem;
    padding: 0.55rem 0.75rem;
    font: inherit;
    border: 1px solid rgba(26, 26, 46, 0.14);
    border-radius: 8px;
}

.register-teacher-seats__hint {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--billing-muted);
}

.register-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 1.35rem 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--billing-muted);
    cursor: pointer;
}

.register-terms input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.register-terms a {
    color: #1d4ed8;
    font-weight: 500;
}

.register-terms a:hover {
    text-decoration: underline;
}

.register-form-card__inner .register-submit {
    margin-top: 0.25rem;
    margin-bottom: 0.15rem;
}

.register-submit {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(180deg, #5a9169 0%, var(--billing-accent) 100%);
    box-shadow: 0 4px 14px rgba(74, 124, 89, 0.35);
    transition: filter 0.15s ease, transform 0.1s ease;
}

.register-submit:hover {
    filter: brightness(1.05);
}

.register-submit:active {
    transform: translateY(1px);
}

.billing-rules-list {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.billing-rules-list li {
    margin-bottom: 0.55rem;
    line-height: 1.5;
    color: var(--billing-muted);
}

.billing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0.55rem 1.35rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.billing-btn--primary {
    background: var(--billing-accent);
    color: #fff;
    box-shadow: 0 2px 6px rgba(74, 124, 89, 0.35);
}

.billing-btn--primary:hover {
    background: var(--billing-accent-hover);
}

.billing-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    scroll-margin-top: 5.5rem;
}

.billing-message--error {
    background: #fde8e8;
    color: #9b2c2c;
}

.billing-message--ok {
    background: #e6ffed;
    color: #276749;
}

/* Account-Partial (billing in account) */
.billing-dl--compact {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    margin-bottom: 0.75rem;
}

.billing-dl--compact dt {
    font-weight: 600;
    color: var(--billing-muted);
    font-size: 0.85rem;
}

.account-btn--link {
    display: inline-flex;
    text-decoration: none;
}

.billing-manage-block .account-btn--link {
    margin-top: 0;
}

.billing-manage-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

/* .account-card .hint hat margin-top negativ – hier überschreiben */
.account-card .billing-manage-hint {
    margin: 0;
    max-width: 22rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--billing-muted, var(--account-muted, #5a6170));
}

.account-btn--danger {
    background: #c53030;
    color: #fff;
    border: none;
}

.account-divider {
    margin: 1.25rem 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.delete-account-actions {
    margin-top: 0.5rem;
}

body.delete-account-modal-open,
body.billing-confirm-modal-open {
    overflow: hidden;
}

/* —— Billing-Bestätigung (Stripe / Abo) —— */
.billing-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
}

.billing-confirm-modal[hidden] {
    display: none !important;
}

.billing-confirm-modal--open {
    display: flex !important;
}

.billing-confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(26, 26, 46, 0.55);
    cursor: pointer;
}

.billing-confirm-modal__panel {
    position: relative;
    z-index: 1;
    width: min(28rem, 100%);
    max-height: min(90vh, 34rem);
    overflow-y: auto;
    padding: 1.4rem 1.55rem 1.3rem;
    border-radius: 16px;
    background: #fff;
    box-shadow:
        0 24px 48px rgba(26, 26, 46, 0.22),
        0 8px 16px rgba(26, 26, 46, 0.1);
    border: 1px solid rgba(74, 124, 89, 0.28);
}

.billing-confirm-modal__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--billing-accent);
}

.billing-confirm-modal__title {
    margin: 0 0 0.85rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--mg-app-text, #232733);
    letter-spacing: -0.02em;
}

.billing-confirm-modal__body {
    margin-bottom: 1.2rem;
}

.billing-confirm-modal__body p {
    margin: 0 0 0.7rem;
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--mg-app-text, #232733);
}

.billing-confirm-modal__body p:last-child {
    margin-bottom: 0;
}

.billing-confirm-modal__price {
    display: inline-block;
    margin-top: 0.15rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: rgba(74, 124, 89, 0.1);
    color: var(--billing-accent-hover);
    font-size: 0.95rem;
}

.billing-confirm-interval {
    margin: 1rem 0 0.75rem;
    padding: 0;
    border: none;
}

.billing-confirm-interval__legend {
    padding: 0;
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--billing-muted);
}

.billing-confirm-interval__option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(74, 124, 89, 0.2);
    background: rgba(74, 124, 89, 0.06);
    cursor: pointer;
}

.billing-confirm-interval__option:last-child {
    margin-bottom: 0;
}

.billing-confirm-interval__option input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.billing-confirm-interval__content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.billing-confirm-interval__price {
    font-size: 0.88rem;
    color: var(--billing-muted);
}

.billing-confirm-interval__save {
    color: var(--billing-accent-hover);
    font-weight: 600;
}

.billing-confirm-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.delete-account-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
}

.delete-account-modal[hidden] {
    display: none !important;
}

.delete-account-modal--open {
    display: flex !important;
}

.delete-account-modal__backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(26, 26, 46, 0.55);
    cursor: pointer;
}

.delete-account-modal__panel {
    position: relative;
    z-index: 1;
    width: min(26rem, 100%);
    max-height: min(90vh, 32rem);
    overflow-y: auto;
    padding: 1.35rem 1.5rem 1.25rem;
    border-radius: 16px;
    background: #fff;
    box-shadow:
        0 24px 48px rgba(26, 26, 46, 0.22),
        0 8px 16px rgba(26, 26, 46, 0.12);
    border: 1px solid rgba(197, 48, 48, 0.2);
}

.delete-account-modal__title {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #742a2a;
}

.delete-account-modal__body {
    margin-bottom: 1.15rem;
}

.delete-account-modal__body p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--mg-app-text, #232733);
}

.delete-account-modal__body p:last-child {
    margin-bottom: 0;
}

.delete-account-modal__body a {
    color: var(--billing-accent);
    font-weight: 600;
}

.delete-account-modal__body a:hover {
    text-decoration: underline;
}

.delete-account-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.delete-account-form label {
    display: block;
    margin-bottom: 0.5rem;
}

.nav-register-link {
    margin-right: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    color: var(--mg-runegold, #c8a94a);
}

.nav-register-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .register-plan-bars {
        grid-template-columns: 1fr;
    }

    .register-form-grid {
        grid-template-columns: 1fr;
    }

    .register-form-field--full {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .billing-status-card .billing-stats {
        grid-template-columns: 1fr 1fr;
    }

    .billing-page-header {
        flex-direction: column;
    }
}

.billing-transfer-requests {
    margin: 1.25rem 0;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(26, 26, 46, 0.12);
    background: #fff;
}

.billing-transfer-requests h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.billing-transfer-requests__list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}

.billing-transfer-requests__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-top: 1px solid rgba(26, 26, 46, 0.08);
}

.billing-transfer-requests__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.billing-transfer-student__form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-top: 0.75rem;
}

.billing-history-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.billing-history-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 160px;
}

.billing-grace-banner {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    width: 100%;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.5rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    font-size: 0.9rem;
}

.billing-grace-banner a {
    margin-left: 0.35rem;
}

.billing-grace-banner__reason {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.95rem;
}

.billing-grace-banner__icon {
    font-weight: 700;
    color: #856404;
}

