.account-page,
.order-detail-page,
.success-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px;
}

.account-card,
.order-detail-hero,
.order-detail-card,
.success-card {
    background: #fff;
    border: 1px solid #ebe4d8;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 26px rgba(55, 33, 25, .06);
}

.account-card h1,
.order-detail-hero h1,
.success-card h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
}

.subtitle,
.customer-phone,
.order-date,
.order-hero-meta,
.detail-item-meta {
    color: #756b63;
    font-size: 13px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 900;
}

.field input {
    width: 100%;
    padding: 13px;
    border: 1px solid #e4dace;
    border-radius: 14px;
    font-size: 15px;
}

.primary-btn,
.success-primary {
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    background: #1e1e1e;
    color: #fff;
    padding: 15px;
    border-radius: 16px;
    font-weight: 900;
    text-decoration: none;
}

.secondary-btn,
.success-secondary {
    display: block;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
    background: #f8f5ef;
    color: #1e1e1e;
    padding: 14px;
    border-radius: 16px;
    font-weight: 900;
    border: 1px solid #ebe4d8;
}

.account-header,
.section-header,
.order-row,
.summary-line,
.success-row,
.detail-item-row,
.detail-info-row,
.order-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.account-header,
.section-header,
.order-row {
    align-items: center;
}

.section-header a,
.logout-btn,
.order-back {
    color: #7a1f17;
    text-decoration: none;
    font-weight: 900;
}

.stats {
    margin-top: 16px;
}

.stat-card,
.success-info,
.detail-info-text,
.detail-comment,
.test-code {
    background: #f8f5ef;
    border-radius: 16px;
    padding: 14px;
}

.stat-title {
    color: #756b63;
    font-weight: 700;
}

.stat-value {
    font-size: 26px;
    font-weight: 900;
}

.order-row {
    padding: 14px 0;
    border-bottom: 1px solid #f0e7dc;
}

.order-row:last-child {
    border-bottom: none;
}

.order-link {
    color: inherit;
    text-decoration: none;
}

.order-number,
.detail-item-name {
    font-weight: 900;
}

.order-status,
.order-detail-status {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff1cc;
    color: #7a4d00;
    font-size: 13px;
    font-weight: 900;
}

.order-total {
    font-weight: 900;
    text-align: right;
}

.summary-line {
    padding: 9px 0;
}

.total-line {
    border-top: 1px solid #ebe4d8;
    margin-top: 8px;
    padding-top: 14px;
    font-size: 19px;
    font-weight: 900;
}

.success-card {
    text-align: center;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 28px;
    padding: 30px 22px;
}

.success-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e7f5e8;
    color: #16823a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
}

.success-subtitle {
    color: #756b63;
    line-height: 1.45;
    margin: 10px 0 18px;
}

.success-number {
    display: inline-block;
    background: #7a1f17;
    color: #fff;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 20px;
}

.success-info {
    margin-bottom: 18px;
    text-align: left;
}

.success-row,
.detail-item-row,
.detail-info-row {
    padding: 12px 0;
    border-bottom: 1px solid #ebe4d8;
}

.success-row:last-child,
.detail-item-row:last-child,
.detail-info-row:last-child {
    border-bottom: none;
}

.success-row span,
.detail-info-row span {
    color: #756b63;
    font-weight: 700;
}

.success-row strong,
.detail-info-row strong {
    text-align: right;
}

.success-actions {
    display: grid;
    gap: 10px;
}

.order-label {
    color: #756b63;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.order-hero-top h1 {
    margin: 4px 0 0;
    font-size: 34px;
    font-weight: 900;
}

.order-hero-meta {
    margin-top: 10px;
    font-weight: 700;
}

.detail-info-text {
    margin: 8px 0 4px;
    line-height: 1.45;
}

.detail-comment {
    margin-top: 12px;
}

.detail-comment p {
    margin: 6px 0 0;
}
.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.status-done {
    background: #e7f5e8;
    color: #16823a;
}

.status-cancelled {
    background: #ffd9d9;
    color: #9b1c1c;
}

.cancelled-row {
    background: #fff8f8;
}

.account-messages {
    margin-bottom: 18px;
}

.account-message {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #f3f4f6;
}

.account-message.success {
    background: #ecfdf3;
    color: #166534;
}

.account-message.error {
    background: #fef2f2;
    color: #b91c1c;
}

.section-description {
    margin-top: 4px;
    color: #6b7280;
    font-size: 14px;
}

.account-primary-button,
.account-secondary-button,
.account-address-button {
    border: 0;
    cursor: pointer;
    border-radius: 10px;
    font: inherit;
}

.account-primary-button {
    padding: 11px 16px;
    background: #111827;
    color: #ffffff;
}

.account-secondary-button {
    padding: 11px 14px;
    background: #f3f4f6;
    color: #111827;
}

.account-address-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.account-address-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.account-address-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.account-address-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #166534;
    font-size: 12px;
}

.account-address-text {
    margin-top: 7px;
}

.account-address-details {
    margin-top: 6px;
    color: #6b7280;
    font-size: 14px;
}

.account-address-actions {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.account-address-button {
    padding: 8px 11px;
    background: #f3f4f6;
    color: #111827;
}

.account-address-button.danger {
    background: #fef2f2;
    color: #b91c1c;
}

.account-address-form-wrapper {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
}

.account-address-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-address-form-header h3 {
    margin: 0;
}

.account-address-form-close {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.account-address-search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.account-address-status {
    min-height: 22px;
    margin-top: 10px;
    font-size: 14px;
}

.account-address-status.success {
    color: #166534;
}

.account-address-status.error {
    color: #b91c1c;
}

.account-address-map {
    width: 100%;
    height: 320px;
    margin-top: 12px;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f4f6;
}

.account-address-fields {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.account-address-submit {
    margin-top: 18px;
}

@media (max-width: 700px) {
    .account-address-card {
        flex-direction: column;
    }

    .account-address-actions {
        width: 100%;
    }

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

    .account-address-search-row {
        flex-direction: column;
    }

    .account-address-search-row button {
        width: 100%;
    }

    .account-address-map {
        height: 270px;
    }
}

@media (max-width: 520px) {
    .account-header,
    .section-header,
    .order-hero-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .success-row,
    .detail-info-row {
        flex-direction: column;
        gap: 4px;
    }

    .success-row strong,
    .detail-info-row strong {
        text-align: left;
    }
}