
    /* submit property login popup css */
    :root {
        --bg: #0e0e13;
        --surface: #16161e;
        --border: rgba(255, 255, 255, 0.07);
        --text: #f0ede8;
        --muted: #7a7880;
        --buyer: #c9a84c;
        --agent: #5a9fff;
        --owner: #6dcf8e;
        --lender: #d46fff;
    }

    /* ── Overlay ── */
    .role-modal-overlay2 {
        position: fixed;
        inset: 0;
        background: rgba(5, 5, 8, 0.82);
        backdrop-filter: none;
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 99999;
        pointer-events: auto;
        transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Golden Account Button */
    .gold-account-btn {
        width: 100%;
        padding: 16px 20px;
        min-height: 58px;
        background: #ebd8b0;
        color: #060b13;
        font-size: 16px;
        font-weight: 700;
        border: none;
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 3px 14px rgba(235, 216, 176, 0.25);
        letter-spacing: 0.5px;
        text-transform: uppercase;
        text-decoration: none !important;
    }

    .gold-account-btn:hover {
        background: #dfc89d;
        box-shadow: 0 4px 18px rgba(235, 216, 176, 0.4);
        transform: translateY(-1px);
        color: #060b13 !important;
    }

    .gold-account-btn i {
        font-size: 16px;
        color: #060b13 !important;
    }

    .role-modal-overlay2.active {
        opacity: 1;
        pointer-events: all;
    }

    /* ── Container ── */
    .role-modal-container2 {
        position: relative;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 52px 44px 44px;
        width: min(600px, 92vw);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.04),
            0 40px 80px rgba(0, 0, 0, 0.6),
            0 0 120px rgba(90, 159, 255, 0.05);
        transform: translateY(24px) scale(0.97);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .role-modal-overlay2.active .role-modal-container2 {
        transform: translateY(0) scale(1);
    }

    /* ── Close ── */
    .role-close-btn2 {
        position: absolute;
        top: 18px;
        right: 20px;
        width: 34px;
        height: 34px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid var(--border);
        border-radius: 50%;
        color: var(--muted);
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition:
            background 0.2s,
            color 0.2s;
        line-height: 1;
    }

    .role-close-btn2:hover {
        background: rgba(255, 255, 255, 0.12);
        color: var(--text);
    }

    /* ── Header ── */
    .role-modal-header2 {
        margin-bottom: 32px;
        text-align: center;
    }

    .role-modal-header2 h2 {
        font-family: "Playfair Display", serif;
        font-size: clamp(22px, 4vw, 28px);
        color: var(--text);
        font-weight: 700;
        letter-spacing: -0.01em;
        margin-bottom: 8px;
    }

    .role-modal-header2 p {
        color: var(--muted);
        font-size: 15.5px;
        font-weight: 300;
        letter-spacing: 0.02em;
    }

    /* ── Grid ── */
    .role-cards-grid2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    /* ── Card ── */
    .role-card2 {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 20px 22px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border);
        border-radius: 14px;
        text-decoration: none;
        color: var(--text);
        position: relative;
        overflow: hidden;
        transition:
            border-color 0.25s,
            background 0.25s,
            transform 0.2s;
    }

    .role-card2::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 0.3s;
        border-radius: inherit;
    }

    .role-card2:hover {
        transform: translateY(-2px);
    }

    /* accent colors per role */
    .card-buyer2 {
        --accent: var(--buyer);
    }

    .card-agent2 {
        --accent: var(--agent);
    }

    .card-homeowner2 {
        --accent: var(--owner);
    }

    .card-lender2 {
        --accent: var(--lender);
    }

    .role-card2:hover {
        border-color: var(--accent);
        background: rgba(255, 255, 255, 0.05);
    }

    .role-card2::before {
        background: radial-gradient(ellipse at left,
                color-mix(in srgb, var(--accent) 12%, transparent),
                transparent 70%);
    }

    .role-card2:hover::before {
        opacity: 1;
    }

    /* ── Icon box ── */
    .role-icon-box2 {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: color-mix(in srgb, var(--accent) 15%, transparent);
        border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 18px;
        color: var(--accent);
        transition:
            background 0.25s,
            box-shadow 0.25s;
    }

    .role-card:hover .role-icon-box {
        background: color-mix(in srgb, var(--accent) 22%, transparent);
        box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 30%, transparent);
    }

    /* ── Text ── */
    .role-text-content2 h3 {
        font-size: 16px;
        font-weight: 500;
        color: var(--text);
        margin-bottom: 4px;
        letter-spacing: 0.01em;
    }

    .role-text-content2 p {
        font-size: 14px;
        color: var(--muted);
        font-weight: 300;
        line-height: 1.4;
    }

    /* ── Arrow ── */
    .role-card2::after {
        content: "→";
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%) translateX(-4px);
        color: var(--accent);
        font-size: 16px;
        opacity: 0;
        transition:
            opacity 0.2s,
            transform 0.2s;
    }

    .role-card2:hover::after {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    /* ── Thin accent line top ── */
    .role-modal-container2::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 1px;
        background: linear-gradient(90deg,
                transparent,
                rgba(90, 159, 255, 0.5),
                transparent);
        border-radius: 1px;
    }

    @media (max-width: 480px) {
        .role-cards-grid2 {
            grid-template-columns: 1fr;
        }

        .role-modal-container2 {
            padding: 44px 24px 32px;
        }
    }

    /* end submit property login popup css */

    .svg__logoFooter {
        width: 8dvw !important;
        height: 8dvw !important;
    }

    @media only screen and (max-width: 700px) {
        .svg__logoFooter {
            width: 50px !important;
            height: 7dvw;
        }
    }

    @media(min-width:640px) and (max-width:768px) {

        .svg__logoFooter {
            width: 13dvw !important;
            height: 13dvw !important;
        }

    }

    @media(max-width:640px) {
        .svg__logoFooter {
            width: 27dvw !important;
            height: 27dvw !important;
        }

        .popup3 {
            width: 350px !important;
        }

    }

    /* terms & condition pop up */

    .popup3 {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: transparent;
        z-index: 9999;
        width: 1000px;
        height: 600px;
        border-radius: 5px;
        overflow-y: scroll;
        overflow-x: hidden;
    }

    .loginpopup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #314b4c;
        z-index: 9999;
        width: 400px;
        height: 340px;
        border-radius: 5px;
        overflow-x: hidden;
    }

    .regpopup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #0F2027 !important;
        /* background-color: #314b4c; */
        z-index: 9999;
        width: 480px;
        height: 410px;
        border-radius: 5px;
        overflow-x: hidden;
    }

    #overlay3 {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        /* Adjust the transparency here */
        z-index: 9998;
    }

    #closePopup3 {
        position: absolute;
        
        right: 10px;
        background: transparent;
        border: none;
        outline: none;
        font-size: 22px;
    }

    #loginclosePopup {
        position: absolute;
        top: 10px;
        right: 10px;
        background: transparent;
        border: none;
        outline: none;
        font-size: 40px;
        color: #FFF;
    }

    #regclosePopup {
        position: absolute;
        top: 10px;
        right: 10px;
        background: transparent;
        border: none;
        outline: none;
        font-size: 40px;
        color: #FFF;
    }

    .tt:hover {
        color: skyblue;
    }

    .chat-notification {
        position: fixed;
        bottom: 20px;
        left: 20px;
        background: #FFFFFF;
        background: linear-gradient(90deg, rgba(255, 255, 255, 1) 25%, rgba(255, 204, 204, 1) 100%);
        color: #000 !important;
        padding: 18px 23px;
        border-radius: 12px;
        max-width: 500px;
        font-size: 15.5px;
        display: none;
        z-index: 9999;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .chat-notification p {
        font-size: 14px;
    }

    emoji-picker {
        position: absolute;
        bottom: 75px !important;
        /* adjust to fit above textarea */
        right: 0;
        width: 50% !important;
        z-index: 9999;
        display: none;
        background: #fff;
        border-radius: 10px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        /* <-- shadow */
    }

    emoji-picker2 {
        position: absolute;
        bottom: 75px !important;
        /* adjust to fit above textarea */
        right: 0 !important;
        width: 50% !important;
        z-index: 9999;
        display: none;
        background: #fff;
        border-radius: 10px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        /* <-- shadow */
    }

    #emojiBtn {
        position: absolute;
        right: 100px;
        font-size: 23px;
    }

    #emojiBtn2 {
        position: absolute;
        right: 110px;
        font-size: 23px;
    }

    .search-container {
        position: relative;
        margin: 10px;
    }

    #searchResults {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 200px;
        z-index: 1000;
        display: none;
        font-size: 14.5px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.19);
        /* mild shadow */
        border-radius: 4px;
        /* optional: rounded corners */
        background-color: #bdbdbd;
        /* ensure shadow is visible */
    }

    .blur {
        filter: blur(2px);
        pointer-events: none;
        /* prevents clicking */
        transition: all 0.3s ease;
        background-color: rgba(255, 255, 255, 0.2);
        /* subtle overlay */
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
        /* soft inner shadow */
        border-radius: 8px;
        /* optional: smooth edges */
    }

    input::placeholder {
        color: #FFF !important;
        opacity: 1;
    }

    .cvb {
        display: flex;
        justify-content: start;
        gap: 1rem;
        display: none !important;

    }

    .cvb a {
        font-size: 15.5px;
        border: 1px solid orange;
        padding: 5px 25px;
        border-radius: 8px;

    }

    #fileName {
        display: inline-block;
        max-width: 260px;
        /* leave space for ✖ button */
        word-wrap: break-word;
        /* break long words */
        overflow-wrap: break-word;
        /* modern browsers */
        white-space: normal;
        /* allow wrapping */
    }

    #fileName2 {
        display: inline-block;
        max-width: 260px;
        /* leave space for ✖ button */
        word-wrap: break-word;
        /* break long words */
        overflow-wrap: break-word;
        /* modern browsers */
        white-space: normal;
        /* allow wrapping */
    }

    #defaultmsg {
        text-transform: uppercase;
        background: linear-gradient(to right in oklch,
                hsl(98 100% 82%),
                hsl(204 100% 59%));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        min-height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px;
    }

    .f-agent {
        background-color: #6f42c1 !important;
        border-color: #6f42c1 !important;
        color: white !important;
    }

    .f-owner {
        background-color: #28A745 !important;
        border-color: #28A745 !important;
        color: white !important;
    }

    .f-lender {
        background-color: #FD7E14 !important;
        border-color: #FD7E14 !important;
        color: white !important;
    }

    .f-client {
        background-color: #1E90FF !important;
        border-color: #1E90FF !important;
        color: white !important;
    }

    /* Mobile Nav Custom Styles */
    .mobile-nav-wrap {
        background: #060b13 !important;
        /* Dark background matching screenshot */
        background: radial-gradient(circle at 50% 50%, #112240 0%, #060b13 100%) !important;
        overflow: hidden !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        width: 100% !important;
    }

    .mobile-nav-wrap::-webkit-scrollbar,
    .inner-mobile-nav::-webkit-scrollbar,
    #menu-mobile::-webkit-scrollbar,
    .mobile-nav-wrap *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .top-nav-mobile {
        padding: 0 !important;
        border-bottom: none !important;
        box-shadow: none !important;
        min-height: 0 !important;
        height: 0 !important;
        position: relative !important;
    }

    .inner-mobile-nav {
        padding: 155px 16px 20px 16px !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        overflow-y: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .mb-body {
        display: flex !important;
        flex-direction: column !important;
        /* flex-shrink:0 so a tall menu keeps its full height instead of being
           squeezed; overflow visible so the parent (.inner-mobile-nav) scrolls */
        flex: 1 0 auto !important;
        height: auto !important;
        min-height: 100% !important;
        overflow: visible !important;
        justify-content: flex-start !important;
        gap: 20px !important;
        padding-bottom: 24px !important;
    }

    #menu-mobile-menu {
        display: flex;
        flex-direction: column;
        flex: none !important;
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* New premium bubble/card design for links */
    .mobile-nav-card {
        flex: none !important;
        height: 54px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: rgba(6, 17, 33, 0.8) !important;
        border: 2px solid transparent !important;
        border-radius: 12px !important;
        padding: 0 16px !important;
        margin-bottom: 0px;
        text-decoration: none !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: inset 6px 6px 12px rgb(204 183 183 / 71%), inset -6px -6px 12px rgb(103 106 109 / 42%) !important;
    }

    .mobile-nav-card .icon-box {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        transition: all 0.3s ease;
    }

    .mobile-nav-card .icon-box i {
        color: #ebd8b0 !important;
        font-size: 16px !important;
        margin: 0 !important;
        width: auto !important;
        display: inline-block !important;
        text-shadow: 0 0 10px rgba(235, 216, 176, 0.3);
    }

    .mobile-nav-card .nav-text {
        color: #ffffff;
        font-size: 16px;
        font-weight: 600;
        flex: 1;
    }

    .mobile-nav-card .chevron-icon {
        color: rgba(255, 255, 255, 0.4);
        font-size: 15.5px;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    /* Hover & Active States */
    .mobile-nav-card:hover,
    .mobile-nav-card.active {
        border-color: #ebd8b0 !important;
        background-color: rgba(14, 30, 55, 0.9) !important;
        transform: translateY(-1px);
        box-shadow: inset 6px 6px 12px rgb(204 183 183 / 71%), inset -6px -6px 12px rgb(103 106 109 / 42%), 0 0 15px rgba(235, 216, 176, 0.3) !important;
    }

    .mobile-nav-card:hover .icon-box,
    .mobile-nav-card.active .icon-box {
        background: rgba(235, 216, 176, 0.12);
        border-color: rgba(235, 216, 176, 0.4);
        box-shadow: 0 0 8px rgba(235, 216, 176, 0.2);
    }

    .mobile-nav-card:hover .chevron-icon,
    .mobile-nav-card.active .chevron-icon {
        color: #ffffff;
        transform: translateX(3px);
    }

    /* Leave a task (phone menu, client daily report 2026-11-25): the row in the
       menu cards' style with the price in gold, and the explanation in a box
       under it with a small pointer up to the row. */
    .hb-mtask {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        flex: 0 0 auto;
        text-decoration: none !important;
        color: inherit;
    }
    .hb-mtask-row {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 54px;
        padding: 8px 16px;
        border-radius: 12px;
        border: 2px solid transparent;
        background-color: rgba(6, 17, 33, 0.8);
        box-shadow: inset 6px 6px 12px rgb(204 183 183 / 71%), inset -6px -6px 12px rgb(103 106 109 / 42%);
        transition: border-color .3s ease, box-shadow .3s ease;
    }
    .hb-mtask .icon-box {
        width: 36px; height: 36px; flex: 0 0 36px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .hb-mtask .icon-box i { color: #ebd8b0; font-size: 16px; }
    .hb-mtask-name { flex: 1 1 auto; color: #fff; font-size: 16px; font-weight: 600; }
    .hb-mtask-price { flex: 0 0 auto; color: #f2c14e; font-size: 15px; font-weight: 700; white-space: nowrap; }
    .hb-mtask-note {
        position: relative;
        display: block;
        padding: 12px 14px;
        border-radius: 12px;
        background-color: rgba(6, 17, 33, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.10);
        color: #fff;
        font-size: 14px;
        line-height: 1.45;
        box-shadow: inset 4px 4px 10px rgb(204 183 183 / 35%), inset -4px -4px 10px rgb(103 106 109 / 30%);
    }
    .hb-mtask-note::before {
        content: "";
        position: absolute;
        top: -8px;
        right: 36%;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid #3b5f8f;
    }
    .hb-mtask:hover .hb-mtask-row,
    .hb-mtask:focus-visible .hb-mtask-row {
        border-color: #ebd8b0;
        box-shadow: inset 6px 6px 12px rgb(204 183 183 / 71%), inset -6px -6px 12px rgb(103 106 109 / 42%), 0 0 15px rgba(235, 216, 176, 0.3);
    }

    /* Live Task Concierge Card */
    .concierge-card {
        flex: 0 0 auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background-color: rgba(6, 17, 33, 0.8) !important;
        border: 2px solid transparent !important;
        border-radius: 20px !important;
        padding: 14px 16px !important;
        display: flex;
        align-items: center;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        min-height: 76px;
        box-shadow: inset 6px 6px 12px rgb(204 183 183 / 71%), inset -6px -6px 12px rgb(103 106 109 / 42%) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .concierge-card .gradient-icon-box {
        width: 42px;
        height: 42px;
        min-width: 42px;
        background: linear-gradient(135deg, #ebd8b0 0%, #d3bf98 100%);
        border: 1px solid rgba(235, 216, 176, 0.4);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        box-shadow: 0 3px 12px rgba(235, 216, 176, 0.3);
    }

    .concierge-card .gradient-icon-box svg {
        color: #061121;
        width: 24px !important;
        height: 24px !important;
    }

    .concierge-card .concierge-content {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .concierge-card .concierge-title {
        color: #ebd8b0;
        font-size: 15.5px;
        font-weight: 600;
        margin: 0;
    }

    .concierge-card .concierge-desc {
        color: #94a3b8;
        font-size: 13.5px;
        line-height: 1.35;
        margin: 0;
    }

    /* Golden Account Button */
    .gold-account-btn {
        width: 100%;
        padding: 12px 20px; min-height: 44px;
        background: #ebd8b0;
        color: #060b13;
        font-size: 14.5px;
        font-weight: 700;
        border: none;
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 3px 14px rgba(235, 216, 176, 0.25);
        letter-spacing: 0.5px;
        text-transform: uppercase;
        text-decoration: none !important;
    }

    .gold-account-btn:hover {
        background: #dfc89d;
        box-shadow: 0 4px 18px rgba(235, 216, 176, 0.4);
        transform: translateY(-1px);
        color: #060b13 !important;
    }

    .gold-account-btn i {
        font-size: 16px;
        color: #060b13 !important;
    }

    .secure-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-top: 8px;
        color: #64748b;
        font-size: 13px;
    }

    .secure-footer i {
        color: #3b82f6;
        font-size: 14px;
    }

    @keyframes shimmerGlow {
        0% {
            opacity: 0.6;
            box-shadow: 0 0 5px #00C6FF;
        }

        50% {
            opacity: 1;
            box-shadow: 0 0 15px #00C6FF, 0 0 20px #005bea;
        }

        100% {
            opacity: 0.6;
            box-shadow: 0 0 5px #00C6FF;
        }
    }

    .nav-separator {
        height: 2px;
        background: linear-gradient(90deg, transparent, #00C6FF, transparent);
        margin: 0;
        width: 100%;
        box-shadow: 0 0 8px #00C6FF;
        border-radius: 50%;
        animation: shimmerGlow 2s infinite ease-in-out;
    }

    .mobile-close-btn {
        display: none !important;
    }

    .mobile-close-btn:hover {
        opacity: 0.8;
    }

    .mobile-close-btn i {
        background: linear-gradient(135deg, #7c3aed 0%, #c084fc 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        font-size: 24px;
        transition: all 0.3s ease;
    }

    .mobile-close-btn:hover i {
        opacity: 0.8;
    }

    .chat-bubble {
        position: relative;
        margin-bottom: 24px;
    }

    /* Common bubble styles */
    .bubble {
        position: relative;
        max-width: 90%;
        padding: 22px 17px;
        border-radius: 22px;
        font-size: 16px;
        line-height: 1.42;
        color: #ffffff;
        backdrop-filter: blur(10px) saturate(1.35);
        -webkit-backdrop-filter: blur(10px) saturate(1.35);
        border: 1px solid rgba(140, 150, 170, 0.16);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.38),
            inset 0 1px 1px rgba(255, 255, 255, 0.05);
    }

    .bubble::after {
        content: '';
        position: absolute;
        bottom: 10px;
        width: 0;
        height: 0;
        border: 10px solid transparent;
        filter: blur(1px);
        opacity: 0.7;
    }

    .timestamp {
        margin-top: 6px;
        font-size: 13.5px;
        color: #ffffff;
        opacity: 1;
    }

    /* ──────────────── RECEIVED bubble (now slightly gray) ──────────────── */
    .bubble-received {
        margin-right: auto;
        background: rgba(60, 65, 80, 0.85);
        color: #ffffff;
        border-radius: 22px 22px 22px 6px;
    }

    .bubble-received::after {
        left: -10px;
        border-right-color: rgba(35, 40, 55, 0.58);
    }

    /* ──────────────── SENT bubble (kept warmer blue-indigo) ──────────────── */
    .bubble-sent {
        margin-left: auto;
        background: rgba(55, 30, 110, 0.88);
        color: #ffffff;
        border-radius: 22px 22px 6px 22px;
    }

    .bubble-sent::after {
        right: -10px;
        border-left-color: rgba(45, 25, 90, 0.52);
    }

    /* Subtle blue glow overlay – stronger on sent, softer on received */
    .bubble::before {
        content: '';
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        background: linear-gradient(135deg,
                rgba(100, 140, 255, 0.10),
                rgba(59, 130, 246, 0.06) 60%,
                transparent 85%);
        z-index: -1;
        filter: blur(8px);
        opacity: 0.65;
    }

    .bubble-sent::before {
        opacity: 0.85;
        /* more visible on sent */
        background: linear-gradient(135deg,
                rgba(100, 140, 255, 0.16),
                rgba(59, 130, 246, 0.10) 60%,
                transparent 85%);
    }

    .sent .timestamp {
        text-align: right;
    }

    .received .timestamp {
        text-align: left;
    }

    .chat-interface .chat-area,
    .chat-container,
    .chat-messages,
    #chatMessages,
    .chat-area .chat-messages {
        background: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
        z-index: auto !important;
    }

    .chat-messages {
        position: relative !important;
        z-index: 1 !important;
    }

    .chat-messages .received,
    .chat-messages .sent {
        display: block;
        width: 100%;
        background: transparent !important;
    }

    .chat-messages .sent {
        text-align: right;
    }

    .chat-messages .sent .bubble {
        margin-left: auto;
        max-width: 70%;
    }

    .chat-messages .received .bubble {
        margin-right: auto;
        max-width: 70%;
    }

    .bubble-received::after,
    .bubble-sent::after {
        display: none;
    }

    .sidebar-content .agent-item {
        display: flex;
        align-items: center;
        padding: 22px 14px;
        border-radius: 14px;
        margin-bottom: 8px;
        transition: all 0.25s ease;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .sidebar-content .agent-item:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .sidebar-content .agent-item.active,
    .sidebar-content .agent-item.active:hover {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .agent-item {
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .agent-item.active .agent-item::after {
        content: '';
        position: absolute;
        inset: -6px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 10%, transparent 70%);
        z-index: -1;
        opacity: 0.65;
    }



    /* Tiffany Button Styles - Arched Text "Zero Area" Design */
    .tiffany-btn {
        position: fixed;
        bottom: 25px;
        left: 25px;
        width: 120px;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 90;
        background: transparent !important;
        border: none !important;
        text-decoration: none !important;
        overflow: visible;
        /* Crucial for curved text */
        cursor: pointer;
        transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .tiffany-btn:hover {
        transform: scale(1.1);
    }

    .tiffany-icon-wrapper {
        position: relative;
        width: 95px;
        height: 95px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        animation: tiffany-icon-float 6s ease-in-out infinite;
        /* Added back the moving animation */
    }

    @keyframes tiffany-icon-float {

        0%,
        100% {
            transform: translate(0, 0);
        }

        25% {
            transform: translate(3px, -5px);
        }

        50% {
            transform: translate(-2px, -8px);
        }

        75% {
            transform: translate(-4px, -3px);
        }
    }

    .tiffany-btn .tiffany-icon {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        transition: all 0.6s ease;
        z-index: 3;
    }

    /* Arched Text SVG Styling */
    .tiffany-text-svg {
        position: absolute;
        width: 180px;
        height: 180px;
        top: -42px;
        /* Lifted slightly from -35px for "slight gapping" */
        left: -30px;
        pointer-events: none;
        z-index: 1;
        transform: rotate(-120deg);
        opacity: 0;
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: visible !important;
    }

    .tiffany-btn:hover .tiffany-text-svg {
        transform: rotate(0deg);
        opacity: 1;
    }

    .tiffany-text-svg text {
        fill: #FFF;
        font-family: 'Inter', sans-serif;
        font-weight: 800;
        font-size: 6px;
        /* Reduced for better curvature fit */
        letter-spacing: 0.4px;
        /* Tightened spacing */
        text-transform: uppercase;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    }

    .tiffany-btn:hover .tiffany-icon {
        box-shadow: 0 0 30px rgba(64, 224, 232, 0.5);
        transform: rotate(5deg);
    }

    /* Glow effect instead of background */
    .tiffany-glow {
        position: absolute;
        inset: 0;
        background: radial-gradient(circle, rgba(64, 224, 232, 0.3) 0%, transparent 70%);
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: -1;
    }

    .tiffany-btn:hover .tiffany-glow {
        opacity: 1;
        animation: tiffany-spin-glow 4s linear infinite;
    }

    @keyframes tiffany-spin-glow {
        0% {
            transform: scale(1) rotate(0deg);
        }

        50% {
            transform: scale(1.2) rotate(180deg);
        }

        100% {
            transform: scale(1) rotate(360deg);
        }
    }

    /* Phones: the floating launchers used to sit 40-160px up the screen at
       70-80px each, on top of card text and buttons (the homepage SELL tile read
       "ELL"). They now share one low band - Tiffany bottom-left, Deal Room
       bottom-right at 56px, back-to-top stacked above the Deal Room button -
       and #footer reserves that band at the end of the page (see below), so
       the last links and the copyright line can scroll clear of them. */
    @media (max-width: 768px) {
        .tiffany-btn {
            width: 56px;
            height: 56px;
            bottom: calc(12px + env(safe-area-inset-bottom, 0px));
            left: 10px;
        }
        .tiffany-icon-wrapper {
            width: 48px;
            height: 48px;
        }
        .tiffany-text-svg {
            width: 92px;
            height: 92px;
            top: -24px;
            left: -18px;
        }
    }

    /* Chat Button Arched Text Styling */
    .chat-btn-container {
        position: fixed;
        bottom: 30px;
        right: 63px;
        width: 100px;
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 90;
        overflow: visible;
        cursor: pointer;
        transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .chat-btn-container:hover {
        transform: scale(1.1);
    }

    .chat-text-svg {
        position: absolute;
        width: 140px;
        height: 140px;
        top: -30px;
        left: -20px;
        pointer-events: none;
        z-index: 1;
        transform: rotate(-120deg);
        opacity: 0;
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: visible !important;
    }

    .chat-btn-container:hover .chat-text-svg {
        transform: rotate(0deg);
        opacity: 1;
    }

    .chat-text-svg text {
        fill: #FFF;
        font-family: 'Inter', sans-serif;
        font-weight: 800;
        font-size: 10px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    }

    .floating-chat-btn {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        width: 60px !important;
        height: 60px !important;
        border-radius: 50% !important;
        color: #fff !important;
        border: none !important;
        cursor: pointer !important;
        z-index: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 24px !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* Glow effect removed — icon art already has its own badge look */
    .chat-glow {
        display: none !important;
    }

    .chat-btn-container:hover .floating-chat-btn {
        transform: rotate(5deg);
    }

    .dealroom-btn-icon {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    @keyframes chat-spin-glow {
        0% {
            transform: scale(1) rotate(0deg);
        }

        50% {
            transform: scale(1.3) rotate(180deg);
        }

        100% {
            transform: scale(1) rotate(360deg);
        }
    }

    @media (max-width: 768px) {
        /* Size and position only - the button, its handlers and what it opens
           are unchanged (it is also the guests' way into the Deal Room). */
        .chat-btn-container {
            bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
            right: 10px !important;
            width: 56px !important;
            height: 56px !important;
        }
        
        .chat-text-svg {
            width: 84px !important;
            height: 84px !important;
            top: -16px !important;
            left: -14px !important;
        }

        .floating-chat-btn {
            width: 44px !important;
            height: 44px !important;
            font-size: 20px !important;
        }
        
        .chat-glow {
            width: 44px !important;
            height: 44px !important;
        }
        
        /* Back-to-top stacks directly above the Deal Room button, centred on it */
        .progress-wrap {
            bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
            right: 18px !important;
        }

        /* Reserve the launcher band below the last footer line, inside the
           footer's own background. A spacer rather than more padding so the
           footer's existing padding rules stay as they are. */
        #footer::after {
            content: "";
            display: block;
            height: calc(72px + env(safe-area-inset-bottom, 0px));
        }
        
        .progress-wrap svg {
            width: 40px !important;
            height: 40px !important;
        }
    }

    /* Premium Compare Modal Styling */
    .compare-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(4, 7, 18, 0.85);
        backdrop-filter: blur(12px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10001;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .compare-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .compare-modal-card {
        background: linear-gradient(135deg, #0b1426 0%, #162447 100%);
        width: 90%;
        max-width: 440px;
        padding: 45px 35px;
        border-radius: 28px;
        position: relative;
        border: 1.5px solid rgba(59, 130, 246, 0.5);
        box-shadow: 0 0 60px rgba(10, 20, 50, 0.8), inset 0 0 30px rgba(59, 130, 246, 0.15);
        overflow: visible;
        text-align: center;
        transform: scale(0.9) translateY(20px);
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* Inner container to clip only the glow blobs, not the close button */
    .compare-glow-clip {
        position: absolute;
        inset: 0;
        border-radius: 28px;
        overflow: hidden;
        pointer-events: none;
        z-index: 0;
    }

    .compare-modal-overlay.active .compare-modal-card {
        transform: scale(1) translateY(0);
    }

    .compare-modal-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 20%;
        right: 20%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #3b82f6, transparent);
        box-shadow: 0 0 15px #3b82f6;
        z-index: 2;
    }

    .compare-modal-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 20%;
        right: 20%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #3b82f6, transparent);
        box-shadow: 0 0 15px #3b82f6;
        z-index: 2;
    }

    .compare-modal-glow-top {
        position: absolute;
        top: -40px;
        right: -40px;
        width: 140px;
        height: 140px;
        background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
        pointer-events: none;
    }

    .compare-modal-glow-bottom {
        position: absolute;
        bottom: -40px;
        left: -40px;
        width: 140px;
        height: 140px;
        background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 70%);
        pointer-events: none;
    }

    .compare-header {
        display: flex;
        align-items: center;
        gap: 22px;
        justify-content: center;
        margin-bottom: 25px;
    }

    .compare-tiffany-icon {
        width: 85px;
        height: auto;
        filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.7));
        animation: compare-float 4s ease-in-out infinite;
    }

    @keyframes compare-float {

        0%,
        100% {
            transform: translateY(0) rotate(0);
        }

        50% {
            transform: translateY(-12px) rotate(2deg);
        }
    }

    .compare-text {
        text-align: left;
    }

    .compare-text .main-text {
        font-size: 21px;
        font-weight: 800;
        color: #fff;
        line-height: 1.25;
        margin: 0;
        letter-spacing: -0.3px;
    }

    .compare-text .sub-text {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.85);
        margin: 6px 0 0 0;
        font-weight: 500;
    }

    .compare-text .sub-text strong {
        color: #fff;
        font-weight: 700;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }

    .tiffany-desc {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.55);
        line-height: 1.5;
        margin-bottom: 35px;
        padding: 0 10px;
    }

    /* The copy's line breaks: its own line on desktop, ordinary spaced text
       below 992px, where css/styles.css hides every <br> (so no <br> here). */
    .compare-modal-card .compare-line {
        display: inline;
    }

    @media (min-width: 992px) {
        .compare-modal-card .compare-line {
            display: block;
        }
    }

    .compare-modal-btn {
        background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
        color: #fff;
        border: none;
        padding: 15px 50px;
        border-radius: 50px;
        font-size: 19px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
        width: 100%;
        max-width: 200px;
    }

    .compare-modal-btn:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 15px 35px rgba(37, 99, 235, 0.7);
    }

    .compare-close {
        position: absolute;
        top: -14px;
        right: -14px;
        background: #1e3a6e;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1.5px solid rgba(59, 130, 246, 0.6);
        color: rgba(255, 255, 255, 0.85);
        font-size: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        line-height: 1;
    }

    .compare-close:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        transform: rotate(90deg);
    }

    @media(max-width: 480px) {
        .compare-modal-card {
            padding: 30px 20px;
        }
        .compare-header {
            flex-direction: column;
            gap: 15px;
            text-align: center;
        }
        .compare-text {
            text-align: center;
        }
        .compare-tiffany-icon {
            width: 70px;
        }
        .compare-close {
            top: -10px;
            right: -10px;
            width: 30px;
            height: 30px;
            font-size: 18px;
        }
    }


    /* Force Newsletter Input Style overrides to fix white background issue */
    #sib-container input[type="text"],
    #sib-container input[name="email"],
    .sib-form input[type="text"] {
        background-color: #2E3136 !important;
        background: #2E3136 !important;
        border: 1px solid #444 !important;
        color: #FFF !important;
        padding: 12px 20px !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-shadow: none !important;
    }

    #sib-container input::placeholder {
        color: #aaa !important;
        opacity: 1 !important;
    }

    #defaultmsg {
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .top-div-area {
        transition: all .3s ease-in-out;
    }

    .top-div-area:hover {
        background: linear-gradient(135deg, #667eea 0%, #ff0000 100%) !important;
    }


    /* Timeline Step Modal */
    .timeline-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(4, 7, 15, 0.85);
        backdrop-filter: blur(16px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 10000;
        padding: 24px;
        transition: all 0.3s ease;
    }

    .timeline-modal-container {
        background: radial-gradient(circle at top left, #1a2a3a, #0b0f19);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 28px;
        width: 100%;
        max-width: 700px; /* Perfectly balanced size on desktop! */
        max-height: 96vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(59, 130, 246, 0.03);
        animation: modalScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        transition: all 0.3s ease;
    }

    @keyframes modalScaleUp {
        from { transform: scale(0.96) translateY(10px); opacity: 0; }
        to { transform: scale(1) translateY(0); opacity: 1; }
    }

    .timeline-modal-header {
        padding: 24px 36px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(255, 255, 255, 0.01);
    }

    .timeline-modal-title {
        font-size: 24px;
        font-weight: 800;
        color: #f8fafc;
        margin: 0;
        letter-spacing: -0.5px;
    }

    .timeline-modal-close {
        background: rgba(255, 255, 255, 0.05);
        border: none;
        color: #94a3b8;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        cursor: pointer;
        display: flex; 
        align-items: center; 
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 22px;
    }

    .timeline-modal-close:hover {
        background: rgba(239, 68, 68, 0.2);
        color: #ef4444;
        transform: rotate(90deg);
    }

    .timeline-modal-body {
        display: flex;
        flex: 1;
        overflow: hidden; /* Restored to prevent scrollbar */
        width: 100%;
    }

    #timelinePopup {
        display: flex;
        flex: 1;
        width: 100%;
        flex-direction: column;
        margin: 0;
    }

    .timeline-modal-left {
        flex: 1;
        padding: 36px 40px;
        display: flex;
        flex-direction: column;
        gap: 28px;
        width: 100%;
    }

    /* Style for step update messages in main chat */
    /* Default state */
    .status-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        color: #94a3b8;
        transition: all 0.25s ease;
    }

    .status-tick {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        border: 1px solid #334155;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s ease;
    }

    /* hide check initially */
    .status-tick i {
        opacity: 0;
        transform: scale(0.7);
        transition: all 0.25s ease;
    }

    /* ===========================
       ✅ ACTIVE (COMPLETED)
    =========================== */
    .status-toggle.active {
        color: #22c55e; /* green text */
    }

    .status-toggle.active .status-text {
        color: #22c55e;
        font-weight: 600;
    }

    .status-toggle.active .status-tick {
        background: rgba(34,197,94,0.15);
        border-color: #22c55e;
    }

    .status-toggle.active .status-tick i {
        opacity: 1;
        transform: scale(1);
        color: #22c55e;
    }

    /* --- New Status Dropdown Styles --- */
    .status-dropdown-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .status-label {
        color: #94a3b8;
        font-size: 14.5px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .status-select-wrap {
        position: relative;
        background: rgba(30, 41, 59, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(8px);
    }

    .status-select-wrap:hover {
        border-color: rgba(56, 189, 248, 0.4);
        background: rgba(30, 41, 59, 0.8);
    }

    .status-select-wrap:focus-within {
        border-color: #38bdf8;
        box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
        background: rgba(30, 41, 59, 0.9);
    }

    .status-select {
        width: 100%;
        padding: 14px 16px 14px 38px;
        background: transparent;
        border: none;
        color: #f8fafc;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        outline: none;
        appearance: none;
    }

    .status-select option {
        background: #0f172a;
        color: #f8fafc;
        padding: 12px;
    }

    /* Status Dot Indicators */
    .status-indicator {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 10px;
        height: 10px;
        border-radius: 50%;
        pointer-events: none;
        background-color: #94a3b8; /* Default */
        box-shadow: 0 0 8px currentColor;
        transition: all 0.3s ease;
    }

    .status-not-started { background-color: #94a3b8; }
    .status-in-progress { background-color: #f59e0b; }
    .status-waiting-buyer { background-color: #3b82f6; }
    .status-waiting-seller { background-color: #6366f1; }
    .status-waiting-third-party { background-color: #a855f7; }
    .status-completed { background-color: #22c55e; }
    .status-blocked { background-color: #ef4444; }
    .status-rejected { background-color: #ef4444; }
    .status-backed-out { background-color: #f87171; }
    .status-dispute { background-color: #f97316; }
    .status-delayed { background-color: #fbbf24; }

    /* Alert Banner for Terminations - STATIC FOR NOW */
    .modal-status-alert {
        padding: 16px;
        border-radius: 12px;
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.2);
        margin-bottom: 20px;
        position: relative;
        overflow: hidden;
    }

    .modal-status-alert::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #ef4444;
    }

    .modal-status-alert-title {
        color: #ef4444;
        font-weight: 700;
        font-size: 15.5px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .modal-status-alert-desc {
        color: #e2e8f0;
        font-size: 14.5px;
        line-height: 1.5;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .comment-box-container {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }

    .comment-textarea {
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        color: #f8fafc;
        padding: 20px;
        resize: none;
        min-height: 130px;
        font-family: inherit;
        font-size: 16px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        line-height: 1.6;
        width: 100%;
    }

    .comment-textarea:hover {
        border-color: rgba(255, 255, 255, 0.15);
    }

    .comment-textarea:focus {
        outline: none;
        border-color: #3b82f6;
        background: rgba(15, 23, 42, 0.8);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }

    .comment-submit-btn {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: white;
        border: none;
        padding: 15px 30px;
        border-radius: 14px;
        font-weight: 700;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        align-self: flex-start; /* Clean and premium left-aligned layout matching fields */
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .comment-submit-btn:hover {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }

    .comment-submit-btn:active {
        transform: translateY(0);
    }

    .modal-comment-item {
        display: flex;
        gap: 16px;
        animation: commentSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes commentSlideIn {
        from { transform: translateX(30px); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }

    .modal-comment-avatar {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.1);
    }

    .modal-comment-content {
        flex: 1;
        background: rgba(255, 255, 255, 0.03);
        padding: 16px 20px;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .modal-comment-user {
        font-weight: 700;
        font-size: 15.5px;
        color: #60a5fa;
        margin-bottom: 6px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .modal-comment-role {
        font-size: 12px;
        color: #94a3b8;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        background: rgba(255, 255, 255, 0.05);
        padding: 3px 10px;
        border-radius: 6px;
    }

    .modal-comment-text {
        font-size: 16px;
        line-height: 1.6;
        color: #e2e8f0;
    }

    .modal-comment-time {
        font-size: 13px;
        color: #64748b;
        margin-top: 12px;
    }

    /* New Form Structure styles matching screenshot */
    .form-item-row {
        display: flex;
        gap: 24px;
        align-items: flex-start;
        width: 100%;
    }

    .form-item-left {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .form-item-right {
        width: 190px;
        flex-shrink: 0;
        margin-top: 26px; /* Align with input field nicely */
        display: flex;
        gap: 10px;
        color: #64748b;
        font-size: 14.5px;
        line-height: 1.5;
        font-weight: 500;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        padding-left: 16px;
    }

    .form-item-right i, .form-item-right svg {
        color: #38bdf8 !important;
        font-size: 16px;
        margin-top: 2px;
        flex-shrink: 0;
    }

    /* Quick Updates Container style */
    .quick-updates-container {
        display: flex;
        gap: 6px; /* Slightly tighter gap */
        flex-wrap: nowrap; /* Forces chips to remain strictly on a single line! */
        overflow-x: auto; /* Gracefully allows sliding on small width viewports */
        width: 100%;
        scrollbar-width: none; /* Hides horizontal scrollbar */
    }
    
    .quick-updates-container::-webkit-scrollbar {
        display: none; /* Hides scrollbar on Webkit browsers */
    }

    /* Quick Updates Chips styling */
    .quick-update-chip {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 6px 10px; /* Highly compact padding */
        color: #f8fafc;
        font-size: 14px; /* Super compact font size */
        font-weight: 600;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        display: inline-flex;
        align-items: center;
        gap: 5px; /* Compact icon gap */
        user-select: none;
        white-space: nowrap; /* Prevents text wrap inside chip */
    }

    .quick-update-chip i, .quick-update-chip svg {
        font-size: 14.5px; /* Slightly more compact icons */
        flex-shrink: 0;
    }

    /* Class-based strict icon colors */
    .chip-moving-forward i, .chip-moving-forward svg {
        color: #3b82f6 !important;
    }
    .chip-waiting i, .chip-waiting svg {
        color: #f59e0b !important;
    }
    .chip-client-notified i, .chip-client-notified svg {
        color: #10b981 !important;
    }
    .chip-next-step i, .chip-next-step svg {
        color: #a855f7 !important;
    }

    .quick-update-chip:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-1px);
        color: #fff;
    }

    .quick-update-chip:active {
        transform: translateY(0);
    }

    .timeline-modal-cancel-btn {
        background: transparent;
        border: none;
        color: #94a3b8;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        padding: 10px 20px;
        border-radius: 12px;
        transition: all 0.25s ease;
    }

    .timeline-modal-cancel-btn:hover {
        color: #f8fafc;
        background: rgba(255, 255, 255, 0.05);
    }

    .header-status-icon-wrap i, .header-status-icon-wrap svg {
        color: #22c55e !important;
    }

    @media (max-width: 768px) {
        .form-item-row {
            flex-direction: column;
            gap: 12px;
        }
        .form-item-right {
            width: 100%;
            margin-top: 0;
            border-left: none;
            padding-left: 0;
        }
        .quick-updates-container {
            flex-wrap: wrap; /* Allows wrapping on extremely small mobile devices */
        }
    }

    /* Additional layout rules for narrow screens (<= 600px) and windowed layout wrapper */
    @media (max-width: 600px) {
        .timeline-modal-overlay {
            padding: 12px !important;
        }
        .timeline-modal-container {
            border-radius: 16px !important;
            max-height: 92vh !important;
        }
        .timeline-modal-header {
            padding: 16px 20px !important;
        }
        .timeline-modal-title {
            font-size: 18px !important;
        }
        .timeline-modal-left {
            padding: 16px 20px !important;
            gap: 16px !important;
        }
        .form-item-row {
            flex-direction: column !important;
            gap: 12px !important;
        }
        .form-item-right {
            width: 100% !important;
            margin-top: 0 !important;
            border-left: none !important;
            padding-left: 0 !important;
        }
        .quick-updates-container {
            flex-wrap: wrap !important;
            gap: 6px !important;
        }
        .quick-update-chip {
            padding: 5px 8px !important;
            font-size: 13px !important;
        }
        .comment-textarea {
            min-height: 100px !important;
            padding: 12px !important;
            font-size: 15px !important;
        }
        .comment-submit-btn {
            padding: 10px 20px !important;
            font-size: 15px !important;
            width: 100% !important;
        }
    }

    .chat-interface.windowed .timeline-modal-overlay {
        padding: 12px !important;
    }
    .chat-interface.windowed .timeline-modal-container {
        border-radius: 16px !important;
        max-height: 92vh !important;
    }
    .chat-interface.windowed .timeline-modal-header {
        padding: 16px 20px !important;
    }
    .chat-interface.windowed .timeline-modal-title {
        font-size: 18px !important;
    }
    .chat-interface.windowed .timeline-modal-left {
        padding: 16px 20px !important;
        gap: 16px !important;
    }
    .chat-interface.windowed .form-item-row {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .chat-interface.windowed .form-item-right {
        width: 100% !important;
        margin-top: 0 !important;
        border-left: none !important;
        padding-left: 0 !important;
    }
    .chat-interface.windowed .quick-updates-container {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .chat-interface.windowed .quick-update-chip {
        padding: 5px 8px !important;
        font-size: 13px !important;
    }
    .chat-interface.windowed .comment-textarea {
        min-height: 100px !important;
        padding: 12px !important;
        font-size: 15px !important;
    }
    .chat-interface.windowed .comment-submit-btn {
        padding: 10px 20px !important;
        font-size: 15px !important;
        width: 100% !important;
    }



    .cyan-glow-card {
        background: linear-gradient(145deg, #091428 0%, #050a15 100%) !important;
        backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(235, 216, 176, 0.4) !important;
        padding: 1.5rem;
        border-radius: 20px !important;
        position: relative !important;
        overflow: visible !important;
        box-shadow:
            0 0 40px rgba(235, 216, 176, 0.2),
            inset 0 0 40px rgba(235, 216, 176, 0.1),
            0 0 4px 1px rgba(235, 216, 176, 0.4) !important;
        transition: all 0.3s ease !important;
    }

    /* Subtle neon inset ring — replaces the dashed outline that read as a
       placeholder. A champagne hairline lit from both sides at low alpha, so
       it stays quiet behind dense card content and brightens on hover. */
    .cyan-glow-card::after {
        content: '' !important;
        position: absolute !important;
        top: 6px !important;
        left: 6px !important;
        right: 6px !important;
        bottom: 6px !important;
        border: 1px solid rgba(235, 216, 176, 0.16) !important;
        box-shadow: 0 0 10px rgba(235, 216, 176, 0.10), inset 0 0 12px rgba(235, 216, 176, 0.06) !important;
        border-radius: 14px !important;
        pointer-events: none !important;
    }
    .cyan-glow-card:hover::after {
        border-color: rgba(235, 216, 176, 0.28) !important;
        box-shadow: 0 0 14px rgba(235, 216, 176, 0.18), inset 0 0 16px rgba(235, 216, 176, 0.10) !important;
    }


    .cyan-glow-card:hover {
        transform: translateY(-2px) !important;
        box-shadow: 
            0 10px 25px rgba(0, 0, 0, 0.3),
            0 0 45px rgba(235, 216, 176, 0.3),
            inset 0 0 45px rgba(235, 216, 176, 0.2),
            0 0 6px 1px rgba(235, 216, 176, 0.6) !important;
        border-color: rgba(235, 216, 176, 0.6) !important;
    }

    /* Premium Deal Timeline Accordion */
    .timeline-accordion {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        font-family: 'Inter', sans-serif;
    }

    .timeline-stage {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    /* Connecting lines between stages */
    .timeline-stage:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 37px;
        top: 60px;
        bottom: -12px;
        width: 2px;
        background: linear-gradient(to bottom, var(--stage-color), rgba(255, 255, 255, 0.05));
        z-index: 1;
        opacity: 0.5;
    }

    .timeline-stage.active:not(:last-child)::after {
        opacity: 1;
        background: linear-gradient(to bottom, var(--stage-color), var(--next-stage-color, rgba(255, 255, 255, 0.1)));
    }

    .timeline-stage:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

    .timeline-stage.active {
        background: linear-gradient(145deg, #091428 0%, #050a15 100%) !important;
        backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(235, 216, 176, 0.4) !important;
        border-radius: 20px !important;
        overflow: visible !important;
        box-shadow:
            0 0 40px rgba(235, 216, 176, 0.2),
            inset 0 0 40px rgba(235, 216, 176, 0.1),
            0 0 4px 1px rgba(235, 216, 176, 0.4) !important;
        transition: all 0.3s ease !important;
    }

    /* Subtle neon inset ring — replaces the dashed outline that read as a
       placeholder. A champagne hairline lit from both sides at low alpha, so
       it stays quiet behind dense card content and brightens on hover. */
    .timeline-stage.active::before {
        content: '' !important;
        position: absolute !important;
        top: 6px !important;
        left: 6px !important;
        right: 6px !important;
        bottom: 6px !important;
        border: 1px solid rgba(235, 216, 176, 0.16) !important;
        box-shadow: 0 0 10px rgba(235, 216, 176, 0.10), inset 0 0 12px rgba(235, 216, 176, 0.06) !important;
        border-radius: 14px !important;
        pointer-events: none !important;
        background: none;
        z-index: 0;
    }
    .timeline-stage.active:hover::before {
        border-color: rgba(235, 216, 176, 0.28) !important;
        box-shadow: 0 0 14px rgba(235, 216, 176, 0.18), inset 0 0 16px rgba(235, 216, 176, 0.10) !important;
    }


    .timeline-stage.active:hover {
        transform: translateY(-2px) !important;
        box-shadow: 
            0 10px 25px rgba(0, 0, 0, 0.3),
            0 0 45px rgba(235, 216, 176, 0.3),
            inset 0 0 45px rgba(235, 216, 176, 0.2),
            0 0 6px 1px rgba(235, 216, 176, 0.6) !important;
        border-color: rgba(235, 216, 176, 0.6) !important;
    }

    .stage-header {
        padding: 16px 20px;
        display: flex;
        align-items: center;
        gap: 16px;
        cursor: pointer;
        user-select: none;
    }

    .stage-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        background: color-mix(in srgb, var(--stage-color, #d4af37) 15%, transparent);
        color: var(--stage-color, #d4af37);
        transition: transform 0.3s ease;
        position: relative;
        z-index: 2; /* Icon sits above the line */
        box-shadow: 0 0 15px color-mix(in srgb, var(--stage-color, #d4af37) 30%, transparent);
    }

    .timeline-stage:hover .stage-icon {
        transform: scale(1.1);
    }

    .stage-info {
        flex: 1;
    }

    .stage-title {
        color: #f0dfa6;
        font-weight: 600;
        font-size: 16px;
        margin: 0;
    }

    .stage-status {
        color: #a68c52;
        font-size: 14px;
        margin-top: 2px;
    }

    .stage-arrow {
        color: #a68c52;
        font-size: 14px;
        transition: transform 0.3s ease;
    }

    .timeline-stage.active .stage-arrow {
        transform: rotate(180deg);
        color: #f0dfa6;
    }

    .stage-content {
        max-height: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        background: rgba(0, 0, 0, 0.2);
    }

    .timeline-stage.active .stage-content {
        max-height: 5000px;
        opacity: 1;
        padding-bottom: 16px;
        overflow-x: auto; /* Ensure table doesn't clip on small screens */
    }

    .sub-steps-list {
        padding: 8px 0; /* Removed fixed side padding to respect table layout */
        display: table-row-group; /* Fixed: tbody should be table-row-group, not flex */
        position: relative;
    }

    .sub-steps-list::before {
        content: "";
        position: absolute;
        left: 37px;
        top: 0;
        bottom: 16px;
        width: 1px;
        background: rgba(255, 255, 255, 0.1);
    }

    .sub-step {
        display: table-row; /* Fixed: tr should be table-row, not flex */
        color: #ebd8b0;
        font-size: 15px;
        position: relative;
        transition: background 0.2s ease;
        cursor: pointer;
    }

    .sub-step:hover {
        color: #f0dfa6;
    }

    .sub-step::before {
        content: "";
        position: absolute;
        left: -18px;
        top: 50%;
        transform: translateY(-50%);
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #6b5a2e;
        border: 2px solid #0f172a;
        z-index: 2;
        transition: all 0.3s ease;
    }

    .sub-step.completed {
        color: #d4af37;
        font-weight: 600;
    }

    .sub-step.completed::before {
        background: #d4af37;
        box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
        border-color: #0d1e35;
        transform: translateY(-50%) scale(1.1);
    }

    .sub-step.active {
        color: #f0dfa6;
        font-weight: 500;
    }

    .sub-step.active::before {
        background: var(--stage-color);
        box-shadow: 0 0 12px var(--stage-color);
        transform: translateY(-50%) scale(1.3);
        animation: subStepPulse 2s infinite;
    }

    @keyframes subStepPulse {
        0% { transform: translateY(-50%) scale(1.1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--stage-color) 40%, transparent); }
        70% { transform: translateY(-50%) scale(1.4); box-shadow: 0 0 0 10px transparent; }
        100% { transform: translateY(-50%) scale(1.1); box-shadow: 0 0 0 0 transparent; }
    }

    .pulse-badge {
        animation: pulseGlow 2s infinite ease-in-out;
    }

    @keyframes pulseGlow {
        0% { opacity: 0.8; box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
        50% { opacity: 1; box-shadow: 0 0 15px rgba(212, 175, 55, 0.5); }
        100% { opacity: 0.8; box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
    }

    /* Mute upcoming stages */
    .timeline-stage:not(.active):not(.stage-offer) {
        opacity: 0.5;
        filter: grayscale(0.5);
    }
    
    .sub-step:not(.completed):not(.active) {
        opacity: 0.4;
    }

    .sub-step-label {
        /* flex: 1; - Removed for table compatibility */
    }

    .sub-step-meta {
        font-size: 13px;
        color: #a68c52;
        font-weight: 500;
        white-space: normal; /* Allow AI reasoning text to wrap */
        min-width: 120px;
    }
    
    .sub-step.completed .sub-step-label {
        color: #d4af37;
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    }
    .sub-step.active .sub-step-label {
        color: #ebd8b0;
        text-shadow: 0 0 10px rgba(235, 216, 176, 0.25);
        font-weight: 600;
    }
    /* Mobile-only Deal Timeline card elements — hidden on desktop, shown in <=1024px block */
    .tlm-head, .tlm-tip { display: none; }

    /* Stage Colors — full golden palette */
    .stage-offer {
        --stage-color: #d4af37;
        --next-stage-color: #ebd8b0;
    }
    .stage-inspection {
        --stage-color: #ebd8b0;
        --next-stage-color: #c9a227;
    }
    .stage-financing {
        --stage-color: #c9a227;
        --next-stage-color: #d4af37;
    }
    .stage-closing {
        --stage-color: #d4af37;
    }

    /* Custom scrollbar for timeline area */
    .timeline-scroll-area::-webkit-scrollbar {
        width: 4px;
    }
    .timeline-scroll-area::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.1);
    }
    .timeline-scroll-area::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.1);
        border-radius: 10px;
    }



    #footer {
        background:
            linear-gradient(160deg, rgba(12, 16, 34, 0.92) 0%, rgba(6, 17, 33, 0.95) 55%, rgba(4, 13, 31, 0.97) 100%),
            radial-gradient(circle at 88% 12%, rgba(139, 92, 246, 0.20) 0%, transparent 45%),
            url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1280&q=55');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: #fff;
        padding: 5rem 0 2rem;
        font-family: 'Poppins', sans-serif;
    }

    /* Mobile: smaller image + stronger overlay so cards stay readable */
    @media (max-width: 767px) {
        #footer {
            background:
                linear-gradient(160deg, rgba(12, 16, 34, 0.95) 0%, rgba(6, 17, 33, 0.97) 60%, rgba(4, 13, 31, 0.98) 100%),
                radial-gradient(circle at 85% 8%, rgba(139, 92, 246, 0.18) 0%, transparent 50%),
                url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=720&q=50');
            background-size: cover;
            background-position: center top;
            background-repeat: no-repeat;
        }
    }

    /* Restoring Previous Contact Box UI */
    .footer-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 3rem;
        display: none !important;
        gap: 20px;
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .contact-box-link {
        text-decoration: none !important;
        display: inline-block;
    }

    .contact-box {
        display: flex;
        align-items: center;
        padding: 12px 20px;
        border-radius: 15px;
        background: rgba(13, 20, 30, 0.6);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
        min-width: 320px;
        max-width: 380px;
        transition: all 0.3s ease;
    }

    .glass-glow::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 15px;
        padding: 1.5px;
        background: linear-gradient(90deg, #d53369, #daae51, #4bd6e5);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }

    .contact-box-link:hover .contact-box {
        background: rgba(13, 20, 30, 0.8);
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
        transform: translateY(-3px);
    }

    .contact-box-link:hover .glass-glow::before {
        opacity: 1;
    }

    .icon-wrapper {
        margin-right: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .icon-wrapper i {
        font-size: 26px;
        line-height: 1;
    }

    .fa-instagram.old-style {
        background: linear-gradient(180deg, #d648d7 0%, #7b2ff7 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .fa-envelope.old-style {
        background: linear-gradient(180deg, #4bd6e5 0%, #9f5afd 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .fa-handshake.old-style {
        background: linear-gradient(180deg, #4bd6e5 0%, #2980b9 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .text-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .text-content .title {
        color: #ffffff;
        font-weight: 700;
        font-size: 16px;
        margin: 0 !important;
        line-height: 1.1;
    }

    .text-content .subtitle {
        color: #4bd6e5;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.1;
        margin: 0 !important;
    }

    .arrow-icon {
        color: #ffffff;
        font-size: 15.5px;
        margin-left: 15px;
        opacity: 0.7;
    }

    .footer-title {
        color: #fff;
        font-weight: 500;
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-links li {
        margin-bottom: 0.8rem;
    }

    .footer-links li a {
        color: #ADBCC2;
        text-decoration: none;
        transition: color 0.3s ease;
        display: flex;
        align-items: center;
        font-size: 1.2rem;
    }

    .footer-links li a:hover {
        color: #fff;
    }

    .footer-links li a i {
        font-size: 0.9rem;
        margin-right: 8px;
        color: #fff;
    }

    @media (max-width: 767px) {
        .footer-title {
            margin-bottom: 0.5rem !important; /* Reduced gap */
            padding-left: 2px; /* Optical alignment with the arrows */
        }
    }

    /* Newsletter Card */
    .newsletter-card {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        padding: 2.5rem;
        height: 100%;
    }

    .newsletter-card h4 {
        color: #fff;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .newsletter-card p {
        color: #ADBCC2;
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .newsletter-input {
        background: rgba(13, 20, 31, 0.8) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 10px !important;
        padding: 0.8rem 1.2rem !important;
        color: #fff !important;
        width: 100% !important;
        margin-bottom: 1rem !important;
    }

    .newsletter-input::placeholder {
        color: #6D7E84 !important;
    }

    .btn-get-updates {
        background: linear-gradient(90deg, #3B82F6, #2563EB);
        color: #fff;
        border: none;
        border-radius: 10px;
        padding: 0.8rem;
        width: 100%;
        font-weight: 600;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .btn-get-updates:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
        color: #fff;
    }

    .newsletter-footer-text {
        font-size: 0.75rem;
        color: #6D7E84;
        margin-top: 1rem;
    }

    .newsletter-footer-text a {
        color: #3B82F6;
        text-decoration: none;
    }

    /* Connect Section */
    .connect-title {
        color: #fff;
        font-weight: 500;
        margin: 2rem 0 1rem;
        font-size: 1rem;
    }


    .connect-btn {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 0.6rem 1rem;
        color: #ADBCC2;
        text-decoration: none;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
        flex: 1 1 calc(50% - 10px);
        min-width: 140px;
    }

    .connect-btn i {
        margin-right: 8px;
        font-size: 1rem;
    }

    .connect-btn.wide {
        flex: 1 1 100%;
    }

    .connect-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.2);
    }

    .icon-purple {
        color: #A855F7;
    }

    .icon-blue {
        color: #3B82F6;
    }

    .icon-info {
        color: #0EA5E9;
    }

    /* Footer Bottom */
    .footer-logo-main {
        margin-top: 3rem;
    }

    .footer-logo-main img {
        height: 45px;
    }





    @media (max-width: 991px) {
        .newsletter-card {
            margin-top: 3rem;
        }

    }

    /* ===================== FOOTER REDESIGN (match design) ===================== */
    #footer .footer-col-head {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 18px;
    }

    .footer-icon-box {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 19px;
        border: 1px solid rgba(255, 255, 255, 0.10);
        transition: transform .3s ease, box-shadow .3s ease;
    }

    .footer-icon-box.fic-company {
        color: #b58bff;
        background: linear-gradient(145deg, rgba(168,85,247,.25), rgba(99,102,241,.10));
        border-color: rgba(168,85,247,.40);
        box-shadow: 0 6px 18px rgba(168,85,247,.22);
    }
    .footer-icon-box.fic-explore {
        color: #34d9ee;
        background: linear-gradient(145deg, rgba(34,211,238,.22), rgba(20,184,166,.10));
        border-color: rgba(34,211,238,.40);
        box-shadow: 0 6px 18px rgba(34,211,238,.20);
    }
    .footer-icon-box.fic-support {
        color: #f472b6;
        background: linear-gradient(145deg, rgba(236,72,153,.25), rgba(168,85,247,.10));
        border-color: rgba(236,72,153,.40);
        box-shadow: 0 6px 18px rgba(236,72,153,.22);
    }
    .footer-icon-box.fic-legal {
        color: #a78bfa;
        background: linear-gradient(145deg, rgba(139,92,246,.25), rgba(99,102,241,.10));
        border-color: rgba(139,92,246,.40);
        box-shadow: 0 6px 18px rgba(139,92,246,.22);
    }

    #footer .footer-col-head .footer-title {
        margin-bottom: 0 !important;
        font-size: 1.3rem;
        display: flex;
        flex-direction: column;
        gap: 7px;
    }
    .footer-title .title-underline {
        width: 28px;
        height: 3px;
        border-radius: 3px;
        display: block;
    }
    .tu-company { background: linear-gradient(90deg,#a855f7,#6366f1); }
    .tu-explore { background: linear-gradient(90deg,#22d3ee,#14b8a6); }
    .tu-support { background: linear-gradient(90deg,#ec4899,#a855f7); }
    .tu-legal   { background: linear-gradient(90deg,#8b5cf6,#6366f1); }

    /* ===== Unified footer nav container (one rounded box, 4 sections) ===== */
    #footer .footer-nav-container {
        background: linear-gradient(150deg, rgba(20,28,52,.48) 0%, rgba(8,13,28,.66) 100%);
        border: 1px solid rgba(255,255,255,.09);
        border-radius: 22px;
        box-shadow: 0 16px 36px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.04);
        overflow: hidden;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    #footer .footer-nav-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    #footer .footer-section { padding: 28px 30px; }

    #footer .footer-col-head { position: relative; z-index: 1; }

    #footer .footer-links {
        margin-top: 8px;
        padding: 0;
        list-style: none;
    }
    #footer .footer-links li { margin-bottom: 2px; }
    #footer .footer-links li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-size: 1.02rem;
        padding: 8px 6px;
        border-radius: 9px;
        color: #ADBCC2;
        transition: color .25s ease, background .25s ease, padding .25s ease;
    }
    #footer .footer-links li a .fl-label { display: inline-flex; align-items: center; gap: 11px; }
    #footer .footer-links li a .fl-label i {
        width: 18px;
        text-align: center;
        font-size: .95rem;
        margin-right: 0;
        transition: color .25s ease;
    }
    #footer .footer-links li a .fl-chev {
        font-size: .8rem;
        color: #5b6b86;
        margin-right: 0;
        transition: transform .25s ease, color .25s ease;
    }
    #footer .footer-links li a:hover {
        color: #fff;
        background: rgba(255,255,255,.045);
        padding-left: 12px;
    }
    #footer .footer-links li a:hover .fl-chev { color: #a855f7; transform: translateX(3px); }

    /* leading link icons tinted to each section's accent */
    #footer .footer-section:nth-child(1) .fl-label i { color: #a855f7; }
    #footer .footer-section:nth-child(2) .fl-label i { color: #22d3ee; }
    #footer .footer-section:nth-child(3) .fl-label i { color: #ec4899; }
    #footer .footer-section:nth-child(4) .fl-label i { color: #8b5cf6; }

    /* ===== Footer links: collapsed bar + Expand / Collapse ===== */
    #footer .footer-nav-wrap {
        background: linear-gradient(150deg, rgba(20,28,52,.48) 0%, rgba(8,13,28,.66) 100%);
        border: 1px solid rgba(255,255,255,.09);
        border-radius: 22px;
        box-shadow: 0 16px 36px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.04);
    }
    #footer .footer-nav-bar {
        display: flex;
        align-items: center;
        gap: 18px;
        padding: 14px 18px 14px 24px;
    }
    #footer .fnb-heads { display: flex; flex: 1 1 auto; min-width: 0; }
    #footer .fnb-head {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 16px;
        border-left: 1px solid rgba(255,255,255,.10);
    }
    #footer .fnb-head:first-child { border-left: 0; padding-left: 0; }
    #footer .fnb-head .footer-icon-box i { color: inherit; }
    #footer .fnb-title {
        display: flex;
        flex-direction: column;
        gap: 7px;
        color: #fff;
        font-weight: 700;
        font-size: 1.15rem;
        line-height: 1.1;
    }
    #footer .fnb-title .title-underline { width: 28px; height: 3px; border-radius: 3px; display: block; }
    /* Own font, size and icon colour so site-wide button / icon rules
       cannot shrink, fade or recolour it. */
    #footer .fnb-toggle {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-width: 150px;
        min-height: 46px;
        margin: 0;
        padding: 0 24px;
        border-radius: 50px;
        /* mint, as in the client's About design (2026-11-19) */
        background: linear-gradient(135deg, #c2f8e2 0%, #93ebc9 50%, #6fdcb3 100%);
        border: 1px solid rgba(255,255,255,.4);
        color: #0b2a24;
        font-family: inherit;
        font-weight: 700;
        font-size: 16px;
        letter-spacing: .2px;
        line-height: 1;
        text-transform: none;
        opacity: 1;
        cursor: pointer;
        box-shadow: 0 6px 18px rgba(80,210,165,.3), inset 0 1px 0 rgba(255,255,255,.55);
        transition: transform .2s ease, box-shadow .25s ease, filter .25s ease;
    }
    #footer .fnb-toggle .fnb-toggle-text { color: #0b2a24 !important; font-size: 16px; font-weight: 700; }
    #footer .fnb-toggle i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        background: none;
        color: #0b2a24 !important;
        font-size: 15px;
        margin: 0;
        transition: transform .3s ease;
    }
    #footer .footer-nav-wrap.is-open .fnb-toggle i { transform: rotate(-90deg); } /* → turns to ↑ while open */
    #footer .fnb-toggle:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(80,210,165,.42), inset 0 1px 0 rgba(255,255,255,.55); }
    #footer .fnb-toggle:active { transform: translateY(0); }
    #footer .fnb-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
    #footer .footer-nav-wrap .footer-nav-container { margin: 0 8px 8px; }
    #footer .footer-nav-wrap.is-open .footer-nav-container { animation: fnbIn .25s ease; }
    @keyframes fnbIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
    @media (prefers-reduced-motion: reduce) {
        #footer .footer-nav-wrap.is-open .footer-nav-container { animation: none; }
    }
    @media (max-width: 991px) {
        #footer .fnb-head { padding: 0 10px; gap: 9px; }
        #footer .fnb-title { font-size: 1rem; }
    }

    /* ===== Newsletter card - deep blue-green (client daily report, 2026-11-25:
       section #102833, Tiffany #85D8D0 Get Updates button, #10212B button text).
       The old violet values are kept in the comments beside each rule. ===== */
    #footer .newsletter-card {
        position: relative;
        overflow: hidden;
        /* was: radial-gradient(circle at 92% 12%, rgba(168,85,247,.20), transparent 55%),
                linear-gradient(150deg, rgba(34,22,64,.88) 0%, rgba(12,16,34,.92) 100%) */
        background: #102833 !important;
        /* was: 1px solid rgba(139,92,246,.30) */
        border: 1px solid rgba(133,216,208,.35) !important;
        border-radius: 18px !important;
        padding: 1.6rem 1.5rem !important;
        height: auto !important;
        margin-top: 1.6rem;
        box-shadow: 0 12px 30px rgba(0,0,0,.35), 0 0 24px rgba(133,216,208,.08) !important; /* was violet glow rgba(139,92,246,.10) */
    }
    #footer .newsletter-card h4 { font-size: 1.3rem; margin-bottom: .55rem; }
    #footer .newsletter-card p { font-size: .85rem; line-height: 1.55; margin-bottom: 1.1rem; }

    /* Envelope graphic + notification badge */
    .newsletter-deco {
        position: absolute;
        top: 18px;
        right: 22px;
        font-size: 42px;
        line-height: 1;
        /* was violet: linear-gradient(135deg,#c084fc,#8b5cf6), glow rgba(168,85,247,.45) */
        background: linear-gradient(135deg,#b9efe9,#85D8D0);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 6px 14px rgba(133,216,208,.40));
        transform: rotate(-8deg);
        opacity: .95;
    }
    .newsletter-deco .deco-badge {
        position: absolute;
        top: -7px;
        right: -9px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        border-radius: 50%;
        background: #22d3ee;
        color: #061121;
        -webkit-text-fill-color: #061121;
        font-size: 13px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(34,211,238,.55);
    }

    /* Form row: input + button side-by-side */
    #footer .newsletter-form-row {
        position: relative;
        display: flex;
        gap: 10px;
        align-items: center;
    }
    #footer .newsletter-form-row .newsletter-input {
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
        margin-bottom: 0 !important;
    }
    #footer .newsletter-form-row .btn-get-updates {
        flex: 0 0 auto;
        width: auto !important;
        white-space: nowrap;
        padding: .8rem 1.4rem;
    }

    #footer .newsletter-footer-text { font-size: .72rem; margin-top: .9rem; }

    /* Get Updates button - Tiffany blue #85D8D0, dark navy #10212B text
       (client daily report, 2026-11-25). Old violet button, kept for reference:
    #footer .btn-get-updates {
        background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%) !important;
        border: 1px solid rgba(192,132,252,.40) !important;
        box-shadow: 0 4px 15px rgba(124,58,237,.35) !important;
    }
    #footer .btn-get-updates:hover {
        background: linear-gradient(135deg, #b06bff 0%, #8b3df0 100%) !important;
        box-shadow: 0 6px 20px rgba(124,58,237,.50) !important;
        transform: translateY(-2px);
        color: #fff;
    }
    */
    #footer .btn-get-updates {
        background: #85D8D0 !important;
        color: #10212B !important;
        font-weight: 700;
        border: 1px solid #85D8D0 !important;
        box-shadow: 0 4px 15px rgba(133,216,208,.25) !important;
    }
    #footer .btn-get-updates:hover {
        background: #9be2db !important;
        color: #10212B !important;
        box-shadow: 0 6px 20px rgba(133,216,208,.40) !important;
        transform: translateY(-2px);
    }
    #footer .newsletter-card .newsletter-input {
        background: rgba(8,24,32,.75) !important;
        border-color: rgba(133,216,208,.35) !important;
    }
    #footer .newsletter-footer-text a { color: #85D8D0; }

    /* Affiliates full-width card */
    .affiliates-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin-top: 2.5rem;
        padding: 22px 26px;
        border-radius: 18px;
        background: linear-gradient(135deg, rgba(20,16,46,.85), rgba(10,14,28,.85));
        border: 1px solid rgba(168,85,247,.30);
        box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 25px rgba(168,85,247,.10);
        transition: all .3s ease;
    }
    .affiliates-card:hover {
        border-color: rgba(168,85,247,.55);
        box-shadow: 0 14px 36px rgba(0,0,0,.45), 0 0 32px rgba(168,85,247,.20);
    }
    .affiliates-card .aff-left { display: flex; align-items: center; gap: 18px; }
    .affiliates-card .aff-icon {
        width: 54px;
        height: 54px;
        min-width: 54px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        color: #c084fc;
        background: linear-gradient(145deg, rgba(168,85,247,.22), rgba(236,72,153,.14));
        border: 1px solid rgba(192,132,252,.40);
        box-shadow: 0 6px 18px rgba(168,85,247,.25);
    }
    .affiliates-card .aff-text h5 {
        margin: 0 0 3px 0;
        font-size: 1.15rem;
        font-weight: 600;
        color: #fff;
    }
    .affiliates-card .aff-text h5 span { color: #c084fc; }
    .affiliates-card .aff-text p { margin: 0; font-size: .9rem; color: #94a3b8; }
    .affiliates-card .aff-arrow {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #c084fc;
        text-decoration: none;
        border: 1px solid rgba(192,132,252,.45);
        background: rgba(168,85,247,.08);
        transition: all .3s ease;
    }
    .affiliates-card .aff-arrow:hover {
        background: rgba(168,85,247,.20);
        transform: translateX(3px);
        box-shadow: 0 0 18px rgba(168,85,247,.35);
    }

    .affiliates-card .aff-left { min-width: 0; }
    .aff-signup-card { margin-top: 1rem; }
    .aff-signup-card { flex-wrap: wrap; row-gap: 16px; }
    .aff-signup-card .aff-right { display: flex; align-items: center; gap: 10px; flex: 0 1 720px; min-width: 0; }
    .aff-signup-card .aff-share { flex: 1 1 auto; max-width: none; }
    .aff-signup-card .aff-actions { display: flex; gap: 8px; flex: 0 0 auto; }
    .aff-signup-card .aff-act {
        display: inline-flex; align-items: center; gap: 7px; height: 50px; padding: 0 16px;
        border-radius: 50px; border: 1px solid rgba(192,132,252,.45); background: rgba(168,85,247,.10);
        color: #e9d5ff; font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .25s ease;
    }
    .aff-signup-card .aff-act i { color: #c084fc; }
    .aff-signup-card .aff-act:hover { background: rgba(168,85,247,.22); color: #fff; transform: translateY(-1px); }
    .aff-signup-card .aff-act--share { background: linear-gradient(135deg, #ec4899, #a855f7); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(236,72,153,.30); }
    .aff-signup-card .aff-act--share i { color: #fff; }
    .aff-signup-card .aff-act--share:hover { background: linear-gradient(135deg, #f472b6, #c084fc); }
    /* "Watch on YouTube": the whole block is one link to the tutorial */
    .aff-signup-card .aff-video {
        flex: 1 1 100%; display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 16px; box-sizing: border-box;
        background: #EFE4D0; border: 1px solid #D8C5A3;
        color: #0B1625 !important; text-decoration: none !important; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
    }
    .aff-signup-card .aff-video:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
    .aff-signup-card .aff-video:focus-visible { outline: 3px solid #c084fc; outline-offset: 3px; }
    .aff-signup-card .aff-video-ico { display: inline-flex; flex: 0 0 auto; line-height: 0; }
    .aff-signup-card .aff-video-ico svg { width: 56px; height: 40px; display: block; }
    .aff-signup-card .aff-video-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
    .aff-signup-card .aff-video-text b { color: #0B1625 !important; font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
    .aff-signup-card .aff-video-text small { color: #4B5563 !important; font-size: .92rem; line-height: 1.35; }
    .aff-signup-card .aff-video-out { margin-left: auto; flex: 0 0 auto; color: #0B1625 !important; font-size: 1.2rem; }
    @media (max-width: 480px) {
        .aff-signup-card .aff-video { gap: 12px; }
        .aff-signup-card .aff-video-ico svg { width: 46px; height: 33px; }
        .aff-signup-card .aff-video-text b { font-size: 1rem; }
        .aff-signup-card .aff-video-text small { font-size: .85rem; }
    }

    /* HOUSBE Affiliates popup (Company > HOUSBE Affiliates). It sits just under
       the QR and Share windows (z-index 100000) so those open on top of it. */
    html.aff-popup-open { overflow: hidden; }
    .aff-popup { position: fixed; inset: 0; z-index: 99990; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(2,6,23,.72); backdrop-filter: blur(4px); }
    .aff-popup[hidden] { display: none !important; }
    .aff-popup-box {
        position: relative; width: 100%; max-width: 940px; max-height: calc(100vh - 32px); overflow-y: auto; box-sizing: border-box;
        padding: 52px 22px 22px; border-radius: 22px; text-align: left;
        background: linear-gradient(180deg, #120f2e 0%, #0a0d1e 100%); border: 1px solid rgba(168,85,247,.40);
        box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 40px rgba(168,85,247,.18);
    }
    .aff-popup-box > a.affiliates-card { margin-top: 0; }
    .aff-popup-box .aff-popup-x { top: 12px; right: 14px; }
    @media (max-width: 575px) {
        .aff-popup { padding: 10px; }
        .aff-popup-box { padding: 50px 12px 12px; max-height: calc(100vh - 20px); }
    }

    /* QR and Share windows */
    html.aff-modal-open { overflow: hidden; }
    .aff-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(2,6,23,.72); backdrop-filter: blur(4px); }
    .aff-modal[hidden] { display: none !important; }
    .aff-modal-box {
        position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px 24px 22px; box-sizing: border-box;
        border-radius: 18px; background: linear-gradient(180deg, #1a1440 0%, #0d1024 100%); border: 1px solid rgba(168,85,247,.40);
        box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 40px rgba(168,85,247,.18); color: #e2e8f0; text-align: left;
    }
    .aff-modal-box h4 { margin: 0 34px 6px 0; font-size: 1.15rem; font-weight: 700; color: #fff; }
    .aff-modal-box h4 i { color: #c084fc; margin-right: 6px; }
    .aff-modal-sub { margin: 0 0 16px; font-size: .88rem; color: #94a3b8; }
    .aff-modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
    .aff-modal-x:hover { background: rgba(255,255,255,.16); }
    .aff-qr-card { display: flex; justify-content: center; padding: 14px; border-radius: 14px; background: #fff; }
    .aff-qr-card img { display: block; width: 260px; max-width: 100%; height: auto; min-height: 120px; }
    .aff-qr-err { margin: 40px 10px; color: #475569; font-size: .9rem; line-height: 1.5; text-align: center; }
    .aff-qr-err[hidden] { display: none; }
    .aff-modal-row { display: flex; gap: 10px; margin-top: 16px; }
    .aff-btn {
        flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 50px;
        border: 1px solid rgba(192,132,252,.45); background: rgba(168,85,247,.10); color: #fff !important;
        font-size: .9rem; font-weight: 600; text-decoration: none !important; cursor: pointer;
    }
    .aff-btn:hover { background: rgba(168,85,247,.22); }
    .aff-btn--main { background: linear-gradient(135deg, #a855f7, #7c3aed); border-color: transparent; }
    .aff-plat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; margin-bottom: 16px; }
    .aff-plat a { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: .74rem; font-weight: 500; color: #cbd5e1 !important; text-decoration: none !important; text-align: center; cursor: pointer; }
    .aff-plat a[hidden] { display: none; }
    .aff-plat a em { font-style: normal; }
    .aff-plat a span { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 21px; transition: transform .2s ease; }
    .aff-plat a:hover span { transform: translateY(-2px) scale(1.06); }
    .aff-plat a:hover { color: #fff !important; }
    .aff-msg { display: block; width: 100%; box-sizing: border-box; resize: none; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(148,163,184,.25); background: rgba(2,6,23,.55); color: #cbd5e1; font-size: .8rem; line-height: 1.5; font-family: inherit; }
    .aff-modal-note { margin: 10px 0 0; font-size: .76rem; line-height: 1.5; color: #8a94a8; }
    /* Send by email in the Share window (share-mail-api.php) */
    .aff-mail { margin: 0 0 16px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(168,85,247,.30); }
    .aff-mail[hidden], .aff-mail [hidden] { display: none !important; }
    .aff-mail-form { display: flex; flex-direction: column; }
    .aff-mail-title { display: block; font-size: 1.08rem; color: #fff; }
    .aff-mail-sub { display: block; margin: 2px 0 4px; font-size: .86rem; color: #94a3b8; }
    .aff-mail-lab { display: block; margin: 10px 0 5px; font-size: .88rem; font-weight: 600; color: #e2e8f0; }
    .aff-mail-lab em { font-style: normal; font-weight: 400; color: #94a3b8; }
    .aff-modal-box .aff-mail-in { display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 11px 13px; border-radius: 10px; border: 1px solid rgba(148,163,184,.30);
        background: rgba(2,6,23,.60); color: #fff; font: inherit; font-size: 16px; line-height: 1.4; box-shadow: none; outline: none; -webkit-appearance: none; appearance: none; }
    .aff-modal-box .aff-mail-in::placeholder { color: #7c8aa0; opacity: 1; }
    .aff-modal-box .aff-mail-in:focus { border-color: #c084fc; box-shadow: 0 0 0 3px rgba(192,132,252,.25); }
    .aff-modal-box .aff-mail-in[aria-invalid="true"] { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.2); }
    .aff-modal-box textarea.aff-mail-note { min-height: 80px; max-height: 200px; resize: vertical; }
    .aff-mail-hint { display: block; margin-top: 5px; font-size: .8rem; color: #8a94a8; }
    .aff-mail-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 8px; }
    .aff-mail-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
    .aff-mail-chips button { margin: 0; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(192,132,252,.45); background: rgba(168,85,247,.10); color: #e9d5ff;
        font: inherit; font-size: .84rem; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer; }
    .aff-mail-chips button:hover { background: rgba(168,85,247,.22); }
    .aff-mail-chips button.is-used { opacity: .5; }
    .aff-mail-count { flex: none; padding-top: 6px; font-size: .72rem; color: #8a94a8; font-variant-numeric: tabular-nums; }
    .aff-mail-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
    .aff-mail-err { margin: 10px 0 0; padding: 9px 11px; border-radius: 10px; background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.45); color: #fecaca; font-size: .88rem; line-height: 1.4; }
    .aff-modal-box .aff-mail-send { flex: none; width: 100%; margin-top: 12px; }
    .aff-mail-send.is-busy { opacity: .7; cursor: progress; }
    .aff-mail-from { display: block; margin-top: 7px; text-align: center; font-size: .8rem; color: #8a94a8; }
    .aff-mail-done { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; text-align: center; }
    .aff-mail-done b { font-size: 1rem; color: #fff; }
    .aff-mail-done span { font-size: .84rem; color: #cbd5e1; overflow-wrap: anywhere; }
    .aff-mail-tick { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(16,185,129,.18); color: #34d399 !important; font-size: 1.2rem; }
    .aff-mail-again { margin-top: 4px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
    .aff-mail-own { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; font-size: .86rem; color: #c4b5fd !important; text-decoration: underline !important; }
    @media (max-width: 991px) {
        .aff-signup-card .aff-right { flex: 1 1 100%; }
    }
    @media (max-width: 575px) {
        .aff-signup-card .aff-right { flex-wrap: wrap; }
        .aff-signup-card .aff-share { flex: 1 1 100%; }
        .aff-signup-card .aff-actions { flex: 1 1 100%; }
        .aff-signup-card .aff-act { flex: 1; justify-content: center; height: 44px; }
    }
    .affiliates-card .aff-share {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        max-width: 560px;
        flex: 0 1 560px;
        padding: 6px 6px 6px 16px;
        border-radius: 50px;
        background: rgba(168,85,247,.08);
        border: 1px solid rgba(192,132,252,.40);
    }
    .affiliates-card .aff-link {
        display: flex;
        align-items: center;
        gap: 9px;
        flex: 1;
        min-width: 0;
        color: #d8b4fe !important;
        font-size: .92rem;
        font-weight: 500;
        text-decoration: none !important;
    }
    .affiliates-card .aff-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .affiliates-card .aff-link:hover span { text-decoration: underline; color: #fff; }
    .affiliates-card .aff-link i { color: #c084fc; flex: 0 0 auto; }
    .affiliates-card .aff-copy {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        flex: 0 0 auto;
        height: 38px;
        padding: 0 16px;
        border: 0;
        border-radius: 50px;
        background: linear-gradient(135deg, #a855f7, #7c3aed);
        color: #fff;
        font-size: .88rem;
        font-weight: 600;
        cursor: pointer;
        transition: all .25s ease;
        box-shadow: 0 4px 14px rgba(168,85,247,.35);
    }
    .affiliates-card .aff-copy:hover { filter: brightness(1.1); transform: translateY(-1px); }
    .affiliates-card .aff-copy.is-done { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 14px rgba(16,185,129,.35); }
    @media (max-width: 767px) {
        /* nowrap: a wrapping column sizes its line to the content's width, so the
           card's rows spilled past the popup's edge on a phone */
        .aff-signup-card { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
        .affiliates-card .aff-share { max-width: none; flex-basis: auto; }
    }

    /* Footer bottom: brand + connect */
    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 30px;
        margin-top: 3rem;
        padding-top: 2.5rem;
        border-top: 1px solid rgba(255,255,255,.06);
        flex-wrap: wrap;
    }
    .fb-brand { max-width: 370px; }
    .fb-brand-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
    .fb-brand-top img.fb-logo-img { height: 44px; width: auto; max-width: 220px; object-fit: contain; }
    .fb-brand-top .fb-name { font-size: 1.5rem; font-weight: 700; color: #fff; letter-spacing: .5px; }
    .fb-desc { color: #94a3b8; font-size: .92rem; line-height: 1.6; margin: 0; }
    .fb-connect h5 { color: #fff; font-weight: 600; font-size: 1.05rem; margin-bottom: 14px; }
    .fb-socials { display: flex; gap: 12px; flex-wrap: wrap; }
    .fb-soc {
        position: relative;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        text-decoration: none;
        background:
            radial-gradient(circle at 32% 26%, rgba(255,255,255,.12), transparent 60%),
            rgba(255,255,255,.04);
        border: 1px solid rgba(255,255,255,.12);
        box-shadow:
            inset 0 1px 1px rgba(255,255,255,.10),
            0 4px 12px rgba(0,0,0,.35);
        overflow: hidden;
        transition: transform .35s cubic-bezier(.16,1,.3,1),
                    box-shadow .35s ease,
                    border-color .35s ease,
                    color .35s ease,
                    background .35s ease;
    }
    /* glossy sheen sweep on hover */
    .fb-soc::before {
        content: "";
        position: absolute;
        top: -120%;
        left: -120%;
        width: 80%;
        height: 340%;
        background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 100%);
        transform: rotate(28deg);
        transition: left .5s ease;
        pointer-events: none;
        z-index: 3;
    }
    .fb-soc i { position: relative; z-index: 2; transition: transform .35s ease; color: #fff; }
    .fb-soc:hover { transform: translateY(-4px) scale(1.08); border-color: transparent; }
    .fb-soc:hover i { transform: scale(1.12); }
    .fb-soc:hover::before { left: 130%; }

    /* Brand-color fill ON by default for every icon */
    .soc-ig {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        border-color: rgba(225,48,108,.55);
        box-shadow: 0 0 16px rgba(220,39,67,.40), 0 4px 12px rgba(0,0,0,.35);
    }
    .soc-ig:hover { box-shadow: 0 0 26px rgba(220,39,67,.70), 0 10px 22px rgba(188,24,136,.45); }

    .soc-yt {
        background: linear-gradient(145deg, #ff3b3b 0%, #cc0000 100%);
        border-color: rgba(255,0,0,.55);
        box-shadow: 0 0 16px rgba(255,0,0,.40), 0 4px 12px rgba(0,0,0,.35);
    }
    .soc-yt:hover { box-shadow: 0 0 26px rgba(255,0,0,.66), 0 10px 22px rgba(255,0,0,.42); }

    /* Footer bottom bar */
    .footer-bottom-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        margin-top: 2.2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255,255,255,.06);
        flex-wrap: wrap;
    }
    .footer-bottom-bar .ftr-copy { color: #64748b; font-size: .9rem; }
    .footer-bottom-bar .ftr-trust {
        color: #94a3b8;
        font-size: .9rem;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .footer-bottom-bar .ftr-trust i { color: #8b5cf6; }
    .footer-bottom-bar a.ftr-trust { transition: color .25s ease; }
    .footer-bottom-bar a.ftr-trust:hover { color: #c084fc; }

    /* Domain pill (mobile only) */
    .footer-domain-pill-wrap { display: none; }

    @media (max-width: 767px) {
        #footer .footer-col-head { margin-bottom: 12px; }
        .footer-icon-box { width: 38px; height: 38px; min-width: 38px; font-size: 16px; border-radius: 10px; }
        #footer .footer-col-head .footer-title { font-size: 1rem; }
        #footer .footer-section { padding: 16px 13px; }
        #footer .footer-links li a { font-size: .8rem; line-height: 1.3; padding: 7px 3px; gap: 6px; }
        #footer .footer-links li a:hover { padding-left: 5px; }
        #footer .footer-links li a .fl-label { gap: 8px; }
        #footer .footer-links li a .fl-label i { width: 14px; font-size: .8rem; }
        #footer .footer-links li a .fl-chev { font-size: .68rem; }

        #footer .footer-nav-wrap { border-radius: 18px; }
        #footer .footer-nav-bar { flex-direction: column; align-items: stretch; gap: 14px; padding: 14px 12px; }
        #footer .fnb-head { flex-direction: column; justify-content: flex-start; gap: 8px; padding: 0 4px; text-align: center; }
        #footer .fnb-head:first-child { padding-left: 4px; }
        #footer .fnb-title { font-size: .82rem; align-items: center; gap: 5px; }
        #footer .fnb-toggle { width: 100%; min-height: 44px; padding: 0 16px; }
        #footer .footer-nav-wrap .footer-nav-container { margin: 0 6px 6px; border-radius: 16px; }

        .affiliates-card { padding: 18px; gap: 14px; }
        .affiliates-card .aff-icon { width: 46px; height: 46px; min-width: 46px; font-size: 19px; }
        .affiliates-card .aff-text h5 { font-size: 1.02rem; }

        .footer-bottom { flex-direction: column; gap: 26px; }
        .footer-bottom-bar { flex-direction: column; text-align: center; gap: 10px; }

        .footer-domain-pill-wrap { display: flex; justify-content: center; }
        .footer-domain-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin: 24px auto 0;
            padding: 9px 18px;
            border-radius: 50px;
            background: rgba(255,255,255,.04);
            border: 1px solid rgba(139,92,246,.35);
            color: #cbd5e1;
            font-size: .9rem;
            text-decoration: none;
        }
        .footer-domain-pill i { color: #8b5cf6; }
    }
