/* Register page — AI chat demo styles (moved from auth.css)
   Only loaded on /register via @push('styles')
   Does NOT affect /login (login has no chat) */

/* ───────────────────────────────
   Chat container
   ─────────────────────────────── */
.chat {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-height: var(--auth-chat-height);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    contain: layout style;
}

.chat-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}

.chat-head .d {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.cd1 {
    background: #ff5f57;
}

.cd2 {
    background: #febc2e;
}

.cd3 {
    background: #28c840;
}

.chat-head .fn {
    margin-left: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ───────────────────────────────
   Chat body & messages
   ─────────────────────────────── */
.chat-body {
    flex: 1 1 auto;
    min-height: 0;
    min-height: var(--auth-chat-body-height);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.chat-body .msg {
    max-width: 90%;
    opacity: 0;
    transform: translateY(10px);
    animation: auth-rise 0.5s forwards;
}

.chat-body .msg.msg-wide {
    max-width: 100%;
}

@keyframes auth-rise {
    to {
        opacity: 1;
        transform: none;
    }
}

.chat-body .msg.user {
    align-self: flex-end;
}

/* ───────────────────────────────
   Bubbles
   ─────────────────────────────── */
.bubble-user {
    background: var(--green);
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px 14px 4px 14px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.bubble-ai-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
    font-weight: 600;
}

.bubble-ai-label .dot {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.bubble-ai {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 14px 16px;
    border-radius: 14px 14px 14px 4px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* ───────────────────────────────
   Typing prompt & caret
   ─────────────────────────────── */
.prompt-type {
    font-size: 0.92rem;
    color: #fff;
    line-height: 1.5;
}

.caret {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background: var(--green-bright);
    margin-left: 1px;
    vertical-align: text-bottom;
    animation: auth-blink 1s step-end infinite;
}

@keyframes auth-blink {
    0%,
    50% {
        opacity: 1;
    }
    50.01%,
    100% {
        opacity: 0;
    }
}

/* ───────────────────────────────
   Typing dots
   ─────────────────────────────── */
.typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 4px 0;
}

.typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: auth-bounce 1.2s infinite;
}

.typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes auth-bounce {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* ───────────────────────────────
   Request card (Lakeside Auto Repair)
   ─────────────────────────────── */
.req-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    color: var(--slate);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.req-top {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
}

.req-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.req-top .m b {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--slate);
}

.req-top .m small {
    color: var(--slate-faint);
    font-size: 0.8rem;
}

.req-amt {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--slate);
    line-height: 1;
}

.req-memo {
    font-size: 0.84rem;
    color: var(--slate-soft);
    margin: 6px 0 14px;
}

.req-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--green-deep);
    background: var(--green-pale);
    padding: 9px 13px;
    border-radius: 9px;
}

.req-status .ic {
    font-size: 0.9rem;
}
