/* ========================================
   AI Resume Builder — Pixel-perfect dark UI
   Matches target design exactly
   ======================================== */

.airb-shell {
    background: #0c0c0c;
    border-radius: 16px;
    border: 1px solid #1a1a1a;
    overflow: hidden;
    min-height: 420px;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
    max-width: 860px;
    margin: 0 auto;
}

/* ── LEFT PANEL ─────────────────────────── */
.airb-left {
    padding: 2.6rem 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #0c0c0c;
}

.airb-badge {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    color: #e05a6b;
    margin-bottom: 16px;
    display: block;
    text-transform: uppercase;
}

.airb-headline {
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.18;
    margin: 0 0 14px 0;
    letter-spacing: -.02em;
}

.airb-sub {
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    margin: 0 0 32px 0;
    max-width: 280px;
}

.airb-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.airb-btn-mic,
.airb-btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1;
}

.airb-btn-mic {
    background: #161616;
    border: 1px solid #2a2a2a;
    color: #e8e8e8;
}
.airb-btn-mic:hover {
    border-color: #3a3a3a;
    color: #fff;
    background: #1c1c1c;
}
.airb-btn-mic.rec {
    border-color: #e05a6b;
    color: #e05a6b;
    animation: airb-rec 1s infinite;
}
@keyframes airb-rec { 0%,100%{opacity:1} 50%{opacity:.45} }

.airb-btn-cv {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #888;
}
.airb-btn-cv:hover {
    border-color: #444;
    color: #ccc;
}

/* ── RIGHT PANEL ────────────────────────── */
.airb-right {
    padding: 1.4rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #0e0e0e;
    border-left: 1px solid #181818;
}

/* AI Response Card — berry/mauve */
.airb-ai-card {
    background: #7a3050;
    border-radius: 12px;
    padding: 1rem 1.15rem;
    flex-shrink: 0;
    position: relative;
}

.airb-ai-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #f0b8ca;
    margin-bottom: 9px;
    letter-spacing: .01em;
}

.airb-sparkle {
    font-size: 14px;
    color: #f0b8ca;
    line-height: 1;
}

.airb-ai-card p {
    font-size: 13.5px;
    color: #f5dde4;
    line-height: 1.6;
    margin: 0;
}

/* Typing indicator inside card */
.airb-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 2px 0;
}
.airb-typing span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #f0b8ca;
    opacity: .3;
    animation: airb-blink 1.2s infinite;
}
.airb-typing span:nth-child(2) { animation-delay: .2s; }
.airb-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes airb-blink { 0%,80%,100%{opacity:.2} 40%{opacity:1} }

/* User Pitch Card — dark */
.airb-user-pitch-card {
    background: #141414;
    border-radius: 12px;
    padding: .9rem 1.1rem;
    min-height: 90px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.airb-chat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 2px;
}
.airb-chat::-webkit-scrollbar { width: 3px; }
.airb-chat::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 2px; }

/* Chat bubbles — hidden inside the dark card, shown as plain text */
.airb-bubble-user {
    font-size: 13px;
    color: #ccc;
    line-height: 1.6;
    font-style: italic;
}
.airb-bubble-user::before { content: '"'; }
.airb-bubble-user::after  { content: '"'; }

.airb-bubble-ai {
    font-size: 12px;
    color: #777;
    line-height: 1.55;
    padding: 4px 0;
    border-top: 1px solid #1e1e1e;
    margin-top: 4px;
}

/* Placeholder quote shown before any conversation */
.airb-pitch-placeholder {
    display: flex;
    align-items: center;
    flex: 1;
}
.airb-pitch-quote {
    font-size: 13px;
    color: #9a9a9a;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

/* Resume Preview */
.airb-preview {
    background: #141414;
    border-radius: 10px;
    padding: .85rem 1rem;
    border: 1px solid #1e1e1e;
    flex-shrink: 0;
}
.airb-preview-title {
    font-size: 10px;
    font-weight: 700;
    color: #7a3050;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.airb-preview-name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.airb-preview-role { font-size: 12px; color: #888; margin-bottom: 8px; }
.airb-skill-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.airb-skill-pill {
    background: #2a0e1c;
    color: #f0b8ca;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #4a1a2e;
}
.airb-exp-item { font-size: 11px; color: #777; margin-bottom: 3px; }
.airb-exp-item strong { color: #bbb; }
.airb-export-row { display: flex; gap: 6px; margin-top: 10px; }
.airb-export-primary {
    flex: 1; padding: 7px 0; border-radius: 7px;
    background: #7a3050; color: #fff; border: none;
    font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: background .15s;
}
.airb-export-primary:hover { background: #5e2340; }
.airb-export-sec {
    flex: 1; padding: 7px 0; border-radius: 7px;
    background: transparent; color: #666; border: 1px solid #252525;
    font-size: 11px; font-weight: 500; cursor: pointer; font-family: inherit;
    transition: all .15s;
}
.airb-export-sec:hover { border-color: #444; color: #aaa; }

/* Input Row */
.airb-input-row {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.airb-input-row input {
    flex: 1;
    background: #141414;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 12.5px;
    color: #e0e0e0;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
}
.airb-input-row input:focus { border-color: #7a3050; }
.airb-input-row input::placeholder { color: #444; }
.airb-send-btn {
    background: #7a3050;
    border: none;
    border-radius: 8px;
    padding: 0 14px;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.airb-send-btn:hover { background: #5e2340; }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 640px) {
    .airb-shell {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }
    .airb-right { border-left: none; border-top: 1px solid #181818; }
    .airb-headline { font-size: 1.55rem; }
    .airb-left { padding: 2rem 1.5rem; }
}

.airb-exp-highlight {
    font-size: 10.5px;
    color: #666;
    display: block;
    margin-top: 2px;
}
