/* ===== Mini Cart Panel ===== */

.mini-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 7, 18, 0.28);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 2700;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.mini-cart-panel {
    position: fixed;
    top: 18px;
    right: 18px;
    bottom: 18px;
    width: min(420px, calc(100vw - 36px));
    background:
            radial-gradient(circle at 20% 0%, rgba(216, 181, 109, 0.20), transparent 30%),
            linear-gradient(180deg, #FFFFFF, #FFF7E8);
    border: 1px solid rgba(216, 181, 109, 0.48);
    border-radius: 32px;
    box-shadow: 0 28px 80px rgba(84, 19, 35, 0.28);
    z-index: 2800;
    transform: translateX(calc(100% + 32px));
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.mini-cart-open .mini-cart-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.mini-cart-open .mini-cart-panel {
    transform: translateX(0);
}

.mini-cart-header {
    padding: 24px;
    background:
            linear-gradient(135deg, rgba(122, 30, 53, 0.98), rgba(84, 19, 35, 0.98));
    color: #FFFFFF;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.mini-cart-header span {
    color: #F7DFA8;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.mini-cart-header h2 {
    margin: 6px 0 0;
    font-size: 28px;
}

.mini-cart-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(247, 223, 168, 0.48);
    background: rgba(255, 255, 255, 0.12);
    color: #F7DFA8;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.mini-cart-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mini-cart-body::-webkit-scrollbar {
    width: 4px;
}

.mini-cart-body::-webkit-scrollbar-thumb {
    background: rgba(216, 181, 109, 0.26);
    border-radius: 999px;
}

.mini-cart-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(216, 181, 109, 0.36);
    border-radius: 24px;
    padding: 14px;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 14px;
    align-items: center;
    box-shadow: 0 12px 28px rgba(122, 30, 53, 0.07);
}

.mini-cart-thumb {
    height: 76px;
    border-radius: 20px;
    background:
            radial-gradient(circle at 30% 20%, rgba(216, 181, 109, 0.25), transparent 30%),
            linear-gradient(135deg, #FFF7E8, #F9E8EC);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.mini-cart-thumb span {
    color: #7A1E35;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    line-height: 1.2;
}

.mini-cart-info {
    min-width: 0;
}

.mini-cart-info h3 {
    color: #7A1E35;
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.25;
}

.mini-cart-info p {
    color: #7C6A6A;
    margin: 0 0 7px;
    line-height: 1.5;
}

.mini-cart-info strong {
    color: #4A1020;
}

.mini-cart-empty {
    flex: 1;
    padding: 34px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-cart-empty h3 {
    color: #7A1E35;
    margin: 0 0 10px;
}

.mini-cart-empty p {
    color: #7C6A6A;
    line-height: 1.7;
}

.mini-cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(216, 181, 109, 0.34);
    background: rgba(255, 249, 240, 0.92);
}

.mini-cart-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.mini-cart-total span {
    color: #7C6A6A;
    font-weight: 800;
}

.mini-cart-total strong {
    color: #4A1020;
    font-size: 26px;
    font-weight: 900;
}

.mini-cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mini-cart-actions .btn {
    text-align: center;
}

@media (max-width: 950px) {
    .mini-cart-panel {
        top: auto;
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-height: 82vh;
        border-radius: 28px;
        transform: translateY(calc(100% + 32px));
    }

    body.mini-cart-open .mini-cart-panel {
        transform: translateY(0);
    }

    .mini-cart-actions {
        grid-template-columns: 1fr;
    }

    .mini-cart-header h2 {
        font-size: 24px;
    }
}

/* ===== Mini cart quick controls ===== */

.mini-cart-control-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.mini-cart-control-row form {
    margin: 0;
}

.mini-cart-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    border: 1px solid rgba(216, 181, 109, 0.55);
    background: #FFF7E8;
    color: #7A1E35;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mini-cart-qty-btn:hover {
    background: #F7DFA8;
}

.mini-cart-quantity {
    min-width: 34px;
    height: 32px;
    border-radius: 12px;
    background: rgba(122, 30, 53, 0.08);
    color: #7A1E35;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mini-cart-remove-small {
    height: 32px;
    border: none;
    border-radius: 999px;
    padding: 0 12px;
    background: #FEE2E2;
    color: #991B1B;
    font-weight: 900;
    cursor: pointer;
}

.mini-cart-remove-small:hover {
    background: #FCA5A5;
}

@media (max-width: 950px) {
    .mini-cart-control-row {
        gap: 7px;
    }

    .mini-cart-remove-small {
        flex: 1;
    }
}

/* ===== Cart Toast ===== */

.cart-toast {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 3200;
    min-width: 310px;
    max-width: min(390px, calc(100vw - 36px));
    background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 232, 0.96));
    border: 1px solid rgba(216, 181, 109, 0.58);
    border-radius: 24px;
    box-shadow: 0 22px 58px rgba(84, 19, 35, 0.22);
    padding: 16px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    pointer-events: none;
    transition:
            opacity 0.22s ease,
            transform 0.22s ease;
}

.cart-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cart-toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7A1E35, #541323);
    color: #F7DFA8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 10px 24px rgba(122, 30, 53, 0.18);
}

.cart-toast.error .cart-toast-icon {
    background: linear-gradient(135deg, #991B1B, #7F1D1D);
    color: #FEE2E2;
}

.cart-toast strong {
    display: block;
    color: #7A1E35;
    margin-bottom: 4px;
}

.cart-toast p {
    color: #7C6A6A;
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

@media (max-width: 950px) {
    .cart-toast {
        left: 14px;
        right: 14px;
        bottom: 18px;
        min-width: 0;
        width: auto;
        border-radius: 22px;
    }

    body.mini-cart-open .cart-toast {
        bottom: calc(82vh + 24px);
    }
}

/* ===== Clear Cart ===== */

.mini-cart-clear-form,
.cart-clear-form {
    margin: 14px 0 0;
}

.mini-cart-clear-form button,
.cart-clear-form button {
    width: 100%;
    border: 1px solid #FCA5A5;
    background: #FEE2E2;
    color: #991B1B;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 900;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition:
            background 0.18s ease,
            transform 0.18s ease,
            box-shadow 0.18s ease;
}

.mini-cart-clear-form button:hover,
.cart-clear-form button:hover {
    background: #FCA5A5;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(153, 27, 27, 0.12);
}

.cart-clear-form {
    margin-top: 16px;
}

/* ===== Cart validation messages ===== */

.cart-message-area {
    margin: 24px 0;
}

.cart-alert {
    border-radius: 22px;
    padding: 16px 18px;
    line-height: 1.6;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(122, 30, 53, 0.07);
}

.cart-alert.error {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}

.cart-alert.success {
    background: #DCFCE7;
    border: 1px solid #86EFAC;
    color: #166534;
}

.cart-stock-warning {
    margin-top: 12px;
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FBBF24;
    border-radius: 16px;
    padding: 12px 14px;
    line-height: 1.5;
    font-weight: 800;
}

.cart-stock-warning strong {
    color: #7A1E35;
}

@media (max-width: 950px) {
    .cart-alert {
        border-radius: 18px;
    }
}

/* ===== User Auth / Profile ===== */

.auth-page-main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-auth-shell {
    width: min(1120px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background:
            radial-gradient(circle at top left, rgba(216, 181, 109, 0.22), transparent 30%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 232, 0.92));
    border: 1px solid rgba(216, 181, 109, 0.42);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(84, 19, 35, 0.14);
}

.user-auth-panel {
    position: relative;
    padding: 42px;
    transition:
            transform 0.3s ease,
            opacity 0.3s ease,
            filter 0.3s ease;
}

.login-panel {
    background: rgba(255, 255, 255, 0.82);
}

.register-panel {
    background:
            linear-gradient(135deg, rgba(122, 30, 53, 0.98), rgba(84, 19, 35, 0.98));
    color: #FFFFFF;
}

.register-panel .subtitle,
.register-panel h1 {
    color: #F7DFA8;
}

.register-panel .description,
.register-panel label,
.register-panel small {
    color: rgba(255, 247, 232, 0.82);
}

.auth-panel-inner {
    max-width: 470px;
    margin: 0 auto;
}

.user-auth-panel h1 {
    color: #7A1E35;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.05;
    margin: 0 0 14px;
}

.user-auth-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-auth-form .form-group {
    margin: 0;
}

.user-auth-form input,
.user-auth-form textarea,
.user-profile-card input,
.user-profile-card textarea {
    width: 100%;
    border: 1px solid rgba(216, 181, 109, 0.55);
    background: #FFF9F0;
    color: #1F1519;
    border-radius: 22px;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
}

.user-auth-form input:focus,
.user-auth-form textarea:focus,
.user-profile-card input:focus,
.user-profile-card textarea:focus {
    border-color: #7A1E35;
    background: #FFFFFF;
}

.register-panel input,
.register-panel textarea {
    background: rgba(255, 249, 240, 0.96);
}

.auth-switch-btn {
    margin-top: 22px;
    border: none;
    background: transparent;
    color: #7A1E35;
    font-weight: 900;
    cursor: pointer;
    font-family: Arial, sans-serif;
    text-decoration: underline;
}

.register-panel .auth-switch-btn {
    color: #F7DFA8;
}

.user-auth-shell.login-mode .register-panel {
    transform: scale(0.96);
    filter: saturate(0.88);
}

.user-auth-shell.register-mode .login-panel {
    transform: scale(0.96);
    filter: saturate(0.88);
}

.form-grid.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.user-profile-layout {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.user-profile-card,
.user-profile-side-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(216, 181, 109, 0.42);
    border-radius: 30px;
    padding: 26px;
    box-shadow: 0 18px 42px rgba(122, 30, 53, 0.08);
}

.user-profile-card h2,
.user-profile-side-card h2 {
    color: #7A1E35;
    margin: 0 0 20px;
}

.user-profile-card small {
    display: block;
    color: #7C6A6A;
    margin-top: 8px;
    line-height: 1.5;
}

.profile-side-link {
    display: block;
    text-decoration: none;
    background: #FFF9F0;
    border: 1px solid rgba(216, 181, 109, 0.36);
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 12px;
}

.profile-side-link strong {
    display: block;
    color: #7A1E35;
    margin-bottom: 6px;
}

.profile-side-link span {
    color: #7C6A6A;
    line-height: 1.5;
}

.profile-side-link:hover {
    background: #FFF7E8;
}

@media (max-width: 1100px) {
    .user-auth-shell,
    .user-profile-layout {
        grid-template-columns: 1fr;
    }

    .user-auth-shell {
        min-height: auto;
    }
}

@media (max-width: 950px) {
    .auth-page-main {
        display: block;
    }

    .user-auth-shell {
        border-radius: 28px;
    }

    .user-auth-panel,
    .user-profile-card,
    .user-profile-side-card {
        padding: 22px;
    }

    .form-grid.two {
        grid-template-columns: 1fr;
    }
}

/* ===== User Auth - Admin Style Expand / Collapse ===== */

.admin-style-auth {
    width: min(1180px, 100%);
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.55fr 0.75fr;
    background:
            radial-gradient(circle at top left, rgba(216, 181, 109, 0.22), transparent 30%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 232, 0.92));
    border: 1px solid rgba(216, 181, 109, 0.45);
    border-radius: 38px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(84, 19, 35, 0.16);
    transition: grid-template-columns 0.35s ease;
}

.admin-style-auth.register-mode {
    grid-template-columns: 0.75fr 1.55fr;
}

.admin-style-auth .user-auth-panel {
    min-width: 0;
    padding: 46px;
    display: flex;
    align-items: center;
    transition:
            background 0.35s ease,
            transform 0.35s ease,
            opacity 0.35s ease,
            filter 0.35s ease;
}

.admin-style-auth .auth-panel-inner {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    transition:
            transform 0.35s ease,
            opacity 0.35s ease;
}

.admin-style-auth .login-panel {
    background:
            radial-gradient(circle at 20% 0%, rgba(216, 181, 109, 0.20), transparent 32%),
            rgba(255, 255, 255, 0.9);
}

.admin-style-auth .register-panel {
    background:
            radial-gradient(circle at 82% 18%, rgba(247, 223, 168, 0.20), transparent 30%),
            linear-gradient(135deg, #7A1E35, #541323);
    color: #FFFFFF;
}

.admin-style-auth .user-auth-panel h1 {
    font-size: clamp(42px, 4.2vw, 64px);
    line-height: 1.02;
    margin-bottom: 14px;
}

.admin-style-auth .description {
    max-width: 460px;
}

.admin-style-auth .user-auth-form {
    transition:
            max-height 0.35s ease,
            opacity 0.28s ease,
            transform 0.35s ease;
    overflow: hidden;
}

.admin-style-auth .cart-alert {
    transition:
            max-height 0.35s ease,
            opacity 0.25s ease;
    overflow: hidden;
}

.admin-style-auth.login-mode .register-panel .user-auth-form,
.admin-style-auth.login-mode .register-panel .cart-alert,
.admin-style-auth.register-mode .login-panel .user-auth-form,
.admin-style-auth.register-mode .login-panel .cart-alert {
    max-height: 0;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    margin: 0;
}

.admin-style-auth.login-mode .login-panel .user-auth-form,
.admin-style-auth.register-mode .register-panel .user-auth-form {
    max-height: 900px;
    opacity: 1;
    transform: translateY(0);
}

.admin-style-auth.login-mode .register-panel .auth-panel-inner,
.admin-style-auth.register-mode .login-panel .auth-panel-inner {
    transform: scale(0.96);
}

.admin-style-auth.login-mode .register-panel .description,
.admin-style-auth.register-mode .login-panel .description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Switch button kiểu card giống admin */
.admin-style-auth .auth-switch-btn {
    width: 100%;
    margin-top: 24px;
    border: 1px solid rgba(216, 181, 109, 0.52);
    background:
            linear-gradient(135deg, rgba(255, 249, 240, 0.98), rgba(255, 247, 232, 0.88));
    color: #7A1E35;
    border-radius: 24px;
    padding: 16px 18px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(122, 30, 53, 0.08);
    transition:
            transform 0.18s ease,
            box-shadow 0.18s ease,
            background 0.18s ease;
}

.admin-style-auth .auth-switch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(122, 30, 53, 0.14);
}

.admin-style-auth .auth-switch-btn span {
    display: block;
    color: #7C6A6A;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 5px;
}

.admin-style-auth .auth-switch-btn strong {
    display: block;
    color: #7A1E35;
    font-size: 20px;
}

.admin-style-auth .register-panel .auth-switch-btn {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(247, 223, 168, 0.44);
}

.admin-style-auth .register-panel .auth-switch-btn span {
    color: rgba(255, 247, 232, 0.75);
}

.admin-style-auth .register-panel .auth-switch-btn strong {
    color: #F7DFA8;
}

/* Input mềm hơn theo tone admin */
.admin-style-auth .user-auth-form input,
.admin-style-auth .user-auth-form textarea {
    border-radius: 999px;
}

.admin-style-auth .user-auth-form textarea {
    border-radius: 24px;
}

.admin-style-auth .register-panel input,
.admin-style-auth .register-panel textarea {
    background: rgba(255, 249, 240, 0.96);
    border-color: rgba(247, 223, 168, 0.56);
}

/* Khi panel bị thu gọn, nội dung vẫn đẹp */
.admin-style-auth.login-mode .register-panel h1,
.admin-style-auth.register-mode .login-panel h1 {
    font-size: clamp(32px, 3vw, 44px);
}

.admin-style-auth.login-mode .register-panel,
.admin-style-auth.register-mode .login-panel {
    filter: saturate(0.92);
}

/* Mobile: không ép thu gọn ngang, xếp dọc cho dễ dùng */
@media (max-width: 1100px) {
    .admin-style-auth,
    .admin-style-auth.register-mode {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .admin-style-auth .user-auth-panel {
        padding: 34px;
    }

    .admin-style-auth.login-mode .register-panel .user-auth-form,
    .admin-style-auth.login-mode .register-panel .cart-alert,
    .admin-style-auth.register-mode .login-panel .user-auth-form,
    .admin-style-auth.register-mode .login-panel .cart-alert {
        max-height: 0;
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 950px) {
    .admin-style-auth {
        border-radius: 28px;
    }

    .admin-style-auth .user-auth-panel {
        padding: 24px;
    }

    .admin-style-auth .auth-switch-btn {
        border-radius: 20px;
    }
}

/* ===== User My Orders ===== */

.my-orders-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.my-order-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(216, 181, 109, 0.42);
    border-radius: 28px;
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr 220px auto;
    gap: 18px;
    align-items: center;
    box-shadow: 0 18px 42px rgba(122, 30, 53, 0.08);
}

.my-order-card h2 {
    color: #7A1E35;
    margin: 0 0 12px;
}

.my-order-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.my-order-meta span {
    background: #FFF9F0;
    border: 1px solid rgba(216, 181, 109, 0.36);
    color: #7A1E35;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 900;
}

.my-order-total {
    text-align: right;
}

.my-order-total span {
    display: block;
    color: #7C6A6A;
    font-weight: 900;
    margin-bottom: 6px;
}

.my-order-total strong {
    color: #4A1020;
    font-size: 24px;
}

@media (max-width: 1100px) {
    .my-order-card {
        grid-template-columns: 1fr;
    }

    .my-order-total {
        text-align: left;
    }

    .my-order-card .btn {
        width: 100%;
    }
}

/* ===== My Orders - Custom Studio Detail ===== */

.my-order-custom-note {
    margin-top: 12px;
    color: #7C6A6A;
    background: #FFF9F0;
    border: 1px solid rgba(216, 181, 109, 0.36);
    border-radius: 18px;
    padding: 12px 14px;
    line-height: 1.6;
    font-weight: 800;
}

.my-order-meta .custom-pill {
    background: linear-gradient(135deg, #FFF7E8, #F9E8EC);
    color: #7A1E35;
}

.my-order-meta .quote-pill {
    background: #FFFBEB;
    color: #92400E;
    border-color: #FBBF24;
}

.custom-order-detail-card,
.custom-no-items-card {
    margin: 26px 0;
    background:
            radial-gradient(circle at top left, rgba(216, 181, 109, 0.16), transparent 34%),
            rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(216, 181, 109, 0.42);
    border-radius: 30px;
    padding: 26px;
    box-shadow: 0 18px 42px rgba(122, 30, 53, 0.08);
}

.custom-order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.custom-order-detail-header h2,
.custom-no-items-card h2 {
    color: #7A1E35;
    margin: 0 0 8px;
    font-size: 28px;
}

.custom-order-detail-header p,
.custom-no-items-card p {
    color: #7C6A6A;
    line-height: 1.6;
    margin: 0;
}

.custom-quote-badge {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FBBF24;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 900;
    white-space: nowrap;
}

.custom-order-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.custom-order-info-box {
    background: #FFF9F0;
    border: 1px solid rgba(216, 181, 109, 0.36);
    border-radius: 22px;
    padding: 16px;
}

.custom-order-info-box span {
    display: block;
    color: #7C6A6A;
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 8px;
}

.custom-order-info-box strong {
    color: #7A1E35;
    line-height: 1.5;
    word-break: break-word;
}

.custom-order-note-box,
.custom-order-next-box {
    background: #FFF9F0;
    border: 1px solid rgba(216, 181, 109, 0.36);
    border-radius: 22px;
    padding: 18px;
    margin-top: 16px;
}

.custom-order-note-box h3,
.custom-order-next-box h3 {
    color: #7A1E35;
    margin: 0 0 10px;
}

.custom-order-note-box p,
.custom-order-next-box p {
    color: #7C6A6A;
    line-height: 1.7;
    margin: 0;
}

.custom-order-note-box p {
    white-space: pre-line;
}

@media (max-width: 1200px) {
    .custom-order-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .custom-order-detail-card,
    .custom-no-items-card {
        padding: 22px;
        border-radius: 26px;
    }

    .custom-order-detail-header {
        flex-direction: column;
    }

    .custom-order-info-grid {
        grid-template-columns: 1fr;
    }

    .custom-quote-badge {
        width: 100%;
        text-align: center;
    }
}

/* ===== User Password Change ===== */

.password-card {
    margin-top: 0;
}

.password-card input {
    font-family: Arial, sans-serif;
}

@media (min-width: 1101px) {
    .user-profile-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .password-card {
        grid-column: 1 / 2;
    }

    .user-profile-side-card {
        grid-column: 2 / 3;
        grid-row: 1 / span 2;
    }
}

/* ===== Custom Order AI Preview Images ===== */

.custom-ai-preview-grid {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.custom-ai-preview-box {
    background: #FFF9F0;
    border: 1px solid rgba(216, 181, 109, 0.42);
    border-radius: 24px;
    padding: 16px;
}

.custom-ai-preview-box span {
    display: block;
    color: #7A1E35;
    font-weight: 900;
    margin-bottom: 12px;
}

.custom-ai-preview-box img {
    width: 100%;
    height: 360px;
    object-fit: contain;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1px solid rgba(216, 181, 109, 0.28);
}

.custom-ai-preview-box.result {
    background:
            radial-gradient(circle at top right, rgba(216, 181, 109, 0.16), transparent 36%),
            #FFF9F0;
}

@media (max-width: 900px) {
    .custom-ai-preview-grid {
        grid-template-columns: 1fr;
    }

    .custom-ai-preview-box img {
        height: auto;
        max-height: 420px;
    }
}

/* ===== Social Login Phone Completion ===== */

.social-phone-warning {
    margin: 24px 0;
    background:
            radial-gradient(circle at top left, rgba(216, 181, 109, 0.18), transparent 34%),
            linear-gradient(135deg, rgba(255, 249, 240, 0.96), rgba(255, 247, 232, 0.92));
    border: 1px solid rgba(216, 181, 109, 0.48);
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 18px 42px rgba(122, 30, 53, 0.08);
}

.social-phone-warning h2 {
    color: #7A1E35;
    margin: 0 0 8px;
}

.social-phone-warning p {
    color: #7C6A6A;
    line-height: 1.7;
    margin: 0;
    font-weight: 800;
}

/* ===== Account Provider Info ===== */

.account-provider-card {
    margin: 0 0 18px;
    background: #FFF9F0;
    border: 1px solid rgba(216, 181, 109, 0.42);
    border-radius: 20px;
    padding: 14px 16px;
}

.account-provider-card span {
    display: block;
    color: #7C6A6A;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 6px;
}

.account-provider-card strong {
    color: #7A1E35;
    font-size: 18px;
}

/* ===== Social Account Linking ===== */

.social-link-card {
    margin-top: 0;
}

.social-link-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #FFF9F0;
    border: 1px solid rgba(216, 181, 109, 0.36);
    border-radius: 22px;
    padding: 16px;
}

.social-link-item strong {
    display: block;
    color: #7A1E35;
    margin-bottom: 5px;
}

.social-link-item span {
    color: #7C6A6A;
    font-weight: 800;
}

.social-linked-badge {
    background: #DCFCE7;
    color: #166534 !important;
    border: 1px solid #86EFAC;
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 900 !important;
}

@media (max-width: 800px) {
    .social-link-item {
        flex-direction: column;
        align-items: stretch;
    }

    .social-link-item .btn,
    .social-linked-badge {
        width: 100%;
        text-align: center;
    }
}

.danger-soft {
    background: #FEE2E2 !important;
    color: #991B1B !important;
    border-color: #FCA5A5 !important;
}

.social-link-item form {
    margin: 0;
}

.social-link-item form .btn {
    white-space: nowrap;
}
