/* ===== DIGITAL GLASS: HIGH-FIDELITY "BAMBOO CAFE" DITTO SOURCE v71.0 ===== */
:root {
    --wa-bg: #0b141a;
    --wa-header: #202c33;
    --wa-input: #2a3942;
    --wa-green: #00a884;
    --wa-msg-in: #1b1d21;
    /* Bot: Deep Onyx */
    --wa-msg-out: #262d31;
    /* User: Subtle Slate */
    --wa-tick: #e2a86b;
    /* Amber Ticks */
}

.chat-mock {
    position: fixed;
    bottom: -5000px;
    /* Hidden off-screen capture source */
    left: 0;
    width: 400px;
    height: 850px;
    background: var(--wa-bg);
    display: flex;
    flex-direction: column;
    color: #e9edef;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    z-index: -100;
    overflow: hidden;
}

/* Subtle WhatsApp Wallpaper Overlay (Ditto Lab) */
/* CSS-Based Subtle Doodle Pattern (Zero CORS) */
.chat-mock::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle, #ffffff 0.5px, transparent 0.5px);
    background-size: 15px 15px;
    z-index: 0;
    pointer-events: none;
}

/* 1. STATUS BAR */
.chat-mock .status-bar {
    height: 38px;
    background: var(--wa-header);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 500;
    z-index: 1;
}

/* 2. HEADER */
.chat-mock .header {
    height: 68px;
    background: var(--wa-header);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 12px;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.chat-mock .avatar-wrap {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.chat-mock .header .name {
    flex: 1;
    min-width: 0;
}

.chat-mock .header .name h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.1px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #e9edef;
}

.chat-mock .header .name p {
    margin: 0;
    font-size: 12px;
    color: #8696a0;
}

.chat-mock .header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #aebac1;
    padding-right: 4px;
}

/* 3. MESSAGES */
.chat-mock .messages {
    flex: 1;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    z-index: 1;
    position: relative;
}

.chat-mock .bubble {
    max-width: 85%;
    padding: 6px 10px 4px 10px;
    font-size: 15px;
    line-height: 1.3;
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.chat-mock .bubble.in {
    align-self: flex-start;
    background: var(--wa-msg-in);
    color: #e9edef;
    border-radius: 0 10px 10px 10px;
    border: 1px solid rgba(226, 168, 107, 0.1);
    box-shadow: 0 0 15px rgba(226, 168, 107, 0.08);
    /* Amber Glow */
}

.chat-mock .bubble.out {
    align-self: flex-end;
    background: var(--wa-msg-out);
    color: #aebac1;
    /* Slightly dimmed for messy user */
    border-radius: 10px 0 10px 10px;
}

/* Message Tails (Ditto Lab) */
.chat-mock .bubble.in .tail {
    position: absolute;
    top: 0;
    left: -8px;
    fill: var(--wa-msg-in);
}

.chat-mock .bubble.out .tail {
    position: absolute;
    top: 0;
    right: -8px;
    fill: var(--wa-msg-out);
}

.chat-mock .bubble .msg-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 2px;
    opacity: 0.6;
    height: 12px;
}

.chat-mock .bubble .time {
    font-size: 10px;
    font-weight: 500;
    color: rgba(233, 237, 239, 0.6);
}

/* 3.5 TYPING ANIMATION (v89.0) */
.typing-bubble {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px !important;
    width: fit-content;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #8696a0;
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 4. INPUT AREA */
.chat-mock .input-area {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding-bottom: 12px;
    z-index: 1;
}

.chat-mock .input-bar {
    flex: 1;
    background: var(--wa-input);
    border-radius: 28px;
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: #8696a0;
    font-size: 16px;
}

.chat-mock .mic-button {
    width: 52px;
    height: 52px;
    background: var(--wa-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

/* 5. NAV BAR */
.chat-mock .nav-bar {
    height: 52px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-bottom: 6px;
    box-shadow: 0 -1px 1px rgba(255, 255, 255, 0.05);
}