/* Khu vực tài khoản UNIT: bố cục phẳng, góc vuông và điều hướng bằng chữ. */
.account-hub {
    max-width: 1360px;
    margin: auto;
    padding: 56px 5% 88px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}
.account-sidebar { position: sticky; top: 140px; border-right: 1px solid #dce4ed; padding-right: 28px; }
.account-member { display: flex; align-items: center; gap: 12px; padding-bottom: 25px; margin-bottom: 14px; border-bottom: 1px solid #dce4ed; }
.account-member div { min-width: 0; }
.account-member strong { display: block; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.account-member small { display: block; font-size: 12px; color: #667580; margin-top: 4px; }
.account-avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: #102d4b; color: white; font-weight: 600; }
.account-navigation { display: grid; gap: 3px; }
.account-navigation a, .account-logout { display: block; padding: 12px 10px 12px 15px; border-left: 2px solid transparent; min-height: 44px; font-size: 14px; line-height: 1.4; font-weight: 400; text-decoration: none; color: #526474; transition: color .15s, background .15s; }
.account-navigation a:hover { color: #102d4b; background: #f7f9fc; }
.account-navigation .selected { color: #195dc1; border-left-color: #195dc1; font-weight: 600; background: #f7f9fc; }
.account-navigation form { border-top: 1px solid #dce4ed; margin-top: 18px; padding-top: 12px; }
.account-logout { width: 100%; border-top: 0; border-right: 0; border-bottom: 0; background: transparent; cursor: pointer; font-family: inherit; text-align: left; color: #a12631; }
.account-logout:hover { text-decoration: underline; text-underline-offset: 4px; }
.account-content { min-width: 0; }
.account-content h1 { font-size: clamp(28px, 3vw, 42px); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 16px; overflow-wrap: anywhere; }
.account-content h2 { font-size: 21px; font-weight: 500; line-height: 1.4; letter-spacing: -.015em; }
.account-content p { line-height: 1.75; }
.account-heading { margin-bottom: 32px; }
.account-heading p { max-width: 66ch; margin: 0; font-size: 14px; }
.account-heading form { margin-top: 20px; }
.account-heading .text-link { display: inline-block; margin-top: 12px; }
.account-content .button { border-radius: 0; min-height: 44px; padding: 12px 20px; font-size: 14px; font-weight: 500; box-shadow: none; }
.account-content .button.secondary { background: transparent; border-color: #bcc9d6; }
.account-content input, .account-content textarea, .account-content select { border-radius: 0; background: white; box-shadow: none; }
.account-content input:focus, .account-content textarea:focus { border-color: #195dc1; }
.account-content .form-panel { padding: 28px 0; border: 0; border-top: 1px solid #dce4ed; border-radius: 0; background: white; }
.account-content .form-panel h2 { margin: 0 0 24px; }
.account-content .badge { border-radius: 0; padding: 5px 9px; font-size: 12px; background: #f0f4f8; color: #294d70; }
.account-content .payment-option { margin: 18px 0; border-radius: 0; }
.account-content .payment-option input { width: auto; }
.account-hub :focus-visible { outline: 2px solid #195dc1; outline-offset: 3px; }
.account-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 38px; border-top: 1px solid #dce4ed; border-bottom: 1px solid #dce4ed; }
.account-stats a { display: flex; flex-direction: column; gap: 9px; padding: 23px 20px; margin: 0; border-right: 1px solid #dce4ed; text-decoration: none; min-width: 0; }
.account-stats a:first-child { padding-left: 0; }
.account-stats a:last-child { border-right: 0; }
.account-stats a:hover { background: #f7f9fc; }
.account-stats span { font-size: 13px; color: #526474; }
.account-stats strong { font-size: 28px; line-height: 1.2; font-weight: 500; font-variant-numeric: tabular-nums; color: #102d4b; }
.account-stats small { font-size: 12px; color: #667580; }
.account-profile-card { margin-bottom: 32px; }
.account-profile-card header, .account-address header, .account-order header, .account-order footer, .account-voucher header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.account-profile-card h2, .account-address h2 { margin: 0; }
.account-profile-card header .text-link { font-size: 13px; font-weight: 500; }
.account-profile-card dl { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0; margin: 18px 0; }
.account-profile-card dt, .account-profile-card dd { margin: 0; padding: 16px 0; border-bottom: 1px solid #edf1f5; line-height: 1.6; font-size: 14px; }
.account-profile-card dt { color: #667580; }
.account-profile-card dd { overflow-wrap: anywhere; }
.account-profile-card > .text-link { font-size: 13px; }
.account-wallet-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 28px; background: #f4f7fa; border-left: 2px solid #102d4b; }
.account-wallet-strip span { display: block; color: #526474; font-size: 13px; }
.account-wallet-strip strong { display: block; font-size: 30px; font-weight: 500; line-height: 1.4; margin-top: 6px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.account-order-tabs { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid #dce4ed; }
.account-order-tabs a { padding: 12px 15px; border-bottom: 2px solid transparent; text-decoration: none; font-size: 13px; color: #526474; }
.account-order-tabs .selected { border-bottom-color: #195dc1; color: #195dc1; font-weight: 600; }
.account-order { border-bottom: 1px solid #dce4ed; padding: 24px 0; }
.account-order header small { display: block; margin-top: 6px; color: #667580; }
.account-order p { margin: 20px 0; }
.account-order footer { font-size: 14px; }
.account-empty { padding: 32px 0; border-top: 1px solid #dce4ed; border-bottom: 1px solid #dce4ed; background: white; }
.account-empty h2 { margin: 0; }
.account-empty p { color: #667580; max-width: 60ch; margin: 14px 0 22px; }
.account-empty .text-link { display: block; font-size: 13px; margin-top: 18px; }
.account-hub .pagination a, .account-hub .pagination .current { border-radius: 0; }
.account-favorites-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.account-favorites-grid > div { min-width: 0; }
.account-favorites-grid form { margin-top: 12px; }
.account-hub .product-image .stock-label, .account-hub .image-caption { border-radius: 0; }
.account-hub .quick-view > span { display: none; }
.account-row-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.account-row-actions a { color: #195dc1; text-decoration: underline; text-underline-offset: 4px; }
.account-address { padding: 24px; border: 1px solid #dce4ed; margin-bottom: 16px; }
.account-address p { overflow-wrap: anywhere; font-size: 14px; }
.account-content .account-address-editor { margin-top: 30px; }
.account-notification { padding: 24px 0; border-bottom: 1px solid #dce4ed; }
.account-notification.unread { background: #f7f9fc; padding: 24px; border-left: 2px solid #195dc1; }
.account-notification .notification-dot { display: none; }
.account-notification h2 { margin: 0 0 10px; font-size: 18px; }
.account-notification p { margin: 0 0 14px; font-size: 14px; }
.account-notification small { font-size: 12px; color: #667580; }
.account-notification .account-row-actions { margin-top: 16px; }
.account-voucher-note { padding: 16px 20px; margin-bottom: 28px; background: #f4f7fa; border-left: 2px solid #195dc1; font-size: 14px; }
.account-voucher-note p { margin: 6px 0 0; }
.account-voucher-form { margin: 24px 0 36px; }
.account-voucher-form label { display: block; margin-bottom: 10px; font-weight: 500; }
.account-voucher-form > div { display: flex; gap: 10px; max-width: 500px; }
.account-voucher-form input { min-width: 0; }
.account-voucher-form button { flex: none; }
.account-voucher-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 22px 0 32px; }
.account-voucher { min-width: 0; padding: 24px; border: 1px solid #dce4ed; background: white; }
.account-voucher header > strong { font-size: 24px; font-weight: 500; }
.account-voucher p { font-size: 13px; color: #667580; }
.account-voucher small { display: block; font-size: 12px; color: #667580; margin: 14px 0; }
.account-voucher.expired { background: #f7f8fa; }
.account-voucher-code { display: block; margin: 16px 0; font-size: 18px; letter-spacing: .04em; overflow-wrap: anywhere; }
.account-voucher-ticket { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; position: relative; overflow: hidden; border-top: 1px dashed #b5c7d9; border-bottom: 1px dashed #b5c7d9; }
.account-voucher-ticket strong { overflow-wrap: anywhere; font-size: 17px; letter-spacing: .04em; }
.account-voucher-ticket button { flex: none; cursor: pointer; border: 0; border-left: 1px solid #dce4ed; padding: 8px 0 8px 14px; background: transparent; color: #195dc1; font-family: inherit; font-size: 13px; }
.account-voucher .coupon-status { display: block; font-size: 12px; color: #195dc1; min-height: 16px; margin-top: 8px; }
.account-hub .coupon-spark { display: none; }
.account-order-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 28px 0; padding: 24px; background: #f4f7fa; }
.account-order-info h2 { margin-top: 0; }
.account-order-info p { font-size: 14px; overflow-wrap: anywhere; }
.account-order-lines { border-top: 1px solid #dce4ed; border-bottom: 1px solid #dce4ed; margin-bottom: 24px; }
.account-order-lines > div { display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; border-bottom: 1px solid #edf1f5; }
.account-order-lines > div:last-child { border: 0; }
.account-order-lines small { display: block; margin-top: 8px; color: #667580; font-size: 12px; }
.account-order-lines > div > strong { flex: none; }
.account-order-total { font-size: 20px; }
.account-password-form { max-width: 620px; }
.account-password-form label { display: block; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.account-password-form small { display: block; margin-top: 8px; color: #667580; font-size: 12px; }
.account-password-form .form-grid label { margin: 0; }
.account-content .wallet-balance { border-radius: 0; background: #f4f7fa; color: #102d4b; padding: 32px; box-shadow: none; border-left: 2px solid #102d4b; }
.account-content .wallet-balance > strong { font-weight: 500; }
.account-content .wallet-balance p { color: #526474; }
.account-content .wallet-balance .button { background: #102d4b; color: white; border-color: #102d4b; }
.account-content .wallet-info h2, .account-content .wallet-history h2 { font-size: 21px; font-weight: 500; }
.account-content .wallet-info p { font-size: 14px; }
.account-content .wallet-amount > strong { font-size: 18px; font-weight: 500; }
.account-page .unit-header .header-icon, .account-page .header-notification-count, .account-page .unit-header .bag-link b, .account-page .header-customer a:focus-visible { border-radius: 0; }
.account-page .header-customer-avatar, .account-page .header-customer-avatar:focus-visible { border-radius: 50%; }
.account-page .unit-header.site-header { box-shadow: none; background: white; }
.account-page .unit-notification, .account-page .unit-notification .notification-icon, .account-page .unit-notification button { border-radius: 0; }
/* Các thao tác ngoài khu vực tài khoản giữ nguyên cách hiển thị hiện có. */
.product-favorite-action { margin: 16px 0; }
.product-favorite-action .button { display: inline-flex; align-items: center; gap: 10px; }
.product-favorite-action svg { width: 19px; height: 19px; }
.checkout-addresses { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.checkout-addresses a { border: 1px solid #b5ceef; border-radius: 8px; padding: 10px 14px; font-size: 14px; color: #195dc1; text-decoration: none; }
@media (max-width: 1100px) {
    .account-hub { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
    .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-stats a { padding: 20px; }
    .account-stats a:nth-child(2) { border-right: 0; }
    .account-stats a:nth-child(n+3) { border-top: 1px solid #dce4ed; }
    .account-stats a:nth-child(3) { padding-left: 0; }
    .account-favorites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-voucher-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .account-hub { grid-template-columns: 1fr; gap: 28px; padding: 30px 5% 52px; }
    .account-sidebar { position: static; padding: 0 0 20px; border-right: 0; border-bottom: 1px solid #dce4ed; }
    .account-member { padding-bottom: 16px; margin-bottom: 10px; }
    .account-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
    .account-navigation a, .account-logout { padding: 12px 9px; font-size: 13px; }
    .account-navigation form { margin: 0; border-top: 0; padding: 0; }
    .account-heading { margin-bottom: 24px; }
    .account-stats { margin-bottom: 30px; }
    .account-stats a { padding: 18px; }
    .account-stats small { font-size: 11px; }
    .account-profile-card header { align-items: start; }
    .account-profile-card dl { grid-template-columns: 1fr; }
    .account-profile-card dt { border: 0; padding: 16px 0 5px; font-size: 12px; }
    .account-profile-card dd { padding: 0 0 16px; }
    .account-wallet-strip { padding: 22px; flex-direction: column; align-items: start; gap: 18px; }
    .account-wallet-strip strong { font-size: 28px; }
    .account-address, .account-voucher, .account-notification.unread { padding: 20px; }
    .account-content .form-grid { grid-template-columns: 1fr; }
    .account-content .form-grid .full { grid-column: auto; }
    .account-voucher-form > div { gap: 8px; }
    .account-voucher-form .button { padding: 12px 15px; }
    .account-content .wallet-balance { padding: 24px; }
    .account-order footer { align-items: start; }
    .account-order strong { overflow-wrap: anywhere; }
}
@media (max-width: 540px) {
    .account-order-info { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
    .account-order-lines > div { flex-wrap: wrap; }
    .account-order-total { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .account-navigation a, .account-stats a { transition: none; }
}
.order-review-links { scroll-margin-top: 130px; }
.order-review-links .button { max-width: 100%; text-align: left; overflow-wrap: anywhere; }
