:root {
    --account-bg: #f5f7fb;
    --account-surface: #ffffff;
    --account-surface-soft: #f7f9fc;
    --account-border: #e7ebf2;
    --account-text: #172033;
    --account-muted: #718096;
    --account-subtle: #98a3b5;
    --account-accent: #007afe;
    --account-accent-dark: #0069dc;
    --account-accent-soft: #e8f3ff;
    --account-radius: 16px;
    --account-shadow: 0 1px 2px rgba(19, 33, 68, .03), 0 8px 24px rgba(19, 33, 68, .04);
    --account-danger: #e5484d;
    --account-success: #30a46c;
}

.account-modern-body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--account-bg);
    color: var(--account-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.account-modern-body *,
.account-modern-body *::before,
.account-modern-body *::after {
    box-sizing: border-box;
}

.account-modern-shell {
    min-height: 100vh;
    padding: 32px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.account-modern-brand {
    margin-bottom: 24px;
}

.account-modern-brand img {
    display: block;
    width: 128px;
    height: auto;
}

.account-modern-main {
    width: 100%;
    max-width: 440px;
}

.account-modern-footer {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--account-subtle);
    font-size: 12px;
}

.account-modern-footer a {
    color: var(--account-muted);
    text-decoration: none;
}

.account-modern-footer a:hover {
    color: var(--account-accent);
}

.account-modern {
    width: 100%;
    color: var(--account-text);
}

.account-modern a {
    color: var(--account-accent);
    text-decoration: none;
}

.account-modern a:hover {
    color: var(--account-accent-dark);
}

.account-modern .material-icons {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-family: "Material Icons" !important;
    font-style: normal;
    line-height: 1 !important;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
}

.account-modern-card {
    padding: 28px 24px 24px;
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius);
    background: var(--account-surface);
    box-shadow: var(--account-shadow);
}

.account-modern-card__eyebrow {
    margin: 0 0 8px;
    color: var(--account-accent);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
}

.account-modern-card__title {
    margin: 0 0 8px;
    color: var(--account-text);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -.035em;
    text-align: center;
}

.account-modern-card__subtitle {
    margin: 0 0 24px;
    color: var(--account-muted);
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.account-modern-form {
    width: 100%;
}

.account-modern-form__field {
    margin-bottom: 16px;
}

.account-modern-form__label {
    display: block;
    margin-bottom: 7px;
    color: #4f5d73;
    font-size: 13px;
    font-weight: 700;
}

.account-modern-form__input {
    width: 100%;
    min-height: 43px;
    padding: 10px 14px;
    border: 1px solid var(--account-border);
    border-radius: 11px;
    background: #fbfcfe;
    color: var(--account-text);
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.account-modern-form__input:focus {
    outline: none;
    border-color: #8fc6ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 122, 254, .1);
}

.account-modern-form__input[readonly] {
    background: var(--account-surface-soft);
    color: var(--account-muted);
}

.account-modern-form__check {
    margin: 4px 0 20px;
}

.account-modern-form__check .form-check-input:checked {
    background-color: var(--account-accent);
    border-color: var(--account-accent);
}

.account-modern-form__check .form-check-label {
    color: var(--account-muted);
    font-size: 13px;
    line-height: 1.45;
}

.account-modern-form__check .form-check-label a {
    font-weight: 600;
}

.account-modern-primary-button {
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    background: var(--account-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}

.account-modern-primary-button:hover {
    background: var(--account-accent-dark);
    color: #fff;
}

.account-modern-secondary-button {
    min-height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--account-border);
    border-radius: 11px;
    background: #fff;
    color: var(--account-text);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--account-shadow);
    transition: border-color .15s ease, color .15s ease;
}

.account-modern-secondary-button:hover {
    border-color: rgba(0, 122, 254, .35);
    color: var(--account-accent);
}

.account-modern-danger-button {
    min-height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(229, 72, 77, .25);
    border-radius: 10px;
    background: #fff;
    color: var(--account-danger);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.account-modern-danger-button:hover {
    background: #fff5f5;
    border-color: rgba(229, 72, 77, .45);
}

.account-modern-links {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--account-muted);
    font-size: 13px;
    text-align: center;
}

.account-modern-links a {
    font-weight: 600;
}

.account-modern-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.account-modern-alert--info {
    border-color: rgba(0, 122, 254, .18);
    background: var(--account-accent-soft);
    color: #245ea8;
}

.account-modern-alert--success {
    border-color: rgba(48, 164, 108, .18);
    background: #eefbf3;
    color: #18794e;
}

.account-modern .validation-summary-errors,
.account-modern .field-validation-error,
.account-modern .text-danger {
    color: var(--account-danger) !important;
    font-size: 12px;
}

.account-modern .validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

.account-modern-state {
    text-align: center;
}

.account-modern-state__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--account-accent-soft);
    color: var(--account-accent);
}

.account-modern-state__icon--success {
    background: #eefbf3;
    color: var(--account-success);
}

.account-modern-state__icon .material-icons {
    font-size: 28px;
}

.account-modern-state__text {
    margin: 0 0 20px;
    color: var(--account-muted);
    font-size: 14px;
    line-height: 1.5;
}

.account-modern-state__email {
    color: var(--account-text);
    font-weight: 700;
    word-break: break-word;
}

.account-modern-page {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: 2rem;
    color: var(--account-text);
}

.account-modern-page-header {
    margin-bottom: 24px;
}

.account-modern-page-header__eyebrow {
    margin: 0 0 7px;
    color: var(--account-accent);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.account-modern-page-header h1 {
    margin: 0;
    font-size: clamp(24px, 3vw, 31px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.account-modern-page-header__subtitle {
    margin: 8px 0 0;
    color: var(--account-muted);
    font-size: 14px;
    line-height: 1.45;
}

.account-modern-tabs {
    margin-bottom: 20px;
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    border: 1px solid var(--account-border);
    border-radius: 999px;
    background: var(--account-surface);
    box-shadow: var(--account-shadow);
}

.account-modern-tabs .nav-link {
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    color: var(--account-muted);
    font-size: 13px;
    font-weight: 700;
}

.account-modern-tabs .nav-link.active {
    background: var(--account-accent-soft);
    color: var(--account-accent);
}

.account-modern-panel {
    padding: 22px;
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius);
    background: var(--account-surface);
    box-shadow: var(--account-shadow);
}

.account-modern-panel + .account-modern-panel {
    margin-top: 16px;
}

.account-modern-panel__title {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 700;
}

.account-modern-subscription {
    padding: 18px;
    border: 1px solid var(--account-border);
    border-radius: 14px;
    background: var(--account-surface-soft);
}

.account-modern-subscription + .account-modern-subscription {
    margin-top: 12px;
}

.account-modern-subscription__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.account-modern-subscription__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    word-break: break-word;
}

.account-modern-subscription__amount {
    margin: 0;
    color: var(--account-text);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.account-modern-subscription__meta {
    margin: 0 0 6px;
    color: var(--account-muted);
    font-size: 13px;
    line-height: 1.4;
}

.account-modern-empty {
    padding: 28px 20px;
    border: 1px dashed var(--account-border);
    border-radius: var(--account-radius);
    background: var(--account-surface-soft);
    text-align: center;
}

.account-modern-empty__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--account-accent-soft);
    color: var(--account-accent);
}

.account-modern-empty__icon .material-icons {
    font-size: 26px;
}

.account-modern-empty h2,
.account-modern-empty h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.account-modern-empty p {
    margin: 0 0 16px;
    color: var(--account-muted);
    font-size: 14px;
    line-height: 1.45;
}

.account-modern-link-list {
    display: grid;
    gap: 10px;
}

.account-modern-link-list a,
.account-modern-link-list button {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--account-border);
    border-radius: 12px;
    background: #fff;
    color: var(--account-text);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--account-shadow);
}

.account-modern-link-list a:hover {
    border-color: rgba(0, 122, 254, .35);
    color: var(--account-accent);
}

@media (max-width: 480px) {
    .account-modern-shell {
        padding-top: 20px;
    }

    .account-modern-card {
        padding: 22px 18px 18px;
    }

    .account-modern-tabs {
        width: 100%;
        flex-wrap: wrap;
    }
}
