.account-page {
    min-height: calc(100vh - var(--site-header-scroll-offset, 0rem));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1rem 4rem;
    background: #f8fafc;
    color: #10233f;
}

.account-card {
    width: min(100%, 460px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(16, 35, 63, 0.08);
    overflow: hidden;
}

.account-card--wide {
    width: min(100%, 520px);
}

.account-card--content {
    width: 100%;
    box-shadow: 0 12px 30px rgba(16, 35, 63, 0.06);
}

.account-card__header {
    padding: 1.6rem 1.6rem 1.2rem;
    border-top: 4px solid #cc2233;
    border-bottom: 1px solid #eef2f7;
}

.account-card__eyebrow {
    margin: 0 0 0.35rem;
    color: #cc2233;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-card h1,
.account-card h3 {
    margin: 0;
    color: #1f2937;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.account-card h3 {
    font-size: 1.45rem;
}

.account-card__header p:last-child {
    margin: 0.55rem 0 0;
    color: #4b5563;
    line-height: 1.5;
}

.account-card__body {
    padding: 1.6rem;
}

.account-card__body p {
    color: #4b5563;
    line-height: 1.55;
}

.account-form .form-control {
    border-color: #d1d5db;
    border-radius: 6px;
}

.account-form .form-control:focus {
    border-color: #cc2233;
    box-shadow: 0 0 0 0.2rem rgba(204, 34, 51, 0.16);
}

.account-form .form-floating > .form-control::placeholder {
    color: transparent;
    text-align: start;
}

.account-remember {
    margin: 0.25rem 0 1.1rem;
}

.account-remember .form-check-input:checked {
    background-color: #cc2233;
    border-color: #cc2233;
}

.account-submit {
    color: #fff;
    border-color: #cc2233;
    background: #cc2233;
    font-weight: 700;
}

.account-submit:hover,
.account-submit:focus-visible {
    color: #fff;
    border-color: #a01a28;
    background: #a01a28;
}

.account-submit.btn-outline-primary {
    color: #cc2233;
    border-color: #cc2233;
    background: #fff;
}

.account-submit.btn-outline-primary:hover,
.account-submit.btn-outline-primary:focus-visible,
.account-submit.btn-outline-primary:active {
    color: #fff;
    border-color: #a01a28;
    background: #a01a28;
}

.account-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 0.8rem;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.account-divider::before,
.account-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.account-passkey {
    display: block;
    width: fit-content;
    margin: 0 auto;
    color: #cc2233;
    font-weight: 700;
    text-decoration: none;
}

.account-passkey:hover,
.account-passkey:focus-visible {
    color: #a01a28;
    text-decoration: underline;
}

.account-links {
    display: grid;
    gap: 0.45rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid #e5e7eb;
}

.account-links a {
    color: #374151;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.account-links a:hover,
.account-links a:focus-visible {
    color: #cc2233;
    text-decoration: underline;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.account-actions .btn-primary {
    border-color: #cc2233;
    background: #cc2233;
    font-weight: 700;
}

.account-actions .btn-primary:hover,
.account-actions .btn-primary:focus-visible {
    border-color: #a01a28;
    background: #a01a28;
}

.account-actions .btn-link {
    color: #cc2233;
    font-weight: 700;
    text-decoration: none;
}

.account-actions .btn-link:hover,
.account-actions .btn-link:focus-visible {
    color: #a01a28;
    text-decoration: underline;
}

.account-section {
    margin-top: 1.3rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e5e7eb;
}

.account-section h4 {
    margin: 0 0 0.7rem;
    color: #1f2937;
    font-size: 1.05rem;
    font-weight: 800;
}

.account-setup-list {
    display: grid;
    gap: 1.35rem;
    margin: 0;
    padding-left: 1.35rem;
}

.account-setup-list > li {
    padding-left: 0.2rem;
}

.account-setup-list h4 {
    margin: 0 0 0.45rem;
    color: #1f2937;
    font-size: 1.05rem;
    font-weight: 800;
}

.account-qr {
    width: fit-content;
    max-width: 100%;
    margin: 0.9rem 0;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(16, 35, 63, 0.06);
}

.account-qr canvas,
.account-qr img,
.account-qr svg {
    display: block;
    width: min(210px, 100%);
    height: auto;
}

.account-qr table {
    display: block;
    width: min(210px, 100%) !important;
    height: auto !important;
    border-collapse: collapse;
}

.account-key {
    display: inline-block;
    max-width: 100%;
    padding: 0.45rem 0.65rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f8fafc;
    color: #1f2937;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
}

.account-verify-form {
    max-width: 380px;
}

.account-manage {
    padding: 2rem 0 4rem;
    color: #10233f;
}

.account-manage__header {
    margin-bottom: 1.4rem;
}

.account-manage__header h1 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
}

.account-manage__header p:last-child {
    max-width: 760px;
    margin: 0.55rem 0 0;
    color: #4b5563;
    line-height: 1.55;
}

.account-manage__layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.account-manage__nav {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 12px 30px rgba(16, 35, 63, 0.06);
}

.account-manage-nav {
    gap: 0.25rem;
}

.account-manage-nav .nav-link {
    border-radius: 6px;
    color: #374151;
    font-weight: 700;
}

.account-manage-nav .nav-link:hover,
.account-manage-nav .nav-link:focus-visible {
    background: #f8fafc;
    color: #cc2233;
}

.account-manage-nav .nav-link.active {
    background: #cc2233;
    color: #fff;
}

.account-manage__content {
    min-width: 0;
}

.account-data-table {
    margin-bottom: 0;
}

.account-data-table td {
    vertical-align: middle;
}

.account-data-table .account-actions {
    margin-top: 0;
}

.account-empty {
    margin: 0;
    color: #6b7280;
}

.account-confirmation {
    text-align: center;
}

.account-confirmation__icon {
    display: grid;
    width: 3.75rem;
    height: 3.75rem;
    margin: 0 auto 1rem;
    place-items: center;
    border: 1px solid;
    border-radius: 50%;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
}

.account-confirmation__icon--success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.account-confirmation__icon--email {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #cc2233;
}

.account-confirmation h2 {
    margin: 0 0 0.65rem;
    color: #1f2937;
    font-size: 1.35rem;
    font-weight: 800;
}

.account-confirmation p {
    margin-right: auto;
    margin-left: auto;
}

.account-confirmation__address {
    color: #1f2937;
    overflow-wrap: anywhere;
}

.account-confirmation__hint {
    max-width: 390px;
    font-size: 0.92rem;
}

.account-confirmation__developer-note {
    margin-top: 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #fde68a;
    border-radius: 6px;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.account-confirmation__developer-note a {
    color: #92400e;
    font-weight: 700;
}

.account-confirmation__actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.account-confirmation__secondary-action {
    color: #cc2233;
    border-color: #cc2233;
    font-weight: 700;
}

.account-confirmation__secondary-action:hover,
.account-confirmation__secondary-action:focus-visible {
    color: #fff;
    border-color: #a01a28;
    background: #a01a28;
}

.account-confirmation__text-link {
    width: fit-content;
    margin: 0.1rem auto 0;
    color: #4b5563;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.account-confirmation__text-link:hover,
.account-confirmation__text-link:focus-visible {
    color: #cc2233;
    text-decoration: underline;
}

.account-warning {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fef2f2;
    color: #991b1b;
}

.account-warning strong {
    color: inherit;
}

@media (max-width: 575.98px) {
    .account-page {
        padding: 1.5rem 0.75rem 3rem;
    }

    .account-card__header,
    .account-card__body {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
}

@media (max-width: 991.98px) {
    .account-manage__layout {
        grid-template-columns: 1fr;
    }
}
