.account-page {
    padding: 32px 0 48px;
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 32px 28px;
}

.auth-card h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-card .subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.account-form .form-group {
    margin-bottom: 16px;
}

.account-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.account-form label .optional {
    font-weight: 400;
    color: #9ca3af;
}

.account-form input[type="text"],
.account-form input[type="tel"],
.account-form input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ddd;
    font-size: 16px;
    background: #fff;
}

.account-form input:focus {
    border-color: #153b16;
    outline: none;
}

.account-form input.is-invalid {
    border-color: #ef4444;
}

.account-form .field-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
}

.account-form .hint {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

.account-form .checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
}

.account-form .checkbox-row input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.account-form .checkbox-row a {
    color: #dc2626;
    text-decoration: underline;
}

.account-form .btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 8px;
}

.account-form .btn-dark {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.account-form .btn-dark:hover {
    background: #222;
}

.auth-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.auth-links a {
    color: #1a1a2e;
    text-decoration: underline;
}

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

.alert ul {
    margin: 0;
    padding-left: 18px;
}

.alert-error {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.alert-info {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #075985;
}

.alert-debug {
    background: #fef9c3;
    border-color: #fde047;
    color: #713f12;
}

.code-input {
    letter-spacing: 10px;
    text-align: center;
    font-size: 26px !important;
    font-weight: 600;
}

.resend-box {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #4b5563;
}

.resend-box .resend-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.resend-box button[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

.account-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.account-head h1 {
    font-size: 30px;
    font-weight: 700;
}

.account-head .account-phone {
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
}

.account-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.account-tabs a,
.account-tabs button {
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid #000;
    color: #000;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.account-tabs a.active,
.account-tabs a:hover {
    background: #000;
    color: #fff;
}

.account-tabs button:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.account-page .order-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-bottom: 14px;
}

.account-page .order-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f1f1;
}

.account-page .order-card-head .order-number {
    font-weight: 700;
    font-size: 17px;
}

.account-page .order-card-head .order-date {
    color: #6b7280;
    font-size: 13px;
    margin-left: 8px;
}

.account-page .order-status {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.account-page .order-status.status-new        { background: #fef3c7; color: #92400e; }
.account-page .order-status.status-processing { background: #dbeafe; color: #1e40af; }
.account-page .order-status.status-completed  { background: #dcfce7; color: #166534; }
.account-page .order-status.status-cancelled  { background: #f3f4f6; color: #6b7280; }

.account-page .order-items {
    padding: 6px 18px;
}

.account-page .order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.account-page .order-item:last-child {
    border-bottom: none;
}

.account-page .order-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    background: #f3f4f6;
    flex-shrink: 0;
}

.account-page .order-item .order-item-name {
    flex: 1;
    font-size: 14px;
    min-width: 0;
}

.account-page .order-item .order-item-name a {
    color: inherit;
}

.account-page .order-item .order-item-name small {
    display: block;
    color: #6b7280;
}

.account-page .order-item .order-item-sum {
    font-size: 14px;
    white-space: nowrap;
}

.account-page .order-card-foot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 18px;
    background: #fafafa;
    font-size: 14px;
    color: #4b5563;
}

.account-page .order-card-foot strong {
    color: #1a1a2e;
    font-size: 16px;
}

.account-page .empty-orders {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

.account-page .empty-orders .btn {
    margin-top: 14px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    align-items: start;
}

.profile-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 22px;
}

.profile-box h2 {
    font-size: 18px;
    margin-bottom: 6px;
}

.profile-box .box-note {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.45;
}

.account-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    text-decoration: none;
    padding: 12px !important;
    border-radius: 8px;
    font-size: 15px;
}

.account-btn svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.cart-rules-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 10px 12px;
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.cart-account-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
}

.cart-account-hint a {
    color: #1a1a2e;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 24px 16px;
    }

    .account-head h1 {
        font-size: 24px;
    }

    .account-btn .account-btn-text {
        display: none;
    }
}

.cart-checkout-form input[readonly] {
    background: #f3f4f6;
    color: #4b5563;
    cursor: not-allowed;
}

.auth-hint {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
}
