:root {
    --brand-magenta: #ff4d8d;
    --brand-magenta-hover: #e83e78;
    --brand-magenta-focus: rgba(255, 77, 141, 0.25);
    --member-footer-height: 64px;
    --public-footer-height: 56px;
}

@media (min-width: 769px) {
    :root {
        --member-footer-height: 56px;
    }
}

html {
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    overscroll-behavior-x: none;
}

body.site-layout {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    overscroll-behavior-x: none;
}

body.site-layout .layout-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: touch;
}

body.site-layout .layout-shell > main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 100%;
}

body.modal-open > .site-header-sticky,
body.modal-open > .layout-shell,
body.modal-open > footer {
    visibility: hidden !important;
    pointer-events: none !important;
}

body.modal-open:has(.provider-avatar-modal.show) > .site-header-sticky,
body.modal-open:has(.provider-avatar-modal.show) > .layout-shell,
body.modal-open:has(.provider-avatar-modal.show) > footer,
body.modal-open:has(.photo-lightbox-modal.show) > .site-header-sticky,
body.modal-open:has(.photo-lightbox-modal.show) > .layout-shell,
body.modal-open:has(.photo-lightbox-modal.show) > footer,
body.modal-open:has(.avatar-preview-modal.show) > .site-header-sticky,
body.modal-open:has(.avatar-preview-modal.show) > .layout-shell,
body.modal-open:has(.avatar-preview-modal.show) > footer {
    visibility: visible !important;
    pointer-events: auto !important;
}

body.modal-open .modal.show {
    visibility: visible !important;
    pointer-events: auto !important;
}

body.modal-open .layout-shell {
    overflow: hidden !important;
}

@media (max-width: 576px) {
    body.modal-open .modal.show:not(.provider-avatar-modal) {
        padding: 0 !important;
        overflow: hidden;
    }

    body.modal-open .modal.show:not(.provider-avatar-modal) .modal-dialog {
        width: 100%;
        max-width: none;
        height: 100%;
        margin: 0;
        display: flex;
        align-items: stretch;
    }

    body.modal-open .modal.show .modal-content:not(.online-detail-lightbox-content):not(.bg-transparent) {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
        border: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    body.modal-open .modal.show:not(.provider-avatar-modal):not(.photo-lightbox-modal) .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.site-header-sticky {
    position: relative;
    z-index: 1040;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.96);
}

.selected-category-scroll,
.dz-scroll-wrapper {
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
}

.selected-category-tag-remove {
    color: #fff !important;
}

@media (max-width: 576px) {
    main.container {
        padding-left: calc(var(--bs-gutter-x, 0.75rem) / 2);
        padding-right: calc(var(--bs-gutter-x, 0.75rem) / 2);
    }

    .modal-content:not(.online-detail-lightbox-content):not(.bg-transparent) .modal-header {
        padding: 0.55rem 0.75rem;
    }

    .modal-content:not(.online-detail-lightbox-content):not(.bg-transparent) .modal-title,
    .modal-content:not(.online-detail-lightbox-content):not(.bg-transparent) h4.modal-title,
    .modal-content:not(.online-detail-lightbox-content):not(.bg-transparent) h5.modal-title {
        font-size: 1rem;
    }

    .modal-content:not(.online-detail-lightbox-content):not(.bg-transparent) .modal-body {
        padding: 0.65rem 0.75rem !important;
    }

    .modal-content:not(.online-detail-lightbox-content):not(.bg-transparent) .modal-footer {
        padding: 0.45rem 0.75rem;
        gap: 0.4rem;
    }

    .modal .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }

    .modal .form-control,
    .modal .form-select,
    .modal .input-group-text {
        font-size: 0.85rem;
        padding: 0.28rem 0.5rem;
        min-height: 2rem;
    }

    .modal .mb-2,
    .modal .mb-3 {
        margin-bottom: 0.45rem !important;
    }

    .modal .btn {
        font-size: 0.85rem;
        padding: 0.28rem 0.7rem;
    }

    .modal .btn-close {
        transform: scale(0.82);
    }

    .modal textarea.form-control {
        min-height: 4.2rem;
    }

    body.site-layout-member .modal {
        padding-bottom: calc(var(--member-footer-height) + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.modal-open.site-layout-member .modal {
        padding-bottom: 0 !important;
    }

    body.site-layout-member .modal-dialog,
    body.site-layout-member .modal-content {
        max-height: calc(100dvh - var(--member-footer-height) - env(safe-area-inset-bottom, 0px) - 1rem);
    }

    body.modal-open .modal-dialog,
    body.modal-open .modal-content:not(.online-detail-lightbox-content):not(.bg-transparent) {
        max-height: none;
    }

    body.site-layout-member .modal-body {
        max-height: none;
    }
}

body.site-layout-public {
    padding-bottom: calc(var(--public-footer-height) + env(safe-area-inset-bottom, 0px));
}

footer.site-public-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 1020;
    flex-shrink: 0;
    margin-top: 0;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.site-public-footer-text {
    display: inline-block;
    line-height: 1.5;
    white-space: normal;
}

body.site-layout-member {
    padding-bottom: calc(var(--member-footer-height) + env(safe-area-inset-bottom, 0px));
}

body.keyboard-open .layout-shell {
    padding-bottom: var(--keyboard-inset, 0px);
}

@media (max-width: 767.98px) {
    body.keyboard-open.site-layout-member,
    body.keyboard-open.site-layout-public {
        padding-bottom: 0;
    }

    body.keyboard-open footer.member-bottom-footer,
    body.keyboard-open footer.site-public-footer {
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media (max-width: 767.98px) {
    input.form-control,
    select.form-select,
    textarea.form-control {
        font-size: 16px !important;
    }
}

footer.member-bottom-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 1030;
    margin-top: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.ios-push-hint {
    position: relative;
    z-index: 1;
    padding: 0.65rem 0.85rem;
    background: linear-gradient(90deg, #e91e63, #ff4d8d);
    color: #fff;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.25);
}

.ios-push-hint-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    max-width: 720px;
    margin: 0 auto;
    font-size: 0.85rem;
    line-height: 1.45;
}

.ios-push-hint-inner .bi {
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.ios-push-hint-close {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #fff;
    opacity: 0.9;
    padding: 0;
    line-height: 1;
    font-size: 1.25rem;
}

.ios-push-hint-close:hover {
    opacity: 1;
}

.navbar-custom {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 100%;
}

.navbar-custom .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #e91e63 !important;
    font-weight: 600;
}

.navbar-custom .nav-link-icon {
    font-size: 1rem;
    line-height: 1;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    color: #c2185b !important;
}

.navbar-custom .navbar-toggler {
    padding: .4rem .55rem;
    color: #e91e63;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem var(--brand-magenta-focus);
}

.navbar-custom .navbar-toggler-icon {
    width: 1.35em;
    height: 1.35em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e91e63' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.public-navbar-mobile-actions {
    gap: 0;
}

.header-login-link {
    display: inline-flex;
    align-items: center;
    padding: .5rem .4rem;
    color: #e91e63;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}

.header-login-link:hover,
.header-login-link:focus {
    color: #c2185b;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .site-layout-public .site-brand {
        margin-right: .25rem;
    }
}

@media (max-width: 380px) {
    .header-login-link {
        padding: .4rem .28rem;
        font-size: .82rem;
    }
}

.header-notification-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-width: 42px;
    padding: .5rem 1rem;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    color: #e91e63 !important;
    font-size: 1.15rem !important;
    text-decoration: none !important;
    cursor: pointer;
}

.header-notification-button:hover,
.header-notification-button:focus,
.header-notification-button:focus-visible,
.header-notification-button:active,
.header-notification-dropdown.show > .header-notification-button {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #c2185b !important;
}

.header-notification-label {
    display: none;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
}

.header-notification-bell {
    display: inline-block;
    font-size: 1.25rem;
    line-height: 1;
}

.header-notification-badge {
    position: absolute;
    top: 1px;
    right: -1px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
}

.header-notification-menu {
    width: min(390px, calc(100vw - 24px));
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(24, 28, 33, .18);
}

.header-notification-heading,
.header-notification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
    background: #fff;
}

.header-notification-heading {
    border-bottom: 1px solid #f0f0f0;
}

.header-notification-heading a,
.header-notification-footer a {
    color: var(--brand-magenta);
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
}

.header-notification-footer {
    justify-content: center;
    border-top: 1px solid #f0f0f0;
}

.header-notification-list {
    max-height: 490px;
    overflow-y: auto;
    background: #fff;
}

.header-notification-item {
    display: flex;
    gap: .75rem;
    padding: .85rem 1rem;
    color: #272727;
    text-decoration: none;
    border-bottom: 1px solid #f4f4f4;
}

.header-notification-item:hover {
    color: #272727;
    background: #fff6fa;
}

.header-notification-icon,
.notification-type-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.header-notification-icon.is-booking,
.notification-type-icon.is-booking {
    color: #fff;
    background: var(--brand-magenta);
}

.header-notification-icon.is-chat,
.notification-type-icon.is-chat {
    color: #fff;
    background: #6f42c1;
}

.header-notification-icon.is-admin,
.notification-type-icon.is-admin {
    color: #fff;
    background: #0d6efd;
}

.header-notification-content {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.header-notification-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .2rem .35rem;
    font-weight: 750;
}

.header-notification-summary {
    margin-top: .15rem;
    color: #666;
    font-size: .875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-notification-time {
    margin-top: .25rem;
    color: #999;
    font-size: .75rem;
}

.header-notification-loading,
.header-notification-empty {
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: #888;
}

.header-notification-empty {
    flex-direction: column;
}

.header-notification-empty .bi {
    color: var(--brand-magenta);
    font-size: 1.5rem;
}

.notification-page {
    max-width: 860px;
    margin: 0 auto;
}

/* 會員功能頁標題（圖示 + 文字，如：預約管理、我的刊登） */
.member-page-title,
h3.fw-bold.text-pinkcolor {
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
}

    .member-page-title > .bi,
    h3.fw-bold.text-pinkcolor > .bi {
        line-height: 1;
        flex-shrink: 0;
    }

.notification-page-header h2 {
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
}

    .notification-page-header h2 > .bi {
        line-height: 1;
        flex-shrink: 0;
    }

.notification-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.notification-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 1rem;
}

.notification-category-tab {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid #ffd0e2;
    border-radius: 999px;
    background: #fff;
    color: #c2185b;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.notification-category-tab:hover {
    color: #c2185b;
    background: #fff0f6;
}

.notification-category-tab.is-active {
    background: var(--brand-magenta);
    border-color: var(--brand-magenta);
    color: #fff;
}

.notification-category-tab.is-active:hover {
    color: #fff;
    background: var(--brand-magenta-hover);
    border-color: var(--brand-magenta-hover);
}

.notification-cat-tag {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.45;
}

.notification-cat-tag.is-booking {
    background: #fff0f6;
    color: #c2185b;
}

.notification-cat-tag.is-system {
    background: #e8f1ff;
    color: #0d6efd;
}

.btn-outline-pink {
    color: var(--brand-magenta) !important;
    background: #fff !important;
    border: 1px solid var(--brand-magenta) !important;
}

.notification-list {
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(30, 35, 40, .08);
}

.notification-list-item {
    display: flex;
    align-items: center;
    gap: .35rem;
    border-bottom: 1px solid #eee;
}

.notification-list-item:last-child {
    border-bottom: 0;
}

.notification-list-link {
    display: flex;
    flex: 1;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    padding: 1rem 0 1rem 1.15rem;
    color: #262626;
    text-decoration: none;
}

.notification-list-item:hover .notification-list-link {
    color: #262626;
}

.notification-list-item:hover {
    background: #fff7fa;
}

.notification-list-item.is-unread {
    background: #fff3f8;
}

.notification-list-delete-form {
    flex: 0 0 auto;
    margin: 0;
    padding-right: .85rem;
}

.notification-list-item .notification-list-delete {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    margin-right: .85rem;
}

.notification-list-delete:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.notification-list-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #bbb;
    font-size: 1rem;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}

.notification-list-delete:hover,
.notification-list-delete:focus {
    color: #dc3545;
    background: rgba(220, 53, 69, .08);
}

.notification-list-content {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.notification-list-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .28rem .4rem;
    font-weight: 750;
}

.notification-list-title-text {
    min-width: 0;
}

.notification-list-summary {
    margin-top: .15rem;
    color: #666;
}

.notification-list-time {
    margin-top: .35rem;
    color: #999;
    font-size: .8rem;
}

.notification-unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: .35rem;
    border-radius: 50%;
    background: var(--brand-magenta);
}

.notification-list-chevron {
    color: #bbb;
}

.notification-empty {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .75rem;
    color: #888;
    background: #fff;
    border-radius: 16px;
}

.notification-empty .bi {
    color: #ccc;
    font-size: 3rem;
}

@media (min-width: 992px) {
    .header-notification-button {
        min-width: 0;
        font-size: 1rem !important;
    }

    .header-notification-label {
        display: inline;
    }

    .header-notification-badge {
        top: 2px;
        right: 4px;
    }
}

.member-navbar-mobile-actions {
    gap: 0;
}

.member-navbar-mobile-actions .header-notification-button,
.member-navbar-mobile-actions .navbar-toggler {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0 !important;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.member-navbar-mobile-actions .header-search-button .bi,
.member-navbar-mobile-actions .header-notification-bell {
    font-size: 1.25rem;
    line-height: 1;
}

.member-navbar-mobile-actions .navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.header-category-search-content {
    background: #fff;
}

@media (min-width: 992px) {
    #headerCategorySearchModal .header-category-search-content {
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12);
    }
}

.header-category-search-input-wrap {
    position: relative;
}

.header-category-search-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 44px;
    background: #fff;
    border: 1px solid #f0b7cc;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-category-search-bar:focus-within {
    border-color: var(--brand-magenta);
    box-shadow: 0 0 0 0.2rem var(--brand-magenta-focus);
}

.header-category-search-bar .post-list-search-input.form-control.input-pink {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 44px;
    margin: 0;
    padding: 0.55rem 0.9rem;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent;
    font-size: 16px;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
}

.header-category-search-bar .post-list-search-input.form-control.input-pink:focus {
    border: 0 !important;
    box-shadow: none !important;
    outline: none;
}

.header-category-search-bar .post-list-search-input.form-control.input-pink::-webkit-search-decoration,
.header-category-search-bar .post-list-search-input.form-control.input-pink::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.header-category-search-bar .post-list-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    min-width: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid #f3d6e3;
    border-radius: 0;
    background: #fff;
    color: #8a8a8a;
    line-height: 1;
}

.header-category-search-bar .post-list-search-clear:hover,
.header-category-search-bar .post-list-search-clear:focus {
    color: #555;
    background: #faf6f8;
    outline: none;
}

.header-category-search-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    background: #fff;
    border: 1px solid #f0d4e0;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(232, 62, 140, 0.12);
    max-height: min(280px, 40vh);
    overflow-y: auto;
}

.header-category-search-suggest-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 0;
    border-bottom: 1px solid #f7e6ee;
    background: #fff;
    text-align: left;
    color: #222;
}

.header-category-search-suggest-item:last-child {
    border-bottom: 0;
}

.header-category-search-suggest-item small {
    color: #999;
    font-size: 0.75rem;
}

.header-category-search-suggest-item:hover,
.header-category-search-suggest-item:focus {
    background: #fff6fa;
}

.header-category-search-suggest-empty {
    padding: 0.75rem 0.9rem;
    color: #999;
    font-size: 0.875rem;
}

.header-category-search-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.member-navbar-mobile-actions .header-notification-button {
    padding: 0;
}

@media (max-width: 991.98px) {
    .header-notification-button {
        justify-content: center;
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
    }

    .member-navbar-mobile-actions .header-notification-label {
        display: none;
    }

    .member-navbar-mobile-actions .header-notification-menu {
        position: fixed !important;
        top: 58px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        transform: none !important;
    }

    .member-navbar-mobile-actions .header-notification-list {
        max-height: min(490px, calc(100dvh - 170px));
    }

    .header-notification-menu {
        margin-top: .4rem;
    }

    .header-notification-heading strong {
        font-size: .875rem;
    }

    .header-notification-heading a,
    .header-notification-footer a {
        font-size: .8125rem;
    }

    .header-notification-title {
        font-size: .875rem;
    }

    .header-notification-summary {
        font-size: .8125rem;
    }
}

@media (max-width: 575.98px) {
    .member-page-title,
    h3.fw-bold.text-pinkcolor,
    .notification-page-header h2 {
        font-size: 1.125rem;
    }

        .member-page-title > .bi,
        h3.fw-bold.text-pinkcolor > .bi,
        .notification-page-header h2 > .bi {
            font-size: 1rem;
        }

    .notification-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .notification-read-all-wrap .btn-outline-pink {
        font-size: .8125rem;
        padding: .3rem .7rem;
        line-height: 1.3;
    }

    .notification-list-title {
        font-size: .875rem;
    }

    .notification-list-summary {
        font-size: .8125rem;
    }

    .notification-list-link {
        padding: .9rem 0 .9rem .9rem;
    }

    .notification-list-item .notification-list-delete {
        margin-right: .65rem;
    }
}

.site-brand {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    padding: 4px 0 !important;
    line-height: 1;
}

.site-brand img {
    display: block;
    width: 142px;
    height: 38px;
    object-fit: contain;
}

.site-brand:focus-visible {
    outline: 3px solid rgba(139, 77, 255, 0.45);
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .site-brand img {
        width: 120px;
        height: 32px;
    }
}

.cur-menu-bg {
    background-color: var(--brand-magenta);
}
/* ???s??? */
.btn-pinkcolor, .btn-pinkcolor:focus, .btn-pinkcolor:active {
    background-color: var(--brand-magenta);
    color: #fff;
    border-color: var(--brand-magenta);
}

    .btn-pinkcolor:hover {
        background-color: var(--brand-magenta-hover);
        color: #fff;
        border-color: var(--brand-magenta-hover);
    }

.btn-pink {
    background-color: var(--brand-magenta);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .btn-pink:hover,
    .btn.btn-pink:hover,
    .btn.btn-pink:focus,
    .btn.btn-pink:active {
        background-color: var(--brand-magenta-hover);
        color: #fff;
    }

/* ?????????r ?X ???? */
.site-price {
    color: #dc3545 !important;
    font-weight: 700;
}

.price-type-prefix,
.online-detail-price-prefix {
    color: #212529 !important;
    font-weight: 600;
    margin-right: 0.3rem;
}

.post-grid-price .price-type-prefix,
.booking-detail-price .price-type-prefix,
.my-post-price .price-type-prefix,
.chat-title .price-type-prefix {
    font-size: 0.82em;
}

.text-pinkcolor {
    color: #e83e8c !important;
}

/* ?A???????T?d */
.provider-avatar-btn {
    border: none;
    background: transparent;
    padding: 0;
    flex-shrink: 0;
    cursor: zoom-in;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.provider-avatar {
    width: 96px;
    height: 96px;
    max-width: 96px;
    max-height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1f1f1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: block;
}

@media (max-width: 576px) {
    .provider-avatar-btn {
        width: 72px;
        height: 72px;
    }

    .provider-avatar {
        width: 72px;
        height: 72px;
        max-width: 72px;
        max-height: 72px;
        border-width: 1.5px;
    }
}

.provider-avatar-modal .modal-dialog {
    max-width: min(92vw, 520px);
    margin: 0 auto;
}

.provider-avatar-modal .modal-content {
    background: transparent !important;
    border: 0;
    box-shadow: none;
}

.provider-avatar-modal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.provider-avatar-preview {
    max-width: 100%;
    max-height: min(80vh, 80dvh);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.provider-avatar-close {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    cursor: pointer;
}

.provider-avatar-close:hover,
.provider-avatar-close:focus {
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
}

@media (max-width: 576px) {
    body.modal-open .provider-avatar-modal.modal.show {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 3.25rem 0.75rem 1.25rem !important;
        overflow: hidden;
    }

    body.modal-open .provider-avatar-modal .modal-dialog {
        width: auto;
        max-width: min(92vw, 520px);
        height: auto;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.modal-open .provider-avatar-modal .modal-body {
        flex: 0 0 auto;
        overflow: visible;
        min-height: 0;
    }

    .provider-avatar-preview {
        max-height: min(72vh, 72dvh);
    }
}

.provider-info-label {
    color: #6c757d;
    min-width: 3rem;
}

.provider-info-value {
    font-weight: 500;
}

.provider-bio {
    white-space: pre-wrap;
    word-break: break-word;
}

/* 最愛按鈕：方形外框、愛心置中（Favorites、OnlineDetail） */
.favorite-toggle-btn {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0 !important;
    border-radius: 0.25rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 0;
    text-align: center;
    box-sizing: border-box;
}

    .favorite-toggle-btn.btn-sm {
        --bs-btn-padding-x: 0;
        --bs-btn-padding-y: 0;
    }

    .favorite-toggle-btn .bi {
        font-size: 1rem;
        line-height: 1;
        display: block;
        margin: 0 !important;
    }

    .favorite-toggle-btn.is-favorited {
        color: #e83e8c;
        border-color: #ffd0e2;
        background: #fff0f6;
    }

/* 大頭照列右側愛心：大畫面時與左側頭像+資訊區垂直置中 */
@media (min-width: 576px) {
    .provider-favorite-row > .favorite-toggle-btn {
        align-self: center;
    }
}

@media (max-width: 575.98px) {
    .provider-favorite-row > .favorite-toggle-btn {
        align-self: flex-start;
    }
}

/* ????G */
.l1-chip.active {
    background-color: var(--brand-magenta);
    color: #fff;
    border-color: var(--brand-magenta);
}

.l2-pill.active {
    background-color: var(--brand-magenta);
    color: #fff;
    border-color: var(--brand-magenta);
}
/* ??????A??K?}?? */
.l2-pill {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-skill-rows {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.post-skill-empty {
    border: 1px dashed #f0b7cc;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    color: #9a6b7d;
    font-size: 0.9rem;
    text-align: center;
    background: #fff8fb;
}

.post-skill-row {
    border: 1px solid #f3c2d4;
    border-radius: 16px;
    padding: 0.8rem 0.9rem 0.9rem;
    background: linear-gradient(180deg, #fffafc 0%, #fff 55%);
    box-shadow: 0 1px 4px rgba(255, 77, 141, 0.06);
}

.post-skill-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.post-skill-name {
    display: inline-block;
    max-width: calc(100% - 44px);
    font-weight: 700;
    font-size: 0.95rem;
    color: #c74a7a;
    background: #ffe4ef;
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-skill-remove {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff0f5;
    color: #c74a7a;
    line-height: 1;
}

.post-skill-remove:hover,
.post-skill-remove:focus {
    background: #ffd6e6;
    color: #a83264;
}

.post-skill-row-fields {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: nowrap;
}

.post-skill-type-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 148px;
    padding: 3px;
    border: 1px solid #f0b7cc;
    border-radius: 999px;
    background: #fff8fb;
    overflow: hidden;
}

.post-skill-type-btn {
    flex: 1 1 0;
    margin: 0;
    border: none;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: transparent;
    color: #8a5a6c;
    font-size: 0.88rem;
    line-height: 1.2;
    box-shadow: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.post-skill-type-btn.is-active {
    background: var(--brand-magenta);
    color: #fff;
    font-weight: 700;
}

.post-skill-type-btn:focus,
.post-skill-type-btn:focus-visible,
.post-skill-type-btn:active {
    outline: none;
    box-shadow: none;
}

.post-skill-price-input {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}

.post-skill-price-input .input-group-text {
    background-color: var(--brand-magenta);
    color: #fff;
    border-color: var(--brand-magenta);
    font-weight: 600;
}

.post-skill-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    margin-top: 0.7rem;
    min-height: 42px;
    border: 1px dashed #f0b7cc;
    border-radius: 12px;
    background: #fff8fb;
    color: #c74a7a;
    font-weight: 600;
}

.post-skill-add-btn:hover,
.post-skill-add-btn:focus {
    background: #ffe4ef;
    border-color: var(--brand-magenta);
    color: #a83264;
}

@media (max-width: 575.98px) {
    .post-skill-rows {
        gap: 0.65rem;
    }

    .post-skill-row {
        padding: 0.75rem 0.8rem 0.85rem;
        border-radius: 14px;
    }

    .post-skill-row-fields {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }

    .post-skill-type-toggle {
        width: 100%;
        min-width: 0;
        padding: 2px;
    }

    .post-skill-type-btn {
        padding: 0.22rem 0.5rem;
        font-size: 0.78rem;
        min-height: 32px;
    }

    .post-skill-price-input .form-control {
        min-height: 42px;
    }

    .post-skill-add-btn {
        min-height: 44px;
    }
}

.price-from-suffix {
    font-size: 0.85em;
    margin-left: 0.15rem;
    font-weight: 600;
    color: #212529;
}

.online-detail-skill-list {
    border: 1px solid #f0d0dc;
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    background: #fff8fb;
}

.online-detail-skill-list li + li {
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px dashed #f3c6d8;
}

.online-detail-skill-name {
    min-width: 0;
}

.online-detail-skill-pick {
    border: 1px solid #f0d0dc;
    border-radius: 12px;
    padding: 0.35rem 0.55rem;
    background: #fff8fb;
}

.online-detail-skill-pick-row + .online-detail-skill-pick-row {
    border-top: 1px dashed #f3c6d8;
}

.online-detail-skill-pick-main {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.35rem;
    margin: 0;
    cursor: pointer;
}

.online-detail-skill-pick-main input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--brand-magenta);
    margin: 0;
}

.online-detail-skill-pick-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
}

.online-detail-skill-pick-price {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.92rem;
}

.online-detail-skill-hours {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.35rem 0.55rem 2rem;
    color: #555;
    font-size: 0.85rem;
}

.online-detail-skill-hours .js-booking-skill-hours {
    width: 4.8rem;
    max-width: 30%;
    font-size: 16px;
}

.online-detail-skill-total {
    margin-top: 0.45rem;
    font-weight: 700;
    color: #dc3545;
}

.booking-item-lines {
    margin: 0.45rem 0 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid #f0d0dc;
    border-radius: 10px;
    background: #fff8fb;
}

.booking-item-lines li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
}

.booking-item-lines li + li {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px dashed #f3c6d8;
}

.booking-item-line-name {
    min-width: 0;
    font-weight: 600;
}

.booking-item-line-amount {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.92rem;
}

.booking-item-line-hours {
    color: #555;
    font-weight: 600;
    margin-left: 0.2rem;
}

.agreement-item-lines .price-type-prefix {
    font-weight: 400;
}

.agreement-total {
    color: #dc3545;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.4;
    margin-top: 4px;
}

.agreement-total .site-price,
.agreement-total .booking-agreement-value,
.agreement-total .chat-agreement-value {
    color: #dc3545 !important;
    font-weight: 800;
}

/* ???n???s??? */
.area-pill {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
    .area-pill.active {
        background-color: var(--brand-magenta);
        color: #fff;
        border-color: var(--brand-magenta);
    }

.tag-pink {
    background: var(--brand-magenta);
    color: #fff;
    border: none;
    padding: .125rem .75rem;
    border-radius: 99px;
    margin-right: .25rem;
    display: inline-flex;
    align-items: center;
}
    .tag-pink .x {
        margin-left: .25rem;
        cursor: pointer;
        color: #fff;
        font-weight: bold;
    }

/* ?????J?? */
.input-pink {
    /*border: 1px solid #ff69b4;*/
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    width: 100%;
    transition: border-color 0.3s ease;
}

    .input-pink:focus {
        outline: none;
        border-color: #ff1493;
        box-shadow: 0 0 5px rgba(255, 20, 147, 0.3);
    }

.password-toggle-wrap {
    position: relative;
}

    .password-toggle-wrap .password-toggle-input {
        padding-right: 2.75rem;
    }

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #999;
    padding: 0.15rem 0.25rem;
    line-height: 1;
    cursor: pointer;
}

    .password-toggle-btn:hover {
        color: #ff69b4;
    }

    .password-toggle-btn:focus {
        outline: none;
        color: #ff69b4;
    }


.bottom-nav {
    height: var(--member-footer-height);
    align-items: center;
    width: 100%;
}

.bottom-nav a {
    color: white;
    text-align: center;
    flex: 1;
    font-size: 14px;
    text-decoration:none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-width: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

        .bottom-nav a:hover {
            background-color: #ff85c1;
        }

    .bottom-nav i {
        display: block;
        font-size: 20px;
        line-height: 1;
        margin: 0;
    }

.bottom-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav-unread-badge {
    position: absolute;
    top: -5px;
    right: -11px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff4d8d;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    :root {
        --member-footer-height: 50px;
    }

    footer.member-bottom-footer .bottom-nav a {
        font-size: 12px;
        padding: 3px 0.2rem 2px !important;
        gap: 2px;
        line-height: 1.1;
        align-items: center;
        justify-content: center;
    }

    footer.member-bottom-footer .bottom-nav i {
        font-size: 17px;
        line-height: 1;
        margin: 0;
    }
}

/* ???D??r */
h1, h2, h3 {
    color: #ff1493;
    font-family: 'Segoe UI', sans-serif;
}

@media (max-width: 575.98px) {
    .provider-help h2 {
        font-size: 1rem;
    }

    .provider-help .provider-help-list li {
        font-size: 0.875rem;
    }
}

.label-item {
    color: var(--brand-magenta);
    font-weight: 600;
}

/* ????e???I?? */
.page-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.1);
}

.btn:not(.favorite-toggle-btn):not(.post-grid-favorite-btn) i {
    margin-right: .25rem;
}

/* ??T??n?J???s */
.btn-third-party {
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .btn-third-party:hover {
        background-color: #f7f7f7;
        border-color: #bbb;
    }

a.btn-third-party.btn-line-login,
.btn-third-party.btn-line-login {
    background-color: #06c755;
    border-color: #06c755;
    color: #fff;
}

a.btn-third-party.btn-line-login:hover,
a.btn-third-party.btn-line-login:focus,
.btn-third-party.btn-line-login:hover,
.btn-third-party.btn-line-login:focus {
    background-color: #05b34c;
    border-color: #05b34c;
    color: #fff;
}

a.btn-third-party.btn-line-login:visited {
    background-color: #06c755;
    border-color: #06c755;
    color: #fff;
}

/* ?????r */
.tip-text {
    color: #ff69b4;
    font-size: 14px;
    margin-top: 8px;
}

/* ???? spinner */
.my-loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    display: block;
}
/* loading ????~???? */
.blockMsgCenter {
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: 100% !important;
    width: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    background: transparent !important;
    border: none !important;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.breadcrumb-text {
    border-bottom: 1px solid #ebebeb;
    padding: 15px 0;
    color: #ff69b4;
    font-weight:bold;
}
    .breadcrumb-text i {
        margin-right: 8px;
        margin-left: 8px;
        color: #ff69b4;
    }
    .breadcrumb-text a {
        display: inline-block;
        font-size: 16px;
        color: #252525;
        position: relative;
        text-decoration:none;
    }


.settings-section {
    max-width: 768px;
    margin: 30px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.account-subpage-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .65rem;
}

.account-subpage-heading h4,
.account-subpage-heading h1 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

.account-subpage-subtitle {
    color: #888;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 2px;
}

.cr-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #dadce0;
}

    .cr-row.first {
        border-top: none;
    }


.product-title {
    font-size: 20px;
    font-weight: 500;
}

.icon-container {
    margin-right: 12px;
}

.flex.cr-padded-text {
    flex: 1;
}

.flex .secondary {
    color: #5f6368;
    font-size: 14px;
    margin-top: 4px;
}

#buttonContainer cr-button, button {
    background-color: #1a73e8;
    color: white;
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.cr-link-row {
    display: block;
    padding: 10px 0;
    border-top: 1px solid #dadce0;
    text-decoration: none;
}

.account-menu-alert-icon {
    color: #e6a800;
    margin-left: 0.35rem;
    font-size: 1.05rem;
    vertical-align: -0.08em;
}


.modal-dialog {
    max-height: 90vh; /* Modal ??h???? 90% ??{????? */
    display: flex;
    align-items: center; /* ?T?O?????????m?? */
}

.modal-content {
    max-height: 90vh;
    overflow: hidden; /* ?????????e?W?X */
}

.modal-body {
    overflow-y: auto;
    max-height: 75vh; /* ???e??j???? */
}

.mr-50-20{
    margin-right:50px;
}
.mr-10-8 {
    margin-right: 10px;
}
.ml-50-20 {
    margin-left: 50px;
}
.plr-50-30-10 {
    padding-left: 50px;
    padding-right: 50px;
}
.plr-10 {
    padding-left: 10px;
    padding-right: 10px;
}
.plr-20-4 {
    padding-left: 20px;
    padding-right: 20px;
}
.user-sm-img {
    border-radius: 50%; /* ??? */
    object-fit: cover; /* ???m???????? */
    object-position: center;
    display: block; /* ?i?????????q?w?]??K baseline ???^ */
    width: 72px;
    height: 72px;
    margin-right: 16px;
}
.radius50 {
    border-radius: 50%; /* ??? */
    object-fit: cover; /* ???m???????? */
    object-position: center;
    display: block; /* ?i?????????q?w?]??K baseline ???^ */
}
.cursor-pointer{
    cursor:pointer;
}


/* Dropzone ?~?h?A?????i?H??????? */
.dz-scroll-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    /* ????C?i?H???k?? */
    padding-bottom: .3rem;
    padding-top: .3rem;
    border: 1px dashed var(--brand-magenta);
    border-radius: .5rem;
    background-color: #fff0f7;
}

/* Dropzone ????? flex ????Y?? */
.dz-custom {
    display: flex;
    flex-wrap: nowrap; /* ??????A??V?@?C */
    gap: .5rem;
    min-height: 120px;
    position: relative;
    padding: .5rem;
}

    /* ?w?]???????r */
    .dz-custom.empty::before {
        content: "\8ACB\4EFB\4E00\8655\9EDE\9078\6216\62D6\66F3\5716\7247";
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: var(--brand-magenta);
        font-size: 0.9rem;
        font-weight: 500;
        /* ????r??a\??? dropzone ??? */
        position: absolute;
        inset: 0;
        pointer-events: none; /* ?????I?? */
        padding: .75rem;
        white-space: normal;
        line-height: 1.4;
        opacity: .7;
    }

/* ?? dz-custom ??????w??e?? */
.dz-custom {
    position: relative;
}
    /* ?@???????N??????? */
    .dz-custom.has-files::before {
        content: "";
    }

/* ?C?i?w???d?? */
.dz-preview.dz-image-preview {
    position: relative;
    display: inline-block;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    height: 140px;
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    border: 1px solid rgba(0,0,0,.05);
}

/* ??????? */
.dz-preview .dz-image {
    width: 100%;
    height: 100%;
    border-radius: .5rem;
    overflow: hidden;
}
    .dz-preview .dz-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ????q?? X ???s */
.dz-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
    z-index: 5;
    user-select: none;
}

/* ???? Dropzone ????? "Remove file" ??r?s?? (????X?v?? X ) */
.dz-preview .dz-remove {
    display: none !important;
}

/* ??????W/???j?p/?i???????????T?A?O???d?????b */
.dz-preview .dz-details,
.dz-preview .dz-progress,
.dz-preview .dz-success-mark,
.dz-preview .dz-error-mark,
.dz-preview .dz-error-message {
    display: none !important;
}


/* ????]?p?? 576px?^ */
@media (max-width: 576px) {
    .btn .btn-text {
        display: none;
    }

    .btn i {
        margin-right: 0;
    }
    .page-container {
        padding: 10px;
    }
    .dz-preview.dz-image-preview {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
        height: 100px;
    }

    .dz-custom {
        min-height: 100px;
    }

}

/* ????]?p?? 768px?^ */
@media (max-width: 767.98px) {
    .settings-section {
        margin: 15px auto;
        padding: 9px;
    }
    .mr-50-20 {
        margin-right: 20px;
    }

    .ml-50-20 {
        margin-left: 20px;
    }
    .mr-10-8 {
        margin-right: 8px;
    }
    .plr-50-30-10 {
        padding-left: 10px;
        padding-right: 10px;
    }
    .plr-20-4 {
        padding-left: 4px;
        padding-right: 4px;
    }
    .user-sm-img {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }

    .btn-pink {
        padding: 6px 10px;
    }

    .alert.alert-warning,
    .alert.alert-success,
    .alert.alert-info,
    .alert.alert-danger,
    .account-notice-alert {
        padding: 0.5rem;
        font-size: 0.82rem;
        line-height: 1.45;
    }
}

/* ???O?]768px - 991.98px?^ */
@media (min-width: 768px) and (max-width: 991.98px) {
    .btn-pink {
        padding: 8px 14px;
        font-size: 12px;
    }

    .user-sm-img {
        width: 48px;
        height: 48px;
        margin-right: 14px;
    }
    .mr-10-8 {
        margin-right: 9px;
    }
    .plr-50-30-10 {
        padding-left: 30px;
        padding-right: 30px;
    }
    .plr-20-4 {
        padding-left: 4px;
        padding-right: 4px;
    }
}

/* ????]992px ?H?W?^ */
@media (min-width: 992px) {
    
}

@media (min-width: 768px)
{
    .plr-20-view {
        padding-left: 20px;
        padding-right: 20px;
    }
}
/* 統一按鈕與 Tag 的品牌桃紅色 */
.btn-pinkcolor,
.btn-pinkcolor:focus,
.btn-pinkcolor:active,
.btn-pink,
.btn-pink:focus,
.btn-pink:active,
.cur-menu-bg,
.l1-chip.active,
.l2-pill.active,
.area-pill.active,
.tag-pink,
.status-tag.active,
.status-tag:hover,
.booking-main-tabs .nav-link.active,
.booking-status-tabs .nav-link.active,
.home-tab.active {
    background-color: var(--brand-magenta) !important;
    border-color: var(--brand-magenta) !important;
    color: #fff !important;
}

.btn-pinkcolor:hover,
.btn-pink:hover,
.btn.btn-pink:hover {
    background-color: var(--brand-magenta-hover) !important;
    border-color: var(--brand-magenta-hover) !important;
    color: #fff !important;
}

.btn-pinkcolor:focus,
.btn-pink:focus,
.btn-outline-pinkcolor:focus {
    box-shadow: 0 0 0 0.25rem var(--brand-magenta-focus) !important;
}

.btn-outline-pinkcolor,
.status-tag:not(.active) {
    background-color: #fff !important;
    border-color: var(--brand-magenta) !important;
    color: var(--brand-magenta) !important;
}

.btn-outline-pinkcolor:hover,
.btn-outline-pinkcolor:active {
    background-color: var(--brand-magenta) !important;
    border-color: var(--brand-magenta) !important;
    color: #fff !important;
}

.review-tag-badge {
    background-color: var(--brand-magenta) !important;
    color: #fff !important;
}

.booking-status-badge.status-negotiating,
.booking-status-badge.status-ongoing,
.booking-status-badge.status-pending,
.verify-status-badge.unverified,
.booking-sidebar-link.has-badge .booking-sidebar-badge {
    background-color: var(--brand-magenta) !important;
    color: #fff !important;
}

.favorite-toggle-btn.is-favorited {
    color: var(--brand-magenta) !important;
    border-color: var(--brand-magenta) !important;
}

/* Shared service-card grid styles. Keep these outside the paged Partial so
   infinite scrolling does not inject the same <style> block on every page. */
.post-grid-title,
.post-grid-area {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-grid-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

.post-grid-card:hover {
    transform: translateY(-2px);
}

.post-grid-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f8f8;
}

.post-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-grid-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    display: block;
}

.post-grid-avatar-wrap {
    position: relative;
    display: inline-block;
}

.post-grid-favorite-btn {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
    z-index: 3;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    text-decoration: none;
}

.post-grid-favorite-btn.is-favorited {
    color: #e83e8c;
    border-color: #ffd0e2;
    background: #fff0f6;
}

.post-grid-favorite-btn .bi {
    font-size: 11px;
    line-height: 1;
    display: block;
}

.post-grid-overlay-left,
.post-grid-overlay-right {
    position: absolute;
    top: 10px;
    z-index: 2;
}

.post-grid-overlay-left {
    left: 10px;
}

.post-grid-overlay-right {
    right: 10px;
    max-width: 60%;
}

.post-grid-category-badge {
    display: inline-block;
    max-width: 100%;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #333;
    font-size: .8rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.post-grid-card .post-grid-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.post-grid-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
    font-weight: 600;
    color: #666;
}

.post-grid-rating .review-star-icon {
    color: #ffc107;
    font-size: 0.85rem;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .post-grid-card .card-body {
        padding: 0.35rem 0.5rem 0.4rem;
    }

    .post-grid-card .post-grid-title {
        margin-bottom: 0.125rem;
    }

    .post-grid-card .post-grid-area {
        margin-bottom: 0.25rem;
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .post-grid-overlay-left,
    .post-grid-overlay-right {
        --post-grid-corner-inset: 10px;
    }

    .post-grid-overlay-left {
        top: var(--post-grid-corner-inset);
        left: var(--post-grid-corner-inset);
        right: auto;
    }

    .post-grid-overlay-right {
        top: var(--post-grid-corner-inset);
        right: var(--post-grid-corner-inset);
        max-width: 58%;
    }

    .post-grid-avatar {
        width: 32px;
        height: 32px;
        border-width: 1.5px;
    }

    .post-grid-favorite-btn {
        width: 16px;
        height: 16px;
        right: -2px;
        bottom: -2px;
    }

    .post-grid-favorite-btn .bi {
        font-size: 8px;
    }

    .post-grid-category-badge {
        padding: 0.2rem 0.45rem;
        font-size: 0.65rem;
        font-weight: 600;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    }

    .post-grid-card .post-grid-price,
    .post-grid-card .post-grid-price-row {
        margin-bottom: 0;
        line-height: 1.2;
    }
}

/* My post list cards (Post/Index via _MyList partial) */
.my-post-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8f9fa;
    cursor: pointer;
}

.my-post-img-wrap--readonly {
    cursor: default;
}

.my-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.my-post-img.is-expired {
    filter: grayscale(.5);
    opacity: .55;
}

.my-post-overlay-left,
.my-post-overlay-right {
    position: absolute;
    top: 10px;
    z-index: 2;
}

.my-post-overlay-left {
    left: 10px;
}

.my-post-overlay-right {
    right: 10px;
    max-width: 60%;
}

.my-post-overlay-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.my-post-expired-badge {
    display: inline-block;
    padding: .5rem .9rem;
    border-radius: .5rem;
    background: rgba(220, 53, 69, .92);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.my-post-area {
    max-width: 45%;
}

.my-post-expiry {
    min-width: 0;
    white-space: nowrap;
}

.my-post-category-badge {
    display: inline-block;
    max-width: 100%;
    padding: .35rem .6rem;
    border-radius: .5rem;
    background: rgba(255, 255, 255, .92);
    color: #333;
    font-size: .78rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.my-post-desc {
    min-width: 0;
    margin-bottom: 0;
}

.my-post-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.my-post-action-row .my-post-price {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.my-post-action-row .my-post-action-buttons {
    flex: 0 0 auto;
}

.my-post-action-buttons {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    max-width: 100%;
    vertical-align: top;
}

.my-post-action-buttons .my-post-action-btn,
.my-post-action-buttons .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    white-space: nowrap;
}

.my-post-action-buttons .my-post-action-btn:not(:first-child),
.my-post-action-buttons .btn:not(:first-child) {
    margin-left: -1px;
}

.my-post-action-buttons .my-post-action-btn:first-child,
.my-post-action-buttons .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.my-post-action-buttons .my-post-action-btn:last-child,
.my-post-action-buttons .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.my-post-action-buttons .my-post-action-btn:only-child,
.my-post-action-buttons .btn:only-child {
    border-radius: var(--bs-border-radius-sm);
}

.my-post-title-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.my-post-title-row .card-title {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.my-post-title-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.my-post-title-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-shrink: 0;
    height: 28px;
    padding: 0 0.55rem;
    border-radius: 8px;
    border: 1px solid #ffd0e6;
    color: #e83e8c;
    background: #fff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.my-post-title-btn:hover,
.my-post-title-btn:focus {
    background: #fff5f9;
    color: #c2185b;
    border-color: #f5a6c4;
}

.my-post-desc-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.my-post-desc-row .my-post-desc {
    flex: 1 1 auto;
    min-width: 0;
}

.my-post-extend-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-shrink: 0;
    height: 28px;
    padding: 0 0.55rem;
    border-radius: 8px;
    border: 1px solid #ffd0e6;
    color: #e83e8c;
    background: #fff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.my-post-extend-btn:hover,
.my-post-extend-btn:focus {
    background: #fff5f9;
    color: #c2185b;
    border-color: #f5a6c4;
}

.my-post-admin-hidden-note {
    font-size: .8125rem;
    color: #b02a37;
    background: #fff5f5;
    border: 1px solid #f1aeb5;
    border-radius: .5rem;
    padding: .5rem .65rem;
    margin-bottom: .75rem;
}

@media (max-width: 575.98px) {
    .my-post-action-buttons .my-post-action-btn,
    .my-post-action-buttons .btn {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        font-size: 0.8125rem;
    }
}

/* Unified page-back control: pink circle on mobile, pink pill with 返回 on desktop. */
.site-back-btn,
.account-back-link,
.account-page-back,
.favorites-page-back,
.review-page-back,
.booking-detail-back,
.chat-back-btn,
.online-detail-back,
.contact-page-back,
.customer-bookings-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.12rem;
    box-sizing: border-box;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    border-radius: 999px !important;
    border: 1px solid var(--brand-magenta) !important;
    background: var(--brand-magenta) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1;
    box-shadow: none !important;
    white-space: nowrap;
}

.site-back-btn .bi-arrow-left,
.account-back-link .bi-arrow-left,
.account-page-back .bi-arrow-left,
.favorites-page-back .bi-arrow-left,
.review-page-back .bi-arrow-left,
.booking-detail-back .bi-arrow-left,
.chat-back-btn .bi-arrow-left,
.online-detail-back .bi-arrow-left,
.contact-page-back .bi-arrow-left,
.customer-bookings-back .bi-arrow-left {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1;
    flex: none;
}

.site-back-label,
.account-back-label {
    display: none;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .site-back-btn,
    .account-back-link,
    .account-page-back,
    .favorites-page-back,
    .review-page-back,
    .booking-detail-back,
    .chat-back-btn,
    .online-detail-back,
    .contact-page-back,
    .customer-bookings-back {
        width: auto !important;
        min-width: 26px !important;
        padding: 0 0.55rem 0 0.4rem !important;
    }

    .site-back-label,
    .account-back-label {
        display: inline;
    }
}

.site-back-btn:hover,
.account-back-link:hover,
.account-page-back:hover,
.favorites-page-back:hover,
.review-page-back:hover,
.booking-detail-back:hover,
.chat-back-btn:hover,
.online-detail-back:hover,
.contact-page-back:hover,
.customer-bookings-back:hover,
.site-back-btn:focus-visible,
.account-back-link:focus-visible,
.account-page-back:focus-visible,
.favorites-page-back:focus-visible,
.review-page-back:focus-visible,
.booking-detail-back:focus-visible,
.chat-back-btn:focus-visible,
.online-detail-back:focus-visible,
.contact-page-back:focus-visible,
.customer-bookings-back:focus-visible {
    background: var(--brand-magenta-hover) !important;
    border-color: var(--brand-magenta-hover) !important;
    color: #fff !important;
}

.site-back-btn:focus-visible,
.account-back-link:focus-visible,
.account-page-back:focus-visible,
.favorites-page-back:focus-visible,
.review-page-back:focus-visible,
.booking-detail-back:focus-visible,
.chat-back-btn:focus-visible,
.online-detail-back:focus-visible,
.contact-page-back:focus-visible,
.customer-bookings-back:focus-visible {
    outline: 2px solid var(--brand-magenta-hover);
    outline-offset: 2px;
}

.captcha-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.captcha-row .form-label {
    margin-bottom: 0;
    white-space: nowrap;
    flex: 0 0 auto;
}

.captcha-row #valiCode,
.captcha-row .captcha-image {
    cursor: pointer;
    flex: 0 0 auto;
}

.captcha-refresh-hint {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
