/* ── Quill Editor Content Styles (for CMS pages rendered on frontend) ── */
.abt_caption ol,
.abt_caption ul {
    padding-left: 1.5em;
    margin-bottom: 0.5em;
}
.abt_caption ol {
    list-style-type: decimal;
}
.abt_caption ul {
    list-style-type: disc;
    list-style: disc;
}
.abt_caption ol li,
.abt_caption ul li {
    list-style: inherit;
    padding-left: 0;
}
.abt_caption li.ql-indent-1 { padding-left: 1.5em; }
.abt_caption li.ql-indent-2 { padding-left: 3em; }
.abt_caption li.ql-indent-3 { padding-left: 4.5em; }
.abt_caption .ql-indent-1:not(li) { padding-left: 1.5em; }
.abt_caption .ql-indent-2:not(li) { padding-left: 3em; }
.abt_caption .ql-indent-3:not(li) { padding-left: 4.5em; }
.abt_caption p {
    margin-bottom: 0.5em;
}
.abt_caption h1, .abt_caption h2, .abt_caption h3,
.abt_caption h4, .abt_caption h5, .abt_caption h6 {
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-weight: 600;
}
.abt_caption blockquote {
    border-left: 4px solid #ccc;
    padding-left: 16px;
    margin: 1em 0;
    color: #666;
}
.abt_caption a {
    color: var(--primary, #1B2A4A);
    text-decoration: underline;
}

.opt-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    min-height: 42px;
    padding: 6px 16px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .2s;
    overflow: hidden;
    background: #fff;
    font-size: 14px;
}
.opt-btn:hover { border-color: #C9A96E; }
.opt-btn.selected {
    border-color: #C9A96E;
    border-width: 2px;
}
.opt-btn .opt-check {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 22px 22px;
    border-color: transparent transparent #C9A96E transparent;
}
.opt-btn .opt-check::after {
    content: '✓';
    position: absolute;
    bottom: -21px;
    right: 1px;
    color: #fff;
    font-size: 10px;
    line-height: 1;
}
.opt-btn.selected .opt-check { display: block; }
.opt-btn.disabled-opt {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.delivery-time-option.selected { border-color: #198754 !important; background: #f0fdf4; }
.box-ip-checkout { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 16px; border: 1px solid #eee; }

/* Address Modal */
#changeAddressModal .modal-address-option,
#changeBillingModal .billing-address-option {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
}
#changeAddressModal .modal-address-option:hover,
#changeBillingModal .billing-address-option:hover { border-color: #aaa; }
#changeAddressModal .modal-address-option.border-success,
#changeBillingModal .billing-address-option.border-success {
    border-color: #198754;
    background: #f0fdf4;
}
#changeAddressModal .modal-address-option .addr-radio-icon,
#changeBillingModal .billing-address-option .addr-radio-icon {
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid #ccc; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; transition: all .2s;
}
#changeAddressModal .modal-address-option.border-success .addr-radio-icon,
#changeBillingModal .billing-address-option.border-success .addr-radio-icon {
    border-color: #198754; background: #198754;
}
#changeAddressModal .modal-address-option .addr-radio-icon svg,
#changeBillingModal .billing-address-option .addr-radio-icon svg { display: none; }
#changeAddressModal .modal-address-option.border-success .addr-radio-icon svg,
#changeBillingModal .billing-address-option.border-success .addr-radio-icon svg { display: block; }
#changeAddressModal .modal-footer { border-top: 1px solid #eee; }
#changeAddressModal .addr-edit-link { color: #198754; text-decoration: none; font-size: 13px; white-space: nowrap; }
#changeAddressModal .addr-edit-link:hover { text-decoration: underline; }

/* Shipping method cards */
.shipping-method-option {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    transition: all .2s ease;
}
.shipping-method-option:hover { border-color: #aaa; }
.shipping-method-option.border-success { border-color: #198754; background: #f0fdf4; }
.shipping-method-option .shipping-cost { font-weight: 600; white-space: nowrap; }
.shipping-method-option .shipping-meta { font-size: 12px; color: #888; margin-top: 2px; }
.shipping-method-option .shipping-free-tag { color: #198754; font-size: 12px; }

/* Delivery type toggle */
.delivery-type-toggle {
    display: inline-flex;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}
.delivery-type-toggle label {
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #666;
    transition: all .2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.delivery-type-toggle label:hover { color: #333; }
.delivery-type-toggle input[type="radio"] { display: none; }
.delivery-type-toggle input[type="radio"]:checked + span {
    background: #fff;
    color: #198754;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border-radius: 8px;
    padding: 8px 24px;
    margin: -8px -24px;
}

/* Courier logo in shipping card */
.shipping-courier-logo {
    width: 48px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
    background: #f8f8f8;
    padding: 4px;
}

/* ===== Downline Tree Page ===== */
.downline-stat-card {
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.downline-stat-card:active {
    transform: scale(0.97);
}
.downline-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.downline-stat-value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: #1e293b;
}
.downline-stat-label {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.downline-search-box {
    position: relative;
}
.downline-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.downline-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}
.downline-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,.08);
    background: #fff;
}

/* Standalone legend icons (outside jsTree) */
i.dl-icon-active {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2322c55e' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E");
}
i.dl-icon-pending {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23f59e0b' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E");
}
i.dl-icon-banned {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ef4444' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E");
}
i.dl-icon-me {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233b82f6' viewBox='0 0 16 16'%3E%3Cpath d='M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0'/%3E%3Cpath fill-rule='evenodd' d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1'/%3E%3C/svg%3E");
}
i.dl-icon-upline {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238b5cf6' viewBox='0 0 448 512'%3E%3Cpath d='M224 16c-6.7 0-10.8-2.8-15.5-6.1C201.9 5.4 194 0 176 0c-30.5 0-52 43.7-66 89.4C62.7 98.1 32 112.2 32 128c0 14.3 25 27.1 64.6 35.9c-.4 4-.6 8-.6 12.1c0 17 3.3 33.2 9.3 48H72c-13.3 0-24 10.7-24 24s10.7 24 24 24h46.4c13.9 8 29.6 13.8 46.3 16.7l-2.5 5.1c-4.4 8.8-12.3 15.2-21.8 17.7l-46.4 12.4c-21.3 5.7-36 25.2-36 47.4c0 26.5 21.5 48 48 48h24.4l7.2 36.1C140.7 476.4 160 496 183.3 496H264.7c23.3 0 42.6-19.6 45.3-42.8l7.2-36.1H341.6c26.5 0 48-21.5 48-48c0-22.2-14.7-41.7-36-47.4l-46.4-12.4c-9.5-2.5-17.4-8.9-21.8-17.7l-2.5-5.1c16.7-2.9 32.4-8.7 46.3-16.7H376c13.3 0 24-10.7 24-24s-10.7-24-24-24h-33.3c6-14.8 9.3-31 9.3-48c0-4.1-.2-8.1-.6-12.1C390.9 155.1 416 142.3 416 128c0-15.8-30.7-29.9-78-38.6C324 43.7 302.5 0 272 0c-18 0-25.9 5.4-32.5 9.9c-4.8 3.3-8.8 6.1-15.5 6.1m-37.4 192c-2.2-7.2-3.6-14.8-3.6-22.7c0-1.3 0-2.6 .1-3.9c10.9 2.1 22.4 3.4 34.3 4.1c-2.3 8.5-3.5 17.5-3.5 26.8c0 5.3 .4 10.5 1.2 15.6c-10.1-4.8-19.4-11.2-28.5-19.9m74.8 0c-9.1 8.7-18.4 15.1-28.5 19.9c.8-5.1 1.2-10.3 1.2-15.6c0-9.3-1.2-18.3-3.5-26.8c11.9-.7 23.4-2 34.3-4.1c.1 1.3 .1 2.6 .1 3.9c0 7.9-1.4 15.5-3.6 22.7M209.5 310.6c3.9-1.6 6.5-5.4 6.5-9.6s-2.6-8-6.5-9.6C200.3 287.7 192 278.8 192 268c0-13.3 14.3-24 32-24s32 10.7 32 24c0 10.8-8.3 19.7-17.5 23.4c-3.9 1.6-6.5 5.4-6.5 9.6s2.6 8 6.5 9.6c9.2 3.7 17.5 12.6 17.5 23.4c0 13.3-14.3 24-32 24s-32-10.7-32-24c0-10.8 8.3-19.7 17.5-23.4'/%3E%3C/svg%3E");
}

.downline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    background: #94a3b8;
}

.downline-tree-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* jsTree custom icon overrides — SVG person icons via background-image */
.jstree-default .jstree-icon.dl-icon {
    width: 20px !important;
    height: 20px !important;
    background-size: 20px 20px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    line-height: 20px !important;
}
/* Person fill — active (green) */
.jstree-default .jstree-icon.dl-icon-active {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2322c55e' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E") !important;
}
/* Person fill — pending (amber) */
.jstree-default .jstree-icon.dl-icon-pending {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23f59e0b' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E") !important;
}
/* Person fill — banned (red) */
.jstree-default .jstree-icon.dl-icon-banned {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ef4444' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E") !important;
}
/* Person circle — Me (blue) */
.jstree-default .jstree-icon.dl-icon-me {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233b82f6' viewBox='0 0 16 16'%3E%3Cpath d='M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0'/%3E%3Cpath fill-rule='evenodd' d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1'/%3E%3C/svg%3E") !important;
}
/* User secret — Upline (purple) */
.jstree-default .jstree-icon.dl-icon-upline {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238b5cf6' viewBox='0 0 448 512'%3E%3Cpath d='M224 16c-6.7 0-10.8-2.8-15.5-6.1C201.9 5.4 194 0 176 0c-30.5 0-52 43.7-66 89.4C62.7 98.1 32 112.2 32 128c0 14.3 25 27.1 64.6 35.9c-.4 4-.6 8-.6 12.1c0 17 3.3 33.2 9.3 48H72c-13.3 0-24 10.7-24 24s10.7 24 24 24h46.4c13.9 8 29.6 13.8 46.3 16.7l-2.5 5.1c-4.4 8.8-12.3 15.2-21.8 17.7l-46.4 12.4c-21.3 5.7-36 25.2-36 47.4c0 26.5 21.5 48 48 48h24.4l7.2 36.1C140.7 476.4 160 496 183.3 496H264.7c23.3 0 42.6-19.6 45.3-42.8l7.2-36.1H341.6c26.5 0 48-21.5 48-48c0-22.2-14.7-41.7-36-47.4l-46.4-12.4c-9.5-2.5-17.4-8.9-21.8-17.7l-2.5-5.1c16.7-2.9 32.4-8.7 46.3-16.7H376c13.3 0 24-10.7 24-24s-10.7-24-24-24h-33.3c6-14.8 9.3-31 9.3-48c0-4.1-.2-8.1-.6-12.1C390.9 155.1 416 142.3 416 128c0-15.8-30.7-29.9-78-38.6C324 43.7 302.5 0 272 0c-18 0-25.9 5.4-32.5 9.9c-4.8 3.3-8.8 6.1-15.5 6.1m-37.4 192c-2.2-7.2-3.6-14.8-3.6-22.7c0-1.3 0-2.6 .1-3.9c10.9 2.1 22.4 3.4 34.3 4.1c-2.3 8.5-3.5 17.5-3.5 26.8c0 5.3 .4 10.5 1.2 15.6c-10.1-4.8-19.4-11.2-28.5-19.9m74.8 0c-9.1 8.7-18.4 15.1-28.5 19.9c.8-5.1 1.2-10.3 1.2-15.6c0-9.3-1.2-18.3-3.5-26.8c11.9-.7 23.4-2 34.3-4.1c.1 1.3 .1 2.6 .1 3.9c0 7.9-1.4 15.5-3.6 22.7M209.5 310.6c3.9-1.6 6.5-5.4 6.5-9.6s-2.6-8-6.5-9.6C200.3 287.7 192 278.8 192 268c0-13.3 14.3-24 32-24s32 10.7 32 24c0 10.8-8.3 19.7-17.5 23.4c-3.9 1.6-6.5 5.4-6.5 9.6s2.6 8 6.5 9.6c9.2 3.7 17.5 12.6 17.5 23.4c0 13.3-14.3 24-32 24s-32-10.7-32-24c0-10.8 8.3-19.7 17.5-23.4'/%3E%3C/svg%3E") !important;
}

/* Node content styling */
.downline-node-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.downline-node-name {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
}
.downline-node-meta {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}
.downline-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .3px;
}
.downline-badge-me {
    background: #dbeafe;
    color: #2563eb;
}
.downline-badge-upline {
    background: #ede9fe;
    color: #7c3aed;
}
.downline-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 500;
}
.downline-tag-count {
    background: #ecfdf5;
    color: #059669;
}

/* jsTree overrides for cleaner look */
#treeview-container .jstree-default .jstree-wholerow-hovered { background: #f0f9ff !important; border-radius: 8px; }
#treeview-container .jstree-default .jstree-wholerow-clicked { background: #e0f2fe !important; border-radius: 8px; }
#treeview-container .jstree-default .jstree-anchor { padding: 6px 8px; border-radius: 6px; }
#treeview-container .jstree-default .jstree-hovered { background: transparent !important; box-shadow: none !important; }
#treeview-container .jstree-default .jstree-clicked { background: transparent !important; box-shadow: none !important; }
#treeview-container .jstree-search { font-weight: 600; color: #2563eb !important; background: #eff6ff; border-radius: 6px; padding: 2px 4px; }
#treeview-container .jstree-node { margin-top: 4px; margin-bottom: 4px; }
#treeview-container .jstree-default .jstree-last { margin-bottom: 0; }

@media (max-width: 576px) {
    .downline-stat-card { padding: 14px 10px; }
    .downline-stat-value { font-size: 20px; }
    .downline-stat-label { font-size: 10px; }
    .downline-stat-icon { width: 36px; height: 36px; border-radius: 10px; }
    .downline-tree-card { padding: 16px; border-radius: 14px; }
}

/* Shopping cart page — consistent square images */
.tf-cart_item .img-prd {
    max-width: 60px;
    flex-shrink: 0;
}
.tf-cart_item .img-prd img {
    aspect-ratio: 1;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}
@media (max-width: 575px) {
    .tf-cart_item .img-prd {
        max-width: 60px;
        width: 60px;
        height: 60px;
    }
    .tf-cart_item .img-prd img {
        width: 60px;
        height: 60px;
    }
}

/* Checkout layout — center logo on mobile */
@media (max-width: 767px) {
    .checkout-header .header-inner {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .checkout-header .header-inner .header-left {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    .checkout-header .header-inner .header-right {
        position: absolute;
        right: 0;
    }
}

/* Cart sidebar — prevent button text wrapping */
.tf-mini-cart-view-checkout .tf-btn {
    white-space: nowrap;
    font-size: 13px;
}

/* Payment method cards — force light theme */
.payment_accordion,
.payment_accordion .payment_check,
.payment_accordion .payment-banks-list,
.payment-category-option,
.payment-bank-option {
    background: #fff !important;
    color: #1e293b !important;
}
.payment-category-option,
.payment-bank-option {
    border-color: #e2e8f0 !important;
}
.payment-category-option.border-success,
.payment-bank-option.border-success {
    border-color: #198754 !important;
    background: #f0fdf4 !important;
}
.payment-category-option .fw-medium,
.payment-bank-option .fw-medium {
    color: #1e293b !important;
}

/* Wallet transaction table — fix alignment and column widths for 5 columns */
.account-my_recent .table-my_recent tr {
    align-items: center;
}
.account-my_recent .table-my_recent th:first-child,
.account-my_recent .table-my_recent td:first-child {
    width: 160px;
}
.account-my_recent .table-my_recent th:nth-child(2),
.account-my_recent .table-my_recent td:nth-child(2) {
    width: 180px;
}
.account-my_recent .table-my_recent th:nth-child(3),
.account-my_recent .table-my_recent td:nth-child(3) {
    width: 120px;
}
.account-my_recent .table-my_recent th:nth-child(4),
.account-my_recent .table-my_recent td:nth-child(4) {
    width: 80px;
}
.account-my_recent .table-my_recent th:nth-child(5),
.account-my_recent .table-my_recent td:nth-child(5) {
    width: 140px;
}

/* Order list cards */
.order-card {
    transition: border-color .2s, box-shadow .2s;
    color: inherit !important;
    text-decoration: none !important;
}
.order-card:hover {
    border-color: #94a3b8 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.order-card * {
    color: inherit;
}
.order-card .badge {
    color: #fff !important;
}

/* Order progress tracker */
.order-progress { position: relative; }
.order-progress-line {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #e5e7eb;
    z-index: 0;
}
.order-progress-line-fill {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #16a34a;
    z-index: 1;
    transition: transform .3s;
    transform-origin: left;
    transform: scaleX(0);
}
.order-progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
}
.order-progress-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 18px;
    border: 2px solid #e5e7eb;
}
.order-progress-step.done .order-progress-icon {
    background: #dcfce7;
    color: #16a34a;
    border-color: #16a34a;
}
.order-progress-step.active .order-progress-icon {
    background: #fff;
    color: #16a34a;
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22,163,106,.15);
}
@media (max-width: 575px) {
    .order-progress-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .order-progress-line,
    .order-progress-line-fill {
        top: 16px;
        left: 16px;
        right: 16px;
    }
}

/* ── Return pages mobile responsive ──────────────────────────────── */
@media (max-width: 575px) {
    .return-item-row {
        gap: 10px !important;
    }
    .return-item-row img {
        width: 48px !important;
        height: 48px !important;
    }
    .return-item-options .row {
        flex-direction: column;
    }
    .return-item-options .col-6 {
        width: 100%;
    }
}

/* ── Wallet transaction table mobile/desktop toggle ──────────────── */
.tx-mobile-row { display: none; }
.tx-desktop-row { display: table-row; }

@media (max-width: 767px) {
    .tx-desktop-row { display: none !important; }
    .tx-mobile-row { display: table-row !important; }
    .tx-mobile-row td { padding: 12px 0; border-bottom: 1px solid #f0f1f3; }
    .table-my_recent thead { display: none; }
}

/* ── Out of stock product card ───────────────────────────────────── */
.is-out-of-stock .product-img img {
    opacity: 0.5;
    filter: grayscale(40%);
}
.product-oos-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
}
.product-oos-overlay span {
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 4px;
}

/* ── Hide Add to Cart button on mobile ───────────────────────────── */
@media (max-width: 767px) {
    .product-action_bot {
        display: none !important;
    }
}

/* ── Hide footer on mobile (bottom toolbar replaces it) ──────────── */
@media (max-width: 767px) {
    footer, .footer {
        display: none !important;
    }
}

/* ── Product Reviews Section ─────────────────────────────────────── */
.review-summary {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 24px;
}
.review-summary-score {
    text-align: center;
    min-width: 100px;
}
.review-summary-score .score {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: #1d2939;
}
.review-summary-bars {
    flex-grow: 1;
    max-width: 320px;
}
.review-star-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.review-star-bar .bar-track {
    flex-grow: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}
.review-star-bar .bar-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 3px;
    transition: width .3s;
}
.review-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.review-filter-btn {
    border: 1.5px solid #e5e7eb !important;
    border-radius: 20px !important;
    background: #fff !important;
    color: #667085 !important;
    font-size: 12px !important;
    padding: 5px 14px !important;
    transition: all .15s;
    cursor: pointer;
}
.review-filter-btn:hover,
.review-filter-btn.active {
    border-color: #1d2939 !important;
    background: #1d2939 !important;
    color: #fff !important;
}
.review-filter-btn.active .icon-Star {
    color: #fff !important;
}
.review-card {
    padding: 16px 0;
    border-bottom: 1px solid #f0f1f3;
}
.review-card:last-child {
    border-bottom: none;
}
.review-card .review-images img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: transform .15s;
}
.review-card .review-images img:hover {
    transform: scale(1.05);
}
.review-reply {
    background: #f8fafc;
    border-left: 3px solid #3b82f6;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    margin-top: 10px;
}
.review-empty {
    text-align: center;
    padding: 48px 20px;
}
.review-empty svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

@media (max-width: 575px) {
    .review-summary {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    .review-summary-bars {
        max-width: 100%;
        width: 100%;
    }
    .review-filters {
        gap: 6px;
    }
    .review-filter-btn {
        font-size: 11px !important;
        padding: 4px 10px !important;
    }
    .review-card .review-images img {
        width: 52px;
        height: 52px;
    }
}

/* ============================================
   Product Filter Sidebar — Market Standard
   Inspired by Shopify, Shopee, Uniqlo patterns
   ============================================ */

/* Layout: sidebar + content */
.shop-with-sidebar {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.shop-main-content {
    flex: 1;
    min-width: 0;
}

/* ---- Sidebar Container ---- */
.pf-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #e5e5e5 transparent;
}

.pf-sidebar::-webkit-scrollbar {
    width: 4px;
}
.pf-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.pf-sidebar::-webkit-scrollbar-thumb {
    background: #e5e5e5;
    border-radius: 4px;
}
.pf-sidebar::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* ---- Form ---- */
.pf-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pf-body {
    flex: 1;
    overflow-y: auto;
}

/* ---- Sections ---- */
.pf-section {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0;
}

.pf-section:first-child {
    padding-top: 0;
}

.pf-section-compact {
    padding: 12px 0;
}

/* Section toggle button */
.pf-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}

.pf-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #1B2A4A;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pf-chevron {
    color: #999;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.pf-section-toggle[aria-expanded="false"] .pf-chevron {
    transform: rotate(-90deg);
}

/* Section content */
.pf-section-content {
    padding-top: 12px;
}

.pf-scrollable {
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #eee transparent;
}

.pf-scrollable::-webkit-scrollbar {
    width: 3px;
}
.pf-scrollable::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 3px;
}

/* ---- Custom Checkbox ---- */
.pf-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    transition: opacity 0.15s;
    min-height: 32px;
}

.pf-checkbox-item:hover {
    opacity: 0.8;
}

.pf-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pf-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1.5px solid #d0d0d0;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s ease;
    background: #fff;
}

.pf-checkbox-item input:checked + .pf-checkbox-custom {
    background: #1B2A4A;
    border-color: #1B2A4A;
}

.pf-checkbox-item input:checked + .pf-checkbox-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pf-checkbox-item input:focus-visible + .pf-checkbox-custom {
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.2);
}

.pf-checkbox-text {
    font-size: 13px;
    color: #333;
    flex: 1;
    line-height: 1.3;
}

.pf-item-count {
    font-size: 11px;
    color: #aaa;
    flex-shrink: 0;
}

.pf-child-item {
    padding-left: 28px;
}

/* ---- Custom Radio ---- */
.pf-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    cursor: pointer;
    min-height: 32px;
}

.pf-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pf-radio-custom {
    width: 16px;
    height: 16px;
    border: 1.5px solid #d0d0d0;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s ease;
    background: #fff;
}

.pf-radio-item input:checked + .pf-radio-custom {
    border-color: #1B2A4A;
}

.pf-radio-item input:checked + .pf-radio-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: #1B2A4A;
    border-radius: 50%;
}

/* Rating stars */
.pf-stars {
    display: inline-flex;
    gap: 1px;
    align-items: center;
}

.pf-rating-text {
    font-size: 12px;
    color: #666;
}

/* ---- Price Range ---- */
.pf-price-range {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.pf-price-field {
    flex: 1;
}

.pf-price-field label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
    font-weight: 500;
}

.pf-price-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0 8px;
    height: 36px;
    background: #fafafa;
    transition: border-color 0.15s, background 0.15s;
}

.pf-price-input-wrap:focus-within {
    border-color: #1B2A4A;
    background: #fff;
}

.pf-price-symbol {
    font-size: 12px;
    color: #888;
    margin-right: 4px;
    flex-shrink: 0;
}

.pf-price-input-wrap input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 13px;
    color: #333;
    outline: none;
    padding: 0;
    -moz-appearance: textfield;
}

.pf-price-input-wrap input::-webkit-outer-spin-button,
.pf-price-input-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pf-price-divider {
    width: 12px;
    height: 1px;
    background: #ccc;
    flex-shrink: 0;
    margin-bottom: 10px;
}

/* ---- Label Chips ---- */
.pf-label-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pf-label-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fff;
}

.pf-label-chip:hover {
    border-color: #bbb;
}

.pf-label-chip.is-active {
    border-color: #1B2A4A;
    background: #f5f5f5;
    color: #1B2A4A;
}

.pf-label-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pf-label-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Toggle Switch ---- */
.pf-switch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 4px 0;
}

.pf-switch-text {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.pf-switch {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.pf-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pf-switch-slider {
    position: absolute;
    inset: 0;
    background: #e0e0e0;
    border-radius: 22px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.pf-switch-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.pf-switch input:checked + .pf-switch-slider {
    background: #1B2A4A;
}

.pf-switch input:checked + .pf-switch-slider::before {
    transform: translateX(18px);
}

/* ---- Footer (Desktop) ---- */
.pf-footer {
    padding: 16px 0 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
}

.pf-apply-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: #1B2A4A;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
}

.pf-apply-btn:hover {
    background: #333;
}

.pf-clear-btn {
    display: block;
    width: 100%;
    padding: 8px 16px;
    text-align: center;
    font-size: 12px;
    color: #888;
    text-decoration: none;
    margin-top: 8px;
    transition: color 0.15s;
}

.pf-clear-btn:hover {
    color: #333;
}

/* ---- Active Filter Tags ---- */
.pf-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.pf-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}

.pf-tag:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.pf-tag:hover svg {
    stroke: #dc2626;
}

.pf-tag svg {
    flex-shrink: 0;
    stroke: #999;
    transition: stroke 0.15s;
}

.pf-clear-all {
    font-size: 12px;
    color: #888;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.pf-clear-all:hover {
    color: #333;
}

/* ---- Mobile Bar ---- */
.filter-mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-mobile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 38px;
}

.filter-mobile-trigger:active {
    background: #f5f5f5;
    transform: scale(0.97);
}

.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #1B2A4A;
    color: #fff;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 600;
}

.filter-mobile-sort {
    flex: 1;
    max-width: 180px;
}

.filter-sort-mobile {
    width: 100%;
    padding: 8px 28px 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 12px;
    color: #333;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-height: 38px;
}

/* ---- Mobile Sidebar Panel ---- */
.pf-sidebar-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.pf-sidebar-header h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    color: #1B2A4A;
}

.pf-reset-link {
    font-size: 12px;
    color: #888;
    text-decoration: underline;
    margin-right: 16px;
}

.pf-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: background 0.15s;
}

.pf-close-btn:hover {
    background: #eee;
}

/* Mobile footer */
.pf-mobile-footer {
    display: none;
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    gap: 10px;
    z-index: 2;
}

.pf-mobile-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    min-height: 44px;
    transition: all 0.15s;
}

.pf-mobile-clear:hover {
    border-color: #999;
    color: #333;
}

.pf-mobile-apply {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 20px;
    background: #1B2A4A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-height: 44px;
    transition: background 0.15s;
}

.pf-mobile-apply:active {
    background: #333;
}

/* Overlay */
.pf-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pf-overlay.is-open {
    display: block;
    opacity: 1;
}

/* No scroll when filter open */
body.pf-no-scroll {
    overflow: hidden;
}

/* ============================================
   Responsive: Mobile
   ============================================ */
@media (max-width: 991.98px) {
    .shop-with-sidebar {
        flex-direction: column;
        gap: 0;
    }

    .filter-mobile-bar {
        display: flex;
    }

    .pf-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 340px;
        height: 100%;
        max-height: 100vh;
        background: #fff;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .pf-sidebar.is-open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    }

    .pf-sidebar .pf-body {
        flex: 1;
        overflow-y: auto;
        padding: 0 20px;
        -webkit-overflow-scrolling: touch;
    }

    .pf-sidebar .pf-footer {
        display: none !important;
    }

    .pf-mobile-footer {
        display: flex;
    }

    /* Hide desktop sort on mobile (we have mobile sort in the bar) */
    .shop-main-content .col-6:has(#sortProducts) {
        display: none;
    }
}

@media (min-width: 992px) {
    .pf-sidebar-header {
        display: none !important;
    }

    .pf-sidebar .pf-body {
        padding: 0;
    }

    .pf-mobile-footer {
        display: none !important;
    }
}

/* ---- Tablet tweaks ---- */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .pf-sidebar {
        width: 220px;
    }

    .shop-with-sidebar {
        gap: 24px;
    }
}

/* ---- Inline search within filter sections ---- */
.pf-filter-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #fafafa;
    transition: border-color 0.15s, background 0.15s;
}

.pf-filter-search:focus-within {
    border-color: #bbb;
    background: #fff;
}

.pf-filter-search svg {
    flex-shrink: 0;
    color: #999;
    width: 12px;
    height: 12px;
}

.pf-filter-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 11px;
    color: #333;
    width: 100%;
    padding: 1px 0;
}

.pf-filter-search-input::placeholder {
    color: #aaa;
}

/* ─── Notification Bell & Dropdown ─────────────────────────────────── */
.nav-notification {
    position: relative;
}
.nav-notification .nav-icon-item svg {
    vertical-align: middle;
}
.nav-notification .count {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
}
.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 480px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
    z-index: 1050;
    overflow: hidden;
}
.notification-dropdown.show {
    display: block;
}
.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f3f4f6;
}
.notification-title {
    font-weight: 600;
    font-size: 15px;
    color: #111;
}
.notification-mark-all {
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
    cursor: pointer;
}
.notification-mark-all:hover {
    text-decoration: underline;
}
.notification-body {
    max-height: 340px;
    overflow-y: auto;
}
.notification-body::-webkit-scrollbar {
    width: 4px;
}
.notification-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f9fafb;
    transition: background .15s;
}
.notification-item:hover {
    background: #f9fafb;
    color: inherit;
    text-decoration: none;
}
.notification-item.unread {
    background: #f0f7ff;
    border-left: 3px solid #3b82f6;
}
.notification-item .notif-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.notification-item .notif-icon.order { background: #dbeafe; color: #2563eb; }
.notification-item .notif-icon.commission { background: #dcfce7; color: #16a34a; }
.notification-item .notif-icon.withdrawal { background: #fef3c7; color: #d97706; }
.notification-item .notif-icon.return { background: #fce7f3; color: #db2777; }
.notification-item .notif-icon.general { background: #f3f4f6; color: #6b7280; }
.notification-item .notif-content {
    flex: 1;
    min-width: 0;
}
.notification-item .notif-message {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    color: #374151;
}
.notification-item.unread .notif-message {
    font-weight: 600;
    color: #111;
}
.notification-item .notif-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}
.notification-item .notif-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    margin-top: 6px;
}
.notification-empty {
    text-align: center;
    padding: 32px 16px;
    color: #9ca3af;
}
.notification-empty p {
    margin: 8px 0 0;
    font-size: 13px;
}
.notification-footer {
    border-top: 1px solid #f3f4f6;
    padding: 10px 16px;
    text-align: center;
}
.notification-footer a {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}
.notification-footer a:hover {
    text-decoration: underline;
}

/* Mobile toolbar notification badge */
.toolbar-notification-dot {
    position: absolute;
    top: -2px;
    right: -6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
}

/* ── Announcement Marquee (per-slide, scrolls only if text overflows) ── */
.announcement-marquee {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    margin: 0;
    position: relative;
}

.announcement-marquee-inner {
    display: inline-block;
    white-space: nowrap;
    animation: announcement-scroll 20s linear infinite;
    padding-left: 100%;
}

@keyframes announcement-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ── Disabled submit button (recaptcha not solved) ───────────────── */
.tf-btn:disabled,
.tf-btn[disabled] {
    background: #ccc !important;
    color: #888 !important;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}
.tf-btn:disabled::after,
.tf-btn[disabled]::after {
    display: none;
}
