/* =========================
AI SEARCH PAGE
========================= */

.ai-search-page{

    width:auto;
    height:100vh;

    overflow:hidden;

    background:#f8f7f4;

    position:relative;

}



/* =========================
HERO
========================= */


.ai-search-hero{

    width:auto;
    height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    position:relative;

    overflow:hidden;

}



/* =========================
CONTENT
========================= */


.ai-search-content{

    width:min(700px,90%);

    text-align:center;

    position:relative;

    z-index:10;

}



/* =========================
BADGE
========================= */


.ai-badge{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:10px 18px;

    background:white;

    border-radius:999px;

    box-shadow:
    0 10px 40px rgba(0,0,0,.08);

    font-size:14px;

}



/* =========================
TITLE
========================= */


.ai-search-content h1{

    font-size:clamp(42px,5vw,72px);

    line-height:1.05;

    letter-spacing:-2px;

    margin:30px 0 20px;

    font-weight:600;

}


.ai-search-content h1 span{

    display:block;

    color:#b99b62;

}



/* =========================
CHANGING LINE
========================= */


#ai-changing-line{

    color:#777;

    height:30px;

    font-size:18px;

}



/* =========================
SEARCH BOX
========================= */


.ai-search-box{

    margin-top:35px;

    height:70px;

    background:white;

    border-radius:35px;

    display:flex;

    align-items:center;

    padding:0 12px 0 25px;

    box-shadow:

    0 25px 80px rgba(0,0,0,.12);

    position:relative;

    z-index:20;

}



.ai-search-box input{

    flex:1;

    border:none;

    outline:none;

    font-size:16px;

    padding:0 15px;

}



.ai-search-box button{

    height:50px;

    padding:0 30px;

    border:none;

    border-radius:30px;

    background:#111;

    color:white;

}



/* =========================
GLOW BULBS
========================= */


.ai-glow{

    position:absolute;

    border-radius:50%;

    filter:blur(120px);

    opacity:.55;

    pointer-events:none;

    z-index:1;

}



.glow-one{

    width:420px;

    height:420px;

    background:#e7d4ad;

    left:5%;

    top:15%;

}



.glow-two{

    width:380px;

    height:380px;

    background:#d7ecff;

    right:5%;

    bottom:-80px;

}



.glow-three{

    width:280px;

    height:280px;

    background:#eadcff;

    right:30%;

    top:-100px;

}



/* =========================
HEADER OVERLAY
========================= */


.site-header{

    position:fixed;

    top:0;


    width:auto;

    height:88px;

    background:transparent;

    z-index:1000;

}



/* =========================
DESKTOP
========================= */


@media(min-width:1400px){

.ai-search-content{

    transform:translateY(-20px);

}

}



/* =========================
MOBILE
========================= */


@media(max-width:900px){


.ai-search-page{

    height:100svh;

}


.ai-search-hero{

    height:100svh;

}



.ai-search-content{

    width:90%;

}



.ai-search-content h1{

    font-size:40px;

}



.ai-search-box{

    height:62px;

    border-radius:32px;

    padding-left:18px;

}



.ai-search-box button{

    height:46px;

    padding:0 22px;

}



.ai-glow{

    filter:blur(90px);

    opacity:.45;

}



.glow-one{

    width:260px;

    height:260px;

    left:-80px;

}



.glow-two{

    width:240px;

    height:240px;

    right:-80px;

}



.glow-three{

    width:180px;

    height:180px;

}


}




/* =========================
CHAT
========================= */


.ai-chat{
    display:none;
    width:min(800px,90%);
    margin:auto;
}


.ai-chat.active{
    display:block;
}


.ai-search-hero.chat-mode .ai-badge,
.ai-search-hero.chat-mode h1,
.ai-search-hero.chat-mode p,
.ai-search-hero.chat-mode .ai-search-box{
    display:none;
}


.ai-messages{
    border-radius:24px;
    padding:25px;
    min-height:400px;
}


.message{
    margin-bottom:18px;
    padding:14px 18px;
    border-radius:18px;
    max-width:80%;
}


.user-message{
    background:#f4f4f4;
    color:white;
    margin-left:auto;
}


.ai-message{
    background:#transparent;
}


.ai-chat-input{
    margin-top:20px;
    display:flex;
    gap:10px;
}


.ai-chat-input input{
    flex:1;
    height:52px;
    border-radius:26px;
    border:1px solid #ddd;
    padding:0 20px;
}


.ai-chat-input button{
    border:none;
    background:#111;
    color:white;
    padding:0 25px;
    border-radius:26px;
}


/* =========================================================
   AI SEARCH — MATCH INSIGHTS HERO
   ========================================================= */

.ai-search-hero {
    position: relative;
    width: 100%;
    min-height: 720px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    padding: 138px 0 130px;

    overflow: hidden;
}

.ai-search-content {
    position: relative;
    z-index: 3;

    width: var(--page-width);
    max-width: 850px;

    margin: 0 auto;

    text-align: center;
}

.ai-search-content h1 {
    margin: 0;

    max-width: 850px;

    font-size: 68px;
    line-height: 1.08;

    letter-spacing: -3px;

    font-weight: 600;

    color: #111;
}

.ai-search-content h1 span {
    display: inline;
    color: var(--primary);
}

.ai-search-box {
    margin-top: 34px;
}

@media (min-width: 1400px) {
    .ai-search-content {
        transform: none;
    }
}

@media (max-width: 900px) {
    .ai-search-hero {
        min-height: 100svh;
        padding: 88px 0;
    }

    .ai-search-content {
        width: 90%;
    }

    .ai-search-content h1 {
        font-size: 44px;
        line-height: 1.08;
        letter-spacing: -2px;
    }
}


/* =========================================================
   AI HERO — MATCH INSIGHTS HERO GEOMETRY
   ========================================================= */

.ai-search-hero {
    position: relative;
    width: 100%;
    min-height: 720px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 138px 0 130px;

    overflow: hidden;
}

.ai-search-content {
    position: relative;
    z-index: 3;

    width: var(--page-width);
    max-width: 850px;

    margin: 0 auto;

    text-align: center;
}

.ai-search-content h1 {
    margin: 0;

    max-width: 850px;

    font-size: 68px;
    line-height: 1.08;

    letter-spacing: -3px;

    font-weight: 600;

    color: #111;
}

.ai-search-content h1 span {
    display: inline;
    color: var(--primary);
}

@media (max-width: 900px) {

    .ai-search-hero {
        min-height: auto;

        align-items: center;

        padding: 110px 0 80px;
    }

    .ai-search-content {
        width: 90%;
    }

    .ai-search-content h1 {
        font-size: 44px;
        line-height: 1.08;
        letter-spacing: -2px;
    }

}



/* =========================================================
   AI HERO — FINAL INSIGHTS ALIGNMENT
   ========================================================= */

.ai-search-hero {
    position: relative;
    width: 100%;
    min-height: 720px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    box-sizing: border-box;

    padding: 0;

    overflow: hidden;
}

.ai-search-content {
    position: relative;
    z-index: 3;

    width: var(--page-width);
    max-width: 850px;

    margin: 0 auto;

    padding-top: 200px;

    text-align: center;
}

.ai-search-content h1 {
    margin: 0;
    padding: 0;

    max-width: 850px;

    font-family: "Inter", sans-serif;
    font-size: 68px;
    line-height: 1.08;
    letter-spacing: -3px;
    font-weight: 600;

    color: #111;
}

.ai-search-content h1 span {
    display: inline;
    color: var(--primary);
}

.ai-search-box {
    margin-top: 34px;
}

@media (max-width: 900px) {

    .ai-search-hero {
        min-height: 100svh;
    }

    .ai-search-content {
        width: 90%;
        padding-top: 130px;
    }

    .ai-search-content h1 {
        font-size: 44px;
        line-height: 1.08;
        letter-spacing: -2px;
    }

}


/* =========================================================
   AI SEARCH — RUNNING PLACEHOLDER
   ========================================================= */

.ai-typing-placeholder {
    position: absolute;

    left: 58px;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: center;

    color: var(--muted);

    font-family: "Inter", sans-serif;
    font-size: 17px;
    line-height: 1.5;

    white-space: nowrap;
    pointer-events: none;

    z-index: 2;
}

.ai-typing-cursor {
    display: inline-block;

    width: 1px;
    height: 21px;

    margin-left: 1px;

    background: #777;

    animation: aiTypingBlink .8s steps(1, end) infinite;
}

@keyframes aiTypingBlink {

    0%, 49% {
        opacity: 1;
    }

    50%, 100% {
        opacity: 0;
    }

}

.ai-search-box input {
    position: relative;
    z-index: 3;

    background: transparent;
}

@media (max-width: 900px) {

    .ai-typing-placeholder {
        left: 51px;
        font-size: 16px;
    }

    .ai-typing-cursor {
        height: 19px;
    }

}



/* =========================================================
   AI CHAT — FINAL INTERACTION
   ========================================================= */


/* Native input starts exactly where the running placeholder starts. */

.ai-search-box input {
    padding-left: 9px;
    color: #111;
    caret-color: #6d5dfb;
}


/* Fake placeholder disappears completely when typing begins. */

.ai-typing-placeholder.is-hidden {
    opacity: 0;
    visibility: hidden;
}


/* =========================================================
   CHAT TRANSITION
   ========================================================= */

.ai-search-hero.chat-mode .ai-search-content {
    transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}


.ai-search-hero.chat-mode h1 {
    opacity: 0;
    transform: translateY(-18px);
    pointer-events: none;

    transition:
        opacity .45s ease,
        transform .55s cubic-bezier(.22, 1, .36, 1);
}


/* =========================================================
   CHAT CONTAINER
   ========================================================= */

.ai-chat {
    display: none;
    width: min(850px, 90%);
    margin: 0 auto;
}


.ai-chat.active {
    display: flex;
    flex-direction: column;

    animation: aiChatAppear .55s cubic-bezier(.22, 1, .36, 1);
}


@keyframes aiChatAppear {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   MESSAGE AREA
   ========================================================= */

.ai-messages {
    width: 100%;

    min-height: 120px;
    max-height: 430px;

    padding: 8px 0 24px;

    display: flex;
    flex-direction: column;
    gap: 18px;

    overflow-y: auto;

    text-align: left;

    direction: ltr;

    scrollbar-width: none;
}


.ai-messages::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   MESSAGES
   ========================================================= */

.message {
    width: 100%;

    margin: 0;

    padding: 0;

    display: flex;

    direction: ltr;
}


.user-message {
    justify-content: flex-end;
}


.message-bubble {
    max-width: min(620px, 78%);

    padding: 12px 17px;

    border-radius: 18px 18px 5px 18px;

    background: #f1f1f1;

    color: #333;

    font-size: 15px;
    line-height: 1.55;

    text-align: left;

    box-shadow:
        0 2px 8px rgba(0,0,0,.035);
}


.ai-message {
    justify-content: flex-start;
}


.ai-message-text {
    max-width: 680px;

    color: #555;

    font-size: 16px;
    line-height: 1.7;

    text-align: left;
}


/* =========================================================
   FOLLOW-UP INPUT
   ========================================================= */

.ai-chat-input {
    width: 100%;

    height: 70px;

    margin-top: 12px;

    padding: 0 12px 0 25px;

    box-sizing: border-box;

    display: flex;
    align-items: center;

    background: #fff;

    border-radius: 35px;

    box-shadow:
        0 25px 80px rgba(0,0,0,.12);

    direction: ltr;
}


.ai-chat-input input {
    flex: 1;

    min-width: 0;

    height: 100%;

    padding: 0 12px 0 9px;

    border: none;
    outline: none;

    background: transparent;

    color: #111;

    font-family: "Inter", sans-serif;
    font-size: 17px;
    line-height: 1.5;

    caret-color: #6d5dfb;
}


.ai-chat-input input::placeholder {
    color: var(--muted);
    opacity: 1;
}


.ai-chat-input button {
    height: 46px;

    border: none;

    padding: 0 22px;

    border-radius: 23px;

    background: #111;

    color: #fff;

    font-family: "Inter", sans-serif;
    font-size: 14px;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease;
}


.ai-chat-input button:hover {
    background: #222;
    transform: translateY(-1px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .ai-chat {
        width: 90%;
    }


    .ai-messages {
        min-height: 100px;
    }


    .message-bubble {
        max-width: 84%;
    }


    .ai-chat-input {
        height: 62px;
        border-radius: 31px;
    }


    .ai-chat-input button {
        height: 42px;
        padding: 0 17px;
    }

}


/* =========================================================
   AI CHAT — 1000PX CONVERSATION WIDTH
   ========================================================= */

.ai-chat {
    width: min(1000px, 92%);
}


.ai-messages {
    width: 100%;
    text-align: left;
    direction: ltr;
}


/* USER — RIGHT */

.user-message {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    direction: ltr;
}


.message-bubble {
    max-width: 620px;
    margin-left: auto;
    margin-right: 0;

    background: #f1f1f1;
    color: #333;

    text-align: left;

    border-radius: 18px 18px 5px 18px;
}


/* AI — LEFT */

.ai-message {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    direction: ltr;
}


.ai-message-text {
    max-width: 700px;
    margin-left: 0;
    margin-right: auto;

    color: #555;

    text-align: left;
}


/* FOLLOW-UP BAR — SAME WIDTH */

.ai-chat-input {
    width: 100%;
}


@media (max-width: 900px) {

    .ai-chat {
        width: 92%;
    }

    .message-bubble {
        max-width: 82%;
    }

    .ai-message-text {
        max-width: 90%;
    }

}


/* =========================================================
   AI CHAT — SCROLLABLE MESSAGES + BOTTOM INPUT
   ========================================================= */

.ai-search-hero.chat-mode {
    align-items: flex-start;
    padding-top: 110px;
    padding-bottom: 35px;
}


/* Chat occupies the available viewport */

.ai-search-hero.chat-mode .ai-search-content {
    width: min(1000px, 92%);
    max-width: 1000px;

    height: calc(100vh - 145px);

    display: flex;
    flex-direction: column;
}


/* =========================================================
   SCROLLABLE CONVERSATION
   ========================================================= */

.ai-chat {
    width: 100%;
    max-width: 1000px;

    flex: 1;
    min-height: 0;

    display: none;
    flex-direction: column;
}


.ai-chat.active {
    display: flex;
}


/* Only messages scroll */

.ai-messages {
    flex: 1;
    min-height: 0;

    width: 100%;

    padding: 20px 0 30px;

    overflow-y: auto;
    overflow-x: hidden;

    display: flex;
    flex-direction: column;
    gap: 20px;

    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.16) transparent;
}


.ai-messages::-webkit-scrollbar {
    width: 5px;
}


.ai-messages::-webkit-scrollbar-track {
    background: transparent;
}


.ai-messages::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.14);
    border-radius: 10px;
}


/* =========================================================
   USER MESSAGE — RIGHT
   ========================================================= */

.user-message {
    width: 100%;

    display: flex;
    justify-content: flex-end;

    flex-shrink: 0;
}


.message-bubble {
    max-width: 620px;

    margin-left: auto;
    margin-right: 0;

    padding: 12px 17px;

    background: #f1f1f1;
    color: #333;

    border-radius: 18px 18px 5px 18px;

    font-size: 15px;
    line-height: 1.55;

    text-align: left;
}


/* =========================================================
   AI MESSAGE — LEFT
   ========================================================= */

.ai-message {
    width: 100%;

    display: flex;
    justify-content: flex-start;

    flex-shrink: 0;
}


.ai-message-text {
    max-width: 700px;

    margin-left: 0;
    margin-right: auto;

    color: #555;

    font-size: 16px;
    line-height: 1.7;

    text-align: left;
}


/* =========================================================
   STICKY / FIXED INPUT AREA
   ========================================================= */

.ai-chat-input {
    flex: 0 0 70px;

    width: 100%;

    height: 70px;

    margin-top: 8px;

    padding: 0 12px 0 25px;

    box-sizing: border-box;

    display: flex;
    align-items: center;

    background: #fff;

    border-radius: 35px;

    box-shadow:
        0 12px 45px rgba(0,0,0,.14);

    position: relative;

    z-index: 20;
}


/* =========================================================
   FOLLOW-UP INPUT
   ========================================================= */

.ai-chat-input input {
    flex: 1;

    min-width: 0;

    height: 100%;

    padding: 0 12px 0 9px;

    border: none;
    outline: none;

    background: transparent;

    color: #111;

    font-family: "Inter", sans-serif;
    font-size: 17px;

    caret-color: #6d5dfb;
}


.ai-chat-input input::placeholder {
    color: var(--muted);
    opacity: 1;
}


/* SEND */

.ai-chat-input button {
    flex-shrink: 0;

    height: 46px;

    padding: 0 22px;

    border: none;
    border-radius: 23px;

    background: #111;
    color: #fff;

    font-family: "Inter", sans-serif;
    font-size: 14px;

    cursor: pointer;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .ai-search-hero.chat-mode {
        padding-top: 92px;
        padding-bottom: 20px;
    }


    .ai-search-hero.chat-mode .ai-search-content {
        width: 92%;

        height: calc(100svh - 112px);
    }


    .ai-chat {
        width: 100%;
    }


    .ai-messages {
        padding-bottom: 20px;
    }


    .message-bubble {
        max-width: 82%;
    }


    .ai-message-text {
        max-width: 90%;
    }


    .ai-chat-input {
        flex-basis: 62px;
        height: 62px;

        border-radius: 31px;

        padding-left: 18px;
    }


    .ai-chat-input button {
        height: 42px;
        padding: 0 17px;
    }

}


/* =========================================================
   USER MESSAGE — RIGHT EDGE / CONTENT WIDTH
   ========================================================= */

.user-message {
    width: 100%;

    display: flex;
    justify-content: flex-end;

    text-align: right;
    direction: ltr;
}


.message-bubble {
    width: fit-content;
    max-width: 400px;

    margin-left: auto;
    margin-right: 0;

    padding: 11px 16px;

    box-sizing: border-box;

    background: #f1f1f1;
    color: #333;

    border-radius: 18px 18px 5px 18px;

    font-size: 15px;
    line-height: 1.55;

    text-align: left;

    overflow-wrap: break-word;
    word-break: break-word;
}


/* AI stays fully left aligned */

.ai-message {
    width: 100%;

    display: flex;
    justify-content: flex-start;

    text-align: left;
    direction: ltr;
}


.ai-message-text {
    width: fit-content;
    max-width: 700px;

    margin-left: 0;
    margin-right: auto;

    text-align: left;
}


@media (max-width: 900px) {

    .message-bubble {
        max-width: 78%;
    }

}

/* =========================================================
   AI CHAT — FINAL LAYOUT
   ========================================================= */

.ai-search-hero.chat-mode {
    min-height: 100svh;
    height: 100svh;
    padding: 100px 0 24px;
    box-sizing: border-box;
}

.ai-search-hero.chat-mode .ai-search-content {
    width: min(1000px, calc(100% - 40px));
    max-width: 1000px;
    height: calc(100svh - 124px);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.ai-search-hero.chat-mode .ai-chat {
    width: 100%;
    max-width: 1000px;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.ai-search-hero.chat-mode .ai-messages {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 1000px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 8px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-sizing: border-box;
    scrollbar-width: thin;
}

.ai-search-hero.chat-mode .message {
    display: block;
    width: fit-content;
    max-width: 400px;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 17px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ai-search-hero.chat-mode .user-message {
    align-self: flex-end;
    margin-left: auto;
    margin-right: 0;
    background: #f1f2f4;
    color: #111;
    border-radius: 20px 20px 5px 20px;
}

.ai-search-hero.chat-mode .ai-message {
    align-self: flex-start;
    margin-left: 0;
    margin-right: auto;
    max-width: 650px;
    padding-left: 0;
    background: transparent;
    color: #111;
    border-radius: 0;
    text-align: left;
}

.ai-search-hero.chat-mode .ai-chat-input {
    flex: 0 0 auto;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 14px 0 0;
    display: flex;
    gap: 10px;
    background: transparent;
}

.ai-search-hero.chat-mode .ai-chat-input input {
    flex: 1;
    height: 58px;
    box-sizing: border-box;
    border: 1px solid #dedede;
    border-radius: 30px;
    padding: 0 22px;
    background: #fff;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    outline: none;
}

.ai-search-hero.chat-mode .ai-chat-input button {
    flex: 0 0 auto;
    height: 58px;
    padding: 0 24px;
    border: none;
    border-radius: 30px;
    background: #111;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 900px) {
    .ai-search-hero.chat-mode {
        padding: 82px 0 16px;
    }

    .ai-search-hero.chat-mode .ai-search-content {
        width: calc(100% - 24px);
        height: calc(100svh - 98px);
    }

    .ai-search-hero.chat-mode .message {
        max-width: min(400px, 82%);
    }

    .ai-search-hero.chat-mode .ai-message {
        max-width: 82%;
    }
}


/* =========================================================
   AI CHAT — VERTICAL POSITION + CENTERED INPUT BAR
   ========================================================= */

/* Move conversation content upward */
.ai-search-hero.chat-mode .ai-messages {
    padding-top: 0;
    transform: translateY(-100px);
}

/* Keep input bar independent from the message position */
.ai-search-hero.chat-mode .ai-chat-input {
    transform: none;

    width: min(1000px, 100%);
    max-width: 1000px;

    align-self: center;

    margin-left: auto;
    margin-right: auto;

    padding: 6px 0 0;
}

/* Make the input feel like one centered bar */
.ai-search-hero.chat-mode .ai-chat-input input {
    height: 60px;
    background: #fff;
    border: 1px solid #e2e2e2;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

/* Send button remains part of the centered bar */
.ai-search-hero.chat-mode .ai-chat-input button {
    height: 60px;
}

/* Don't let the 100px conversation shift affect mobile too much */
@media (max-width: 900px) {

    .ai-search-hero.chat-mode .ai-messages {
        transform: translateY(-60px);
    }

}

/* =========================================================
   AI CHAT — CLARIFICATION SELECTION CARDS
   ========================================================= */

.ai-clarification {
    width: min(650px, 100%);
    margin-top: 12px;
}

.ai-clarification-text {
    margin: 0 0 18px;
    color: #171717;
    font-size: 16px;
    line-height: 1.6;
}

.ai-selection-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-selection-card {
    width: 100%;
    box-sizing: border-box;

    padding: 15px 18px;

    border: 1px solid #e6e6e6;
    border-radius: 16px;

    background: #fff;

    text-align: left;

    cursor: pointer;

    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.ai-selection-card:hover {
    border-color: #d3d3d3;
    background: #fafafa;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

.ai-selection-card:active {
    transform: translateY(0);
}

.ai-selection-card-title {
    display: block;

    margin-bottom: 3px;

    color: #111;
    font-size: 15px;
    font-weight: 600;
}

.ai-selection-card-description {
    display: block;

    color: #777;
    font-size: 14px;
    line-height: 1.4;
}

/* Selected state */

.ai-selection-card.selected {
    border-color: #6d5dfb;
    background: #f8f7ff;
}

/* Mobile */

@media (max-width: 900px) {

    .ai-clarification {
        width: 100%;
    }

    .ai-selection-card {
        padding: 14px 16px;
    }

}

/* =========================================================
   AI HERO — EXACT INSIGHTS TITLE TYPOGRAPHY
   ========================================================= */

.ai-search-content h1 {
    margin: 0;
    padding: 0;

    max-width: 850px;

    font-family: "Inter", sans-serif;
    font-size: 68px;
    line-height: 1.08;
    letter-spacing: -3px;
    font-weight: 600;

    color: #111;
}

.ai-search-content h1 span {
    display: inline;
    color: var(--primary);
}

@media (max-width: 500px) {

    .ai-search-content h1 {
        font-size: 30px;
        line-height: 1.05;
        letter-spacing: -1.5px;
    }

}

/* HEADLINE ONLY — independent width */
.ai-headline {
    width: 850px;
    max-width: 100%;
    margin: 0 auto;
}


/* AI SEARCH — ROUND ARROW BUTTON */
.ai-search-box #aiSend {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    flex-shrink: 0;
}

.ai-search-box #aiSend .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
}


/* AI SEARCH — BUY / RENT DROPDOWN */

.ai-search-type {
    position: relative;
    flex-shrink: 0;
}

.ai-search-type > button {
    height: 50px;
    padding: 0 18px;
    border: none;
    border-radius: 28px;
    background: #111;
    color: #fff;

    display: flex;
    align-items: center;
    gap: 5px;

    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.ai-search-type > button .material-symbols-outlined {
    font-size: 19px;
}

.ai-search-type-menu {
    display: none;

    position: absolute;
    right: 0;
    top: calc(100% + 8px);

    min-width: 110px;
    padding: 6px;

    background: #fff;
    border-radius: 14px;

    box-shadow: 0 15px 40px rgba(0,0,0,.15);

    z-index: 100;
}

.ai-search-type-menu.active {
    display: block;
}

.ai-search-type-menu button {
    width: 100%;
    padding: 10px 12px;

    border: none;
    background: transparent;

    border-radius: 9px;

    text-align: left;
    font-family: "Inter", sans-serif;
    font-size: 14px;

    cursor: pointer;
}

.ai-search-type-menu button:hover {
    background: #f5f5f5;
}


/* AI SEARCH — OUTLINED BUY / RENT CONTROL */
.ai-search-type > button {
    background: #fff;
    color: #111;
    border: 1px solid #111;
}

.ai-search-type > button:hover {
    background: #f8f8f8;
}


/* AI SEARCH — SOFT BUY / RENT CONTROL */
.ai-search-type > button {
    background: #f7f5f2;
    color: #333;
    border: none;
}

.ai-search-type > button:hover {
    background: #f3f3f1;
}


/* AI SEARCH — ULTRA-SOFT DROPDOWN MENU */
.ai-search-type-menu {
    background: #fff;
    border: none;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .07);
}

.ai-search-type-menu button {
    color: #444;
    background: transparent;
}

.ai-search-type-menu button:hover {
    background: #f8f8f7;
}


/* MOBILE — PLACEHOLDER USES MAX 80% OF AVAILABLE TEXT AREA */
@media (max-width: 500px) {
    .ai-typing-placeholder {
        left: 51px;
        right: 105px;
        width: calc(80% - 125px);
        max-width: none;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 16px;
    }
}


/* =========================================================
   MOBILE — PLACEHOLDER SAFE TEXT AREA
   Leave the search icon + Buy/Rent button completely clear.
   ========================================================= */
@media (max-width: 500px) {

    .ai-typing-placeholder {
        left: 51px;
        right: 105px;

        /* 80% of the actual available text area */
        width: calc((100% - 156px) * 0.8);
        max-width: calc(100% - 156px);

        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;

        font-size: 16px;
        line-height: 1.4;
    }

}

/* =========================================================
   MOBILE AI SEARCH — KEEP VIEWPORT STABLE WHILE TYPING
   ========================================================= */

@media (max-width: 768px) {

    html.ai-input-active,
    body.ai-input-active {
        overflow: hidden;
        height: 100%;
        overscroll-behavior: none;
    }

    .ai-search-hero {
        overscroll-behavior: none;
    }

    .ai-search-box input {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
    }
}



/* =========================================================
   AI CHAT — CLEAN FINAL OVERRIDE
   Remove nested bubble / nested input-bar appearance
   ========================================================= */


/* ---------- USER MESSAGE ---------- */

/* Outer message is ONLY the positioning container */
.ai-search-hero.chat-mode .message.user-message {
    width: 100%;
    max-width: none;

    display: flex;
    align-items: flex-start;
    justify-content: flex-end;

    margin: 0;
    padding: 0;

    background: transparent;
    color: inherit;

    border: 0;
    border-radius: 0;

    box-shadow: none;
}


/* The actual visible user bubble */
.ai-search-hero.chat-mode .message.user-message .message-bubble {
    width: fit-content;
    max-width: min(620px, 78%);

    margin: 0;

    padding: 12px 17px;

    background: #f1f2f4;
    color: #111;

    border: 0;
    border-radius: 20px 20px 5px 20px;

    font-size: 16px;
    line-height: 1.5;

    text-align: left;

    box-shadow: none;

    box-sizing: border-box;
}


/* ---------- AI MESSAGE ---------- */

.ai-search-hero.chat-mode .message.ai-message {
    width: 100%;
    max-width: none;

    display: flex;
    justify-content: flex-start;

    margin: 0;
    padding: 0;

    background: transparent;
    color: #111;

    border: 0;
    border-radius: 0;

    box-shadow: none;
}

.ai-search-hero.chat-mode .ai-message-text {
    width: fit-content;
    max-width: 700px;

    margin: 0;

    padding: 0;

    background: transparent;
    color: #555;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    font-size: 16px;
    line-height: 1.7;
}


/* ---------- CHAT INPUT CONTAINER ---------- */

/*
   The container itself is NOT a pill.
   It only lays out the input and button.
*/
.ai-search-hero.chat-mode .ai-chat-input {
    width: 100%;
    max-width: 1000px;

    height: 70px;

    flex: 0 0 70px;

    display: flex;
    align-items: center;

    gap: 10px;

    margin: 0 auto;
    padding: 0;

    background: transparent;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    box-sizing: border-box;
}


/* Actual input = ONE pill */
.ai-search-hero.chat-mode .ai-chat-input input {
    flex: 1;

    width: auto;
    height: 56px;

    min-width: 0;

    margin: 0;
    padding: 0 20px;

    background: #fff;
    color: #111;

    border: 1px solid #ddd;
    border-radius: 28px;

    outline: none;

    box-shadow: 0 4px 20px rgba(0,0,0,.06);

    box-sizing: border-box;
}


/* Send button */
.ai-search-hero.chat-mode .ai-chat-input button {
    flex: 0 0 auto;

    height: 46px;

    margin: 0;
    padding: 0 22px;

    background: #111;
    color: #fff;

    border: 0;
    border-radius: 23px;

    box-shadow: none;

    box-sizing: border-box;
}


/* ---------- MOBILE ---------- */

@media (max-width: 900px) {

    .ai-search-hero.chat-mode .message.user-message .message-bubble {
        max-width: 82%;
    }

    .ai-search-hero.chat-mode .ai-chat-input {
        height: 62px;
        flex-basis: 62px;
    }

    .ai-search-hero.chat-mode .ai-chat-input input {
        height: 52px;
        border-radius: 26px;
        padding: 0 17px;
    }

    .ai-search-hero.chat-mode .ai-chat-input button {
        height: 42px;
        padding: 0 17px;
        border-radius: 21px;
    }

}




/* =========================================================
   MOBILE CHAT — EXTRA 5PX SIDE SPACE
   ========================================================= */

@media (max-width: 900px) {

    .ai-search-hero.chat-mode .ai-search-content {
        width: calc(100% - 34px);
    }

    .ai-search-hero.chat-mode .ai-chat {
        width: 100%;
    }

}


/* =========================================================
   MOBILE SEARCH PLACEHOLDER — SAFE WIDTH
   ========================================================= */

@media (max-width: 900px) {

    .ai-typing-placeholder {
        right: 105px;
        max-width: calc(100% - 156px);
        overflow: hidden;
    }

    #aiTypingText {
        white-space: nowrap;
    }

}


/* =========================================================
   AI RESPONSE — MATCH USER TEXT COLOR
   ========================================================= */

.ai-search-hero.chat-mode .ai-message-text {
    color: #333 !important;
}


/* =========================================================
   AI PAGE — HEADER / MOBILE MENU MUST SIT ABOVE HERO
   ========================================================= */

.site-header {
    z-index: 999999 !important;
    pointer-events: auto !important;
}

.site-header .menu-toggle {
    position: relative !important;
    z-index: 1000000 !important;
    pointer-events: auto !important;
}

.mobile-menu-overlay {
    z-index: 999997 !important;
}

.mobile-menu {
    z-index: 999998 !important;
}

/* The AI hero must never create a layer above the header */
.ai-search-hero {
    z-index: auto !important;
}

.ai-search-content {
    z-index: 1;
}


/* =========================================================
   AI CHAT — SAME TEXT COLOR
   ========================================================= */

.user-message,
.ai-message {
    color: #111 !important;
}


/* AI page — use shared header layout */
.site-header {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    height: 88px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.site-header-left {
    flex-shrink: 0 !important;
}

.site-header-center {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.site-header-right {
    flex-shrink: 0 !important;
    margin-left: auto !important;
}


/* =========================================================
   FINAL AI PAGE HEADER FIX
   Shared header must remain above the AI hero on mobile
   ========================================================= */

.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;

    width: 100% !important;
    height: 88px !important;

    z-index: 20001 !important;
    pointer-events: auto !important;
}

.site-header .menu-toggle {
    position: relative !important;
    z-index: 20002 !important;
    pointer-events: auto !important;
}

.ai-page,
.ai-search-hero {
    position: relative;
    z-index: 0 !important;
}

.ai-search-content {
    position: relative;
    z-index: 1 !important;
}

/* Mobile */
@media (max-width: 900px) {

    .site-header {
        height: 82px !important;
    }

    .site-header-center {
        display: none !important;
    }

    .site-header-right {
        display: flex !important;
        align-items: center !important;
    }

    .mobile-menu {
        z-index: 20000 !important;
    }

    .mobile-menu-overlay {
        z-index: 19999 !important;
    }

}


/* =========================================================
   RILITY AI — CHATGPT-STYLE RESPONSE TYPOGRAPHY
   ========================================================= */

.ai-search-hero.chat-mode .ai-message-text {
    width: 100%;
    max-width: 760px;
    margin: 0;
    padding: 0;

    color: #1f1f1f !important;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    text-align: left;
    overflow-wrap: break-word;
}

.ai-search-hero.chat-mode .ai-message-text p {
    margin: 0 0 16px;
}

.ai-search-hero.chat-mode .ai-message-text p:last-child {
    margin-bottom: 0;
}

.ai-search-hero.chat-mode .ai-message-text h1,
.ai-search-hero.chat-mode .ai-message-text h2,
.ai-search-hero.chat-mode .ai-message-text h3 {
    color: #1f1f1f;
    font-weight: 600;
    line-height: 1.3;
}

.ai-search-hero.chat-mode .ai-message-text h1 {
    font-size: 24px;
    margin: 24px 0 12px;
}

.ai-search-hero.chat-mode .ai-message-text h2 {
    font-size: 20px;
    margin: 22px 0 10px;
}

.ai-search-hero.chat-mode .ai-message-text h3 {
    font-size: 17px;
    margin: 18px 0 8px;
}

.ai-search-hero.chat-mode .ai-message-text strong {
    font-weight: 600;
    color: #1f1f1f;
}

.ai-search-hero.chat-mode .ai-message-text ul,
.ai-search-hero.chat-mode .ai-message-text ol {
    margin: 8px 0 18px;
    padding-left: 25px;
}

.ai-search-hero.chat-mode .ai-message-text li {
    margin: 5px 0;
    padding-left: 3px;
}

.ai-search-hero.chat-mode .ai-message-text a {
    color: #5b4ce1;
    text-decoration: none;
}

.ai-search-hero.chat-mode .ai-message-text a:hover {
    text-decoration: underline;
}

.ai-search-hero.chat-mode .ai-message-text code {
    padding: 2px 5px;
    border-radius: 5px;
    background: #f1f1f1;
    color: #333;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .9em;
}

.ai-search-hero.chat-mode .ai-message-text pre {
    margin: 16px 0;
    padding: 14px 16px;
    overflow-x: auto;
    background: #f6f6f6;
    border-radius: 10px;
}

.ai-search-hero.chat-mode .ai-message-text pre code {
    padding: 0;
    background: transparent;
}

.ai-search-hero.chat-mode .ai-message-text hr {
    margin: 22px 0;
    border: 0;
    border-top: 1px solid #e5e5e5;
}

.ai-search-hero.chat-mode .message.user-message .message-bubble {
    max-width: 620px;
    padding: 11px 16px;
    background: #f1f1f1;
    color: #1f1f1f;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .ai-search-hero.chat-mode .ai-message-text {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.6;
    }

    .ai-search-hero.chat-mode .message.user-message .message-bubble {
        max-width: 82%;
    }
}


/* =========================================================
   FINAL AI CHAT CONTENT OVERRIDE
   No rounded message-area container.
   Hide the vertical chat scrollbar completely.
   ========================================================= */

.ai-messages,
.ai-search-hero.chat-mode .ai-messages {
    border-radius: 0 !important;

    scrollbar-width: none !important;
    -ms-overflow-style: none !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.ai-messages::-webkit-scrollbar,
.ai-search-hero.chat-mode .ai-messages::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
}

.ai-messages::-webkit-scrollbar-track,
.ai-messages::-webkit-scrollbar-thumb,
.ai-search-hero.chat-mode .ai-messages::-webkit-scrollbar-track,
.ai-search-hero.chat-mode .ai-messages::-webkit-scrollbar-thumb {
    display: none !important;
    width: 0 !important;
    background: transparent !important;
}



/* =========================================================
   FINAL AI CHAT CONTENT CLEANUP
   - No rounded corners on conversation area
   - Keep vertical scrolling
   - Hide WebKit/Chrome scrollbar
   ========================================================= */

.ai-messages {
    border-radius: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;

    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.ai-messages::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

.ai-messages::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
}

.ai-messages::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}

/* =========================================================
   AI CHAT — TIGHT BOTTOM / RESPONSE FADE
   ========================================================= */

.ai-search-hero.chat-mode .ai-messages {
    padding-top: 0;
    padding-bottom: 8px;

    /* Keep the conversation visually high without
       creating a large empty area underneath it. */
    transform: none;

    position: relative;
}

/* Soft fade where the conversation meets the input bar */
.ai-search-hero.chat-mode .ai-chat {
    position: relative;
}

.ai-search-hero.chat-mode .ai-chat::after {
    content: "";
    position: absolute;

    left: 0;
    right: 0;

    bottom: 66px;

    height: 34px;

    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(248,247,244,0),
        rgba(248,247,244,.94)
    );

    z-index: 5;
}


/* ==========================================================
   DASHBOARD AI AGENT
   Clean dashboard presentation
   ========================================================== */

.ai-search-hero.ai-dashboard-mode {
  min-height: 0 !important;
  height: auto !important;
  padding: 28px 0 10px !important;
  margin: 0 !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

/* Dashboard title */
.ai-search-hero.ai-dashboard-mode .ai-hero-title,
.ai-search-hero.ai-dashboard-mode h1 {
  margin: 0 0 18px !important;

  font-size: 30px !important;
  line-height: 1.15 !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;

  color: #1e0949 !important;
  text-align: left !important;
}

/* Hide the large standalone-page supporting copy */
.ai-search-hero.ai-dashboard-mode .ai-hero-subtitle,
.ai-search-hero.ai-dashboard-mode .ai-hero-description {
  display: none !important;
}

/* Keep the search bar as the main dashboard element */
.ai-search-hero.ai-dashboard-mode .ai-search-box,
.ai-search-hero.ai-dashboard-mode .ai-search-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Clean dashboard background around the bar */
.ai-search-hero.ai-dashboard-mode .ai-search-bar {
  width: 100% !important;
  max-width: none !important;

  background: #ffffff !important;
  border: 1px solid #e8e4ef !important;
  border-radius: 18px !important;

  box-shadow: 0 8px 24px rgba(30, 9, 73, .06) !important;
}

/* Dashboard content area */
.ai-dashboard-page {
  width: 100%;
  background: #fafafa;
  border-radius: 20px;
}

/* Remove standalone hero decoration */
.ai-search-hero.ai-dashboard-mode::before,
.ai-search-hero.ai-dashboard-mode::after {
  display: none !important;
}

@media (max-width: 700px) {
  .ai-search-hero.ai-dashboard-mode {
    padding: 20px 0 8px !important;
  }

  .ai-search-hero.ai-dashboard-mode h1,
  .ai-search-hero.ai-dashboard-mode .ai-hero-title {
    font-size: 25px !important;
  }
}

/* ==========================================================
   DASHBOARD AI — NO BACKGROUND
   ========================================================== */

.ai-dashboard-page,
.ai-search-hero.ai-dashboard-mode {
  background: transparent !important;
}

.ai-search-hero.ai-dashboard-mode {
  box-shadow: none !important;
  border: 0 !important;
}


/* ==========================================================
   DASHBOARD AI — REMOVE ALL HERO GRADIENTS / DECORATION
   ========================================================== */

.ai-dashboard-page,
.ai-dashboard-page *,
.ai-search-hero.ai-dashboard-mode,
.ai-search-hero.ai-dashboard-mode::before,
.ai-search-hero.ai-dashboard-mode::after {
  background-image: none !important;
}

.ai-dashboard-page,
.ai-search-hero.ai-dashboard-mode {
  background: transparent !important;
  box-shadow: none !important;
}

.ai-search-hero.ai-dashboard-mode::before,
.ai-search-hero.ai-dashboard-mode::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
}


/* Dashboard AI card — match dashboard card styling */
.ai-search-hero.ai-dashboard-mode {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  background: #fff !important;
  border: 1px solid #e9e3ee !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 18px rgba(30,9,73,.035) !important;
  overflow: hidden !important;
  padding: 36px 28px !important;
}

.ai-search-hero.ai-dashboard-mode .ai-glow,
.ai-search-hero.ai-dashboard-mode::before,
.ai-search-hero.ai-dashboard-mode::after {
  display: none !important;
  background: none !important;
  background-image: none !important;
}

.ai-search-hero.ai-dashboard-mode .ai-search-content {
  width: 100% !important;
  max-width: 700px !important;
}


/* Dashboard AI: no background underneath search bar */
.ai-search-hero.ai-dashboard-mode {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 20px 0 !important;
}

.ai-search-hero.ai-dashboard-mode .ai-glow,
.ai-search-hero.ai-dashboard-mode::before,
.ai-search-hero.ai-dashboard-mode::after {
  display: none !important;
  background: none !important;
  background-image: none !important;
}

.ai-search-hero.ai-dashboard-mode .ai-search-bar,
.ai-search-hero.ai-dashboard-mode .ai-search-box {
  background: #fff !important;
}


/* AI Agent dashboard feature — transparent surrounding area */
.ai-search-hero.ai-dashboard-mode {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.ai-search-hero.ai-dashboard-mode::before,
.ai-search-hero.ai-dashboard-mode::after,
.ai-search-hero.ai-dashboard-mode .ai-glow {
  display: none !important;
  background: none !important;
  background-image: none !important;
}

.ai-search-hero.ai-dashboard-mode .ai-search-bar,
.ai-search-hero.ai-dashboard-mode .ai-search-box {
  background: #fff !important;
}


/* =========================================================
   DASHBOARD AI AGENT — REMOVE ALL BACKGROUND/GRADIENT
   Keep ONLY the search bar white
   ========================================================= */

.ai-search-hero.ai-dashboard-mode,
.ai-search-hero.ai-dashboard-mode::before,
.ai-search-hero.ai-dashboard-mode::after,
.ai-search-hero.ai-dashboard-mode .ai-search-content,
.ai-search-hero.ai-dashboard-mode .ai-search-container,
.ai-search-hero.ai-dashboard-mode .ai-search-bar {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.ai-search-hero.ai-dashboard-mode .ai-glow,
.ai-search-hero.ai-dashboard-mode .glow-one,
.ai-search-hero.ai-dashboard-mode .glow-two,
.ai-search-hero.ai-dashboard-mode .glow-three {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  background: none !important;
  background-image: none !important;
}

.ai-search-hero.ai-dashboard-mode .ai-search-box {
  background: #fff !important;
  background-image: none !important;
  box-shadow: 0 4px 18px rgba(30,9,73,.08) !important;
}


/* Dashboard AI — let the search bar shadow fade naturally */
.ai-search-hero.ai-dashboard-mode {
  overflow: visible !important;
}

.ai-search-hero.ai-dashboard-mode .ai-search-box {
  box-shadow:
    0 12px 30px rgba(30, 9, 73, 0.08),
    0 28px 70px rgba(30, 9, 73, 0.06) !important;
}

.ai-search-hero.ai-dashboard-mode .ai-search-content {
  overflow: visible !important;
}


/* =========================================================
   DASHBOARD AI — prevent search-bar shadow clipping
   ========================================================= */

.ai-dashboard-page,
.ai-dashboard-page .ai-search-hero,
.ai-dashboard-page .ai-search-content,
.ai-dashboard-page .ai-search-box {
  overflow: visible !important;
}

.ai-dashboard-page {
  position: relative;
}

.ai-dashboard-page .ai-search-hero {
  position: relative;
}

.ai-dashboard-page .ai-search-content {
  position: relative;
  z-index: 10;
}

.ai-dashboard-page .ai-search-box {
  position: relative;
  z-index: 20;
  box-shadow:
    0 10px 25px rgba(30, 9, 73, 0.07),
    0 25px 60px rgba(30, 9, 73, 0.055) !important;
}


/* Dashboard AI: prevent search-bar shadow from being clipped */
#featureWorkspace,
#featureWorkspaceContent,
.ai-dashboard-page,
.ai-search-hero.ai-dashboard-mode,
.ai-search-hero.ai-dashboard-mode .ai-search-content {
  overflow: visible !important;
}

.ai-search-hero.ai-dashboard-mode .ai-search-box {
  overflow: visible !important;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.06),
    0 25px 60px rgba(0, 0, 0, 0.05) !important;
}

/* Dashboard AI: remove decorative glow elements */
.ai-search-hero.ai-dashboard-mode .ai-glow {
  display: none !important;
}


/* Dashboard AI: give the search bar shadow room to breathe */
.ai-dashboard-page,
.ai-dashboard-page .ai-search-hero,
.ai-dashboard-page .ai-search-content {
  overflow: visible !important;
}

.ai-dashboard-page .ai-search-hero {
  min-height: 100%;
  height: auto !important;
  padding: 80px 0 140px !important;
  box-sizing: border-box;
}

.ai-dashboard-page .ai-search-box {
  margin-bottom: 80px !important;
}


/* Dashboard AI: move search bar lower once chat mode starts */
.ai-search-hero.ai-dashboard-mode.chat-mode .ai-search-content {
  transform: translateY(120px);
}

.ai-search-hero.ai-dashboard-mode.chat-mode .ai-search-box {
  margin-bottom: 20px !important;
}


/* Dashboard AI — final chat-mode positioning */
.ai-search-hero.ai-dashboard-mode.chat-mode .ai-search-content {
  transform: translateY(70px) !important;
}

.ai-search-hero.ai-dashboard-mode.chat-mode .ai-search-box {
  margin-bottom: 20px !important;
}


/* Dashboard AI — centered title with uniform typography */
.ai-search-hero.ai-dashboard-mode .ai-search-content {
  text-align: center !important;
}

.ai-search-hero.ai-dashboard-mode .ai-headline h1 {
  text-align: center !important;
  font-size: 42px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: -1px !important;
}

.ai-search-hero.ai-dashboard-mode .ai-headline h1 span {
  display: inline !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}


/* Dashboard AI — identical weight across the entire headline */
.ai-search-hero.ai-dashboard-mode .ai-headline h1,
.ai-search-hero.ai-dashboard-mode .ai-headline h1 *,
.ai-search-hero.ai-dashboard-mode .ai-headline h1 span {
  font-weight: 500 !important;
  font-size: 42px !important;
}


/* Dashboard AI — make both headline lines visually identical */
.ai-search-hero.ai-dashboard-mode .ai-headline h1 {
  color: #111 !important;
  font-family: inherit !important;
  font-size: 42px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: -1px !important;
  text-align: center !important;
}

.ai-search-hero.ai-dashboard-mode .ai-headline h1 span {
  display: inline !important;
  color: #111 !important;
  font-family: inherit !important;
  font-size: 42px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: -1px !important;
}


/* Dashboard AI — compact centered headline */
.ai-search-hero.ai-dashboard-mode .ai-headline h1,
.ai-search-hero.ai-dashboard-mode .ai-headline h1 span {
  font-size: 30px !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
}

.ai-search-hero.ai-dashboard-mode .ai-headline {
  margin-bottom: 35px !important;
}

