/* ===== DIGITAL GLASS: HIGH-FIDELITY "BAMBOO CAFE" DITTO SOURCE v71.0 ===== */
:root {
    --wa-bg: #000000;
    --wa-header: #000000;
    --wa-input: #202c33;
    --wa-green: #00a884;
    --wa-msg-in: #1b1d21;
    /* Bot: Old Engine Deep Onyx */
    --wa-msg-out: #262d31;
    /* User: Old Engine Subtle Slate */
    --wa-tick: #53bdeb;
}

.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 {
    display: none;
    /* No doodle background */
}

/* 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;
    position: relative;
}

/* Punch Hole Notch */
.chat-mock .status-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
    border: 0.5px solid rgba(255, 255, 255, 0.05);
}

/* 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;
}

.chat-mock .messages {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Tightened to fit whole chat */
    overflow: hidden;
    /* No scrolling */
    z-index: 1;
    position: relative;
    justify-content: flex-start;
    background: #000000;
    /* Pure OLED Black */
}

/* Date Pill (v205.0) */
.chat-mock .date-chip {
    align-self: center;
    background: #182229;
    color: #8696a0;
    font-size: 11px;
    /* Slightly smaller */
    font-weight: 500;
    padding: 4px 10px;
    /* Thinner padding */
    border-radius: 12px;
    margin: 4px 0;
    /* Thinner margins */
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
    text-transform: uppercase;
    letter-spacing: 0.1px;
}

.chat-mock .bubble {
    max-width: 78%;
    /* WhatsApp standard width */
    padding: 8px 12px 6px 12px;
    font-size: 13px;
    /* User requested -2px reduction */
    line-height: 1.5;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.chat-mock .bubble.in {
    align-self: flex-start;
    background: #1b1d21;
    /* Bot: Deep Onyx */
    color: #e9edef;
    border-radius: 8px;
    /* Sharper */
    border-top-left-radius: 0;
    margin-left: 6px;
    /* Give room for tail */
}

.chat-mock .bubble.out {
    align-self: flex-end;
    background: #262d31;
    /* User: Subtle Slate */
    color: #e9edef;
    border-radius: 8px;
    /* Sharper */
    border-top-right-radius: 0;
    margin-right: 6px;
    /* Give room for tail */
}

/* 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);
}