.account-dashboard-page .box {
    padding: 26px;
}

.account-shell {
    max-width: 100%;
    margin: 0 auto;
}

.account-nav-shell {
    margin-bottom: 28px;
    padding: 12px;
    border: 1px solid rgba(22, 32, 42, 0.08);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 251, 0.98) 100%);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.05);
}

.account-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.account-nav-link,
.account-nav-button {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 74px;
    padding: 16px 18px;
    border: 1px solid #e9eef2;
    border-radius: 18px;
    background: #ffffff;
    color: #16202a;
    text-align: left;
    text-decoration: none;
    transition: 0.2s ease-in-out;
}

.account-nav-link:hover,
.account-nav-link:focus,
.account-nav-button:hover,
.account-nav-button:focus {
    color: #16202a;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.07);
}

.account-nav-link.is-active {
    border-color: rgba(180, 54, 69, 0.2);
    background: linear-gradient(135deg, rgba(255, 250, 250, 1) 0%, rgba(250, 244, 245, 1) 100%);
    box-shadow: 0 14px 28px rgba(180, 54, 69, 0.1);
}

.account-nav-button {
    border: 0;
    cursor: pointer;
}

.account-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(180, 54, 69, 0.08);
    color: var(--theme-color);
    font-size: 22px;
    flex: 0 0 44px;
}

.account-nav-button .account-nav-icon {
    background: rgba(22, 32, 42, 0.06);
    color: #16202a;
}

.account-nav-text {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.account-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    padding: 34px 38px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 249, 251, 0.98) 100%);
    box-shadow: 0 18px 40px rgba(18, 29, 43, 0.08);
}

.account-hero::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -30px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
}

.account-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--theme-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-eyebrow i {
    font-size: 16px;
}

.account-page-title {
    margin: 0 0 12px;
    color: #16202a;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.account-page-text {
    max-width: 660px;
    margin: 0;
    color: #66717f;
    font-size: 16px;
    line-height: 1.75;
}

.account-stat-grid {
    margin-bottom: 30px;
}

.account-stat-grid > [class*='col-'] {
    margin-bottom: 24px;
}

.account-stat-card {
    height: 100%;
    padding: 24px 24px 22px;
    border: 1px solid rgba(22, 32, 42, 0.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.05);
}

.account-stat-card.is-highlight {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 240, 241, 1) 100%);
    border-color: rgba(180, 54, 69, 0.12);
}

.account-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.account-stat-label {
    color: #7b8794;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.account-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(180, 54, 69, 0.08);
    color: var(--theme-color);
    font-size: 22px;
}

.account-stat-value {
    color: #16202a;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    word-break: break-word;
}

.account-stat-note {
    margin-top: 8px;
    color: #7b8794;
    font-size: 14px;
    line-height: 1.6;
}

.account-section {
    margin-bottom: 30px;
    padding: 28px 30px;
    border: 1px solid rgba(22, 32, 42, 0.08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.05);
}

.account-section:last-child {
    margin-bottom: 0;
}

.account-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.account-section-title {
    margin: 0 0 6px;
    color: #16202a;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.account-section-text {
    margin: 0;
    color: #6f7b88;
    font-size: 14px;
    line-height: 1.7;
}

.account-profile-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.account-avatar-panel,
.account-field-card,
.account-copy-card,
.account-items-list,
.account-order-card,
.account-mobile-card,
.account-empty {
    border: 1px solid #eef1f4;
    border-radius: 18px;
    background: #fafbfc;
}

.account-avatar-panel {
    padding: 24px;
    text-align: center;
}

.account-avatar-image {
    display: block;
    width: 95px;
    height: 95px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
}

.account-avatar-name {
    color: #16202a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.account-avatar-meta {
    margin-top: 6px;
    color: #7b8794;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.account-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.account-field-card {
    min-height: 98px;
    padding: 18px 20px;
}

.account-field-label {
    display: block;
    margin-bottom: 10px;
    color: #7b8794;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-field-value {
    display: block;
    color: #16202a;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.65;
    word-break: break-word;
}

.account-field-value.is-strong {
    color: var(--theme-color);
    font-size: 18px;
    font-weight: 700;
}

.account-copy-grid,
.account-order-grid,
.account-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.account-copy-card {
    padding: 20px;
}

.account-copy-label {
    display: block;
    margin-bottom: 10px;
    color: #44505c;
    font-size: 13px;
    font-weight: 700;
}

.account-copy-group {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.account-copy-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 54px;
    padding: 0 18px;
    border: 1px solid #dfe5ea;
    border-radius: 14px;
    background: #ffffff;
    color: #16202a;
    font-size: 15px;
    font-weight: 500;
}

.account-copy-action,
.account-link-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: var(--theme-color);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease-in-out;
}

.account-copy-action:hover,
.account-copy-action:focus,
.account-link-action:hover,
.account-link-action:focus {
    background: #962b39;
    color: #ffffff;
    text-decoration: none;
}

.account-copy-action:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.account-copy-hint {
    margin: 10px 0 0;
    color: #7b8794;
    font-size: 13px;
    line-height: 1.7;
}

.account-stack-space {
    margin-top: 22px;
}

.account-action-row {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.account-section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.account-table-wrap {
    border: 1px solid #eef1f4;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
}

.account-table {
    margin: 0;
}

.account-table thead th {
    padding: 18px 20px;
    border: 0;
    background: #fafbfc;
    color: #7b8794;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.account-table tbody td {
    padding: 20px;
    border-color: #eef1f4;
    color: #24303b;
    font-size: 15px;
    vertical-align: middle;
}

.account-table tbody tr:last-child td {
    border-bottom: 0;
}

.account-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.account-badge.is-earned,
.account-badge.is-success {
    background: rgba(40, 167, 69, 0.1);
    color: #1f8f48;
}

.account-badge.is-danger {
    background: rgba(220, 53, 69, 0.12);
    color: #c33a4a;
}

.account-badge.is-neutral {
    background: rgba(108, 117, 125, 0.12);
    color: #5c6770;
}

.account-badge.is-accent {
    background: rgba(180, 54, 69, 0.1);
    color: var(--theme-color);
}

.account-order-card {
    padding: 24px 24px 22px;
    margin-bottom: 20px;
}

.account-order-card:last-child {
    margin-bottom: 0;
}

.account-order-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.account-order-title {
    margin: 0 0 6px;
    color: #16202a;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.account-order-meta {
    color: #7b8794;
    font-size: 14px;
    line-height: 1.6;
}

.account-items-list {
    margin-top: 20px;
    padding: 20px;
}

.account-items-title {
    margin: 0 0 16px;
    color: #16202a;
    font-size: 16px;
    font-weight: 700;
}

.account-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #edf1f4;
}

.account-item:first-child {
    padding-top: 0;
}

.account-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.account-item-name {
    display: block;
    color: #16202a;
    font-weight: 700;
    line-height: 1.55;
}

.account-item-meta {
    display: block;
    margin-top: 4px;
    color: #7b8794;
    font-size: 14px;
    line-height: 1.6;
}

.account-item-price {
    white-space: nowrap;
    color: #16202a;
    font-weight: 700;
}

.account-empty {
    padding: 46px 28px;
    border-style: dashed;
    text-align: center;
}

.account-empty-card {
    max-width: 720px;
    margin: 0 auto;
}

.account-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    border-radius: 22px;
    background: rgba(180, 54, 69, 0.08);
    color: var(--theme-color);
    font-size: 30px;
}

.account-empty-title {
    margin: 0 0 10px;
    color: #16202a;
    font-size: 24px;
    font-weight: 700;
}

.account-empty-text {
    max-width: 520px;
    margin: 0 auto 22px;
    color: #6f7b88;
    font-size: 15px;
    line-height: 1.75;
}

.account-mobile-list {
    display: none;
}

@media (max-width: 1199px) {
    .account-shell {
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .account-dashboard-page .box {
        padding: 22px 18px;
    }

    .account-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-copy-grid,
    .account-order-grid,
    .account-profile-layout,
    .account-field-grid {
        grid-template-columns: 1fr;
    }

    .account-hero {
        padding: 28px 24px;
    }

    .account-page-title {
        font-size: 29px;
    }

    .account-section {
        padding: 24px 20px;
    }

    .account-table-wrap {
        display: none;
    }

    .account-mobile-list {
        display: block;
    }
}

@media (max-width: 767px) {
    .account-hero {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .account-page-title {
        font-size: 26px;
    }

    .account-page-text {
        font-size: 15px;
    }

    .account-section-head,
    .account-order-top {
        display: block;
    }

    .account-section-actions {
        margin-top: 18px;
    }

    .account-section-title,
    .account-order-title,
    .account-empty-title {
        font-size: 22px;
    }

    .account-copy-group,
    .account-item {
        flex-direction: column;
    }

    .account-copy-action,
    .account-link-action {
        width: 100%;
    }

    .account-empty {
        padding: 36px 18px;
    }
}

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

.auth-dashboard-page {
    padding: 50px 0;
}

.auth-shell {
    max-width: 780px;
    margin: 0 auto;
}

.auth-shell.is-wide {
    max-width: 940px;
}

.auth-hero {
    margin-bottom: 30px;
}

.auth-card {
    padding: 32px 34px;
}

.auth-card-head {
    margin-bottom: 24px;
}

.auth-card-title {
    margin: 0 0 8px;
    color: #16202a;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.auth-card-text {
    margin: 0;
    color: #6f7b88;
    font-size: 15px;
    line-height: 1.75;
}

.auth-switch-card,
.auth-message-card {
    border: 1px solid #eef1f4;
    border-radius: 18px;
    background: #fafbfc;
}

.auth-switch-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 20px 22px;
}

.auth-switch-label {
    display: block;
    margin-bottom: 6px;
    color: #7b8794;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-switch-title {
    margin: 0;
    color: #16202a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.auth-switch-text {
    margin: 6px 0 0;
    color: #6f7b88;
    font-size: 14px;
    line-height: 1.7;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

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

.auth-label {
    display: block;
    margin-bottom: 10px;
    color: #44505c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.auth-input,
.auth-textarea {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid #dfe5ea;
    border-radius: 16px;
    background: #ffffff;
    color: #16202a;
    font-size: 15px;
    font-weight: 500;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.auth-textarea {
    min-height: 132px;
    padding: 16px 18px;
    resize: vertical;
}

.auth-input:focus,
.auth-textarea:focus {
    outline: none;
    border-color: rgba(180, 54, 69, 0.36);
    box-shadow: 0 0 0 4px rgba(180, 54, 69, 0.08);
}

.auth-input.is-invalid,
.auth-textarea.is-invalid {
    border-color: rgba(195, 58, 74, 0.55);
    background: #fff9fa;
}

.auth-helper-text,
.auth-inline-note {
    margin-top: 8px;
    color: #7b8794;
    font-size: 13px;
    line-height: 1.7;
}

.auth-inline-note {
    margin: 0;
    font-size: 14px;
}

.auth-error {
    display: block;
    margin-top: 8px;
    color: #c33a4a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.auth-error strong {
    font-weight: 600;
}

.auth-status {
    margin-bottom: 22px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(40, 167, 69, 0.08);
    color: #1f8f48;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
}

.auth-status.is-info {
    background: rgba(180, 54, 69, 0.08);
    color: var(--theme-color);
}

.auth-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5c6770;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
}

.auth-checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--theme-color);
}

.auth-text-link {
    color: var(--theme-color);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.auth-text-link:hover,
.auth-text-link:focus {
    color: #962b39;
    text-decoration: none;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.auth-submit {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.auth-secondary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #edf1f4;
}

.auth-message-card {
    padding: 24px 26px;
}

.auth-message-card + .auth-message-card {
    margin-top: 16px;
}

.auth-message-title {
    margin: 0 0 8px;
    color: #16202a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.auth-message-text {
    margin: 0;
    color: #6f7b88;
    font-size: 14px;
    line-height: 1.75;
}

.auth-message-action {
    margin-top: 20px;
}

.auth-app-main {
    min-height: calc(100vh - 96px);
    background: linear-gradient(180deg, #fcfcfd 0%, #f6f7f9 100%);
}

.auth-app-navbar {
    border-bottom: 1px solid rgba(22, 32, 42, 0.06);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04) !important;
}

.auth-app-brand img {
    width: 120px;
}

@media (max-width: 991px) {
    .auth-dashboard-page {
        padding: 40px 0;
    }

    .auth-card {
        padding: 26px 22px;
    }

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

    .auth-card-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .auth-dashboard-page {
        padding: 30px 0;
    }

    .auth-card {
        padding: 22px 18px;
    }

    .auth-switch-card,
    .auth-secondary-row {
        display: block;
    }

    .auth-switch-card .auth-link-action,
    .auth-secondary-row .account-link-action {
        width: 100%;
        margin-top: 16px;
    }

    .auth-card-title {
        font-size: 22px;
    }

    .auth-message-card {
        padding: 20px 18px;
    }
}
