/* ================================
   BAU V4 — PREMIUM DESKTOP + MOBILE V3
================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    color: #111827;
}

/* DESKTOP PREMIUM PAGE */

.bau-page-shell {
    min-height: 100dvh;
    background: radial-gradient(circle at top left, rgba(226,27,27,.12), transparent 34%), linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.bau-premium-nav {
    height: 72px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(15,23,42,.08);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.bau-premium-back {
    color: #e21b1b;
    text-decoration: none;
    font-weight: 700;
}

.bau-premium-brand {
    font-weight: 800;
    color: #111827;
}

.bau-premium-hero {
    padding: 46px 24px 20px;
}

.bau-premium-hero-inner {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.bau-premium-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 13px;
    border-radius: 999px;
    background: #fff1f1;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 800;
}

.bau-premium-hero h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;
}

.bau-premium-hero p {
    max-width: 680px;
    margin: 14px auto 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.6;
}

.bau-chat-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 24px 60px;
}

/* CHAT */

#chat {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 620px;
    background: #ffffff;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 24px 70px rgba(15,23,42,.18);
}

.bau-topbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 14px 16px;
    background: #e21b1b;
    color: #ffffff;
}

.bau-back {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    opacity: .95;
}

.bau-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

#messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    background: #f7f7f7;
    scroll-behavior: smooth;
}

.user,
.bot {
    display: block;
    width: fit-content;
    max-width: 85%;
    margin: 10px 0;
    padding: 12px 14px;
    border-radius: 16px;
    line-height: 1.5;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.user {
    margin-left: auto;
    background: #e21b1b;
    color: #ffffff;
    border-bottom-right-radius: 6px;
}

.bot {
    margin-right: auto;
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.bau-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 92%;
    margin: 10px 0;
}

.bau-choice {
    appearance: none;
    border: 1px solid #f3b1b1;
    background: #ffffff;
    color: #991b1b;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

    .bau-choice:hover,
    .bau-choice:active {
        background: #fff5f5;
        border-color: #e21b1b;
    }

#form {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #eeeeee;
    background: #ffffff;
}

#input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 16px;
    line-height: 1.2;
    outline: none;
}

    #input:focus {
        border-color: #e21b1b;
    }

    #input::placeholder {
        color: #6b7280;
    }

#form button {
    flex-shrink: 0;
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: #e21b1b;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

    #form button:hover,
    #form button:active {
        background: #b70f0f;
    }

.bau-result-card {
    line-height: 1.45;
}

.bau-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

    .bau-result-actions a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 14px;
        border-radius: 999px;
        background: #e21b1b;
        color: #ffffff;
        text-decoration: none;
        font-size: 14px;
        font-weight: 700;
    }

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

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

@media (max-width: 767px) {

    html,
    body {
        width: 100%;
        height: 100%;
        min-height: 100%;
        overflow: hidden;
        background: #ffffff;
    }

    .bau-page-shell {
        min-height: 100svh;
        background: #ffffff;
    }

    .bau-premium-nav,
    .bau-premium-hero {
        display: none !important;
    }

    .bau-chat-wrap {
        display: block !important;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100svh;
        margin: 0;
        padding: 0;
        max-width: none;
        z-index: 99998;
        background: #ffffff;
    }

    #chat {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: 0;
        box-shadow: none;
        z-index: 99999;
    }

    .bau-topbar {
        min-height: 56px;
        padding: 0 16px;
        padding-top: calc(12px + env(safe-area-inset-top));
    }

    .bau-back {
        font-size: 15px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .bau-title {
        font-size: 17px;
    }

    #messages {
        padding: 14px;
    }

    .user,
    .bot {
        font-size: 16px;
        padding: 12px 16px;
        max-width: 88%;
    }

    .bau-buttons {
        flex-direction: column;
        max-width: 100%;
    }

    .bau-choice {
        width: 100%;
        font-size: 15px;
        padding: 12px 16px;
        min-height: 44px;
    }

    #form {
        gap: 8px;
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    #input {
        height: 48px;
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 12px;
    }

    #form button {
        height: 48px;
        padding: 0 18px;
        font-size: 16px;
        border-radius: 12px;
        min-width: 72px;
    }
}
.bau-top-actions {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

    .bau-top-actions button {
        flex: 1;
        border: 0;
        border-radius: 999px;
        padding: 9px 12px;
        font-weight: 700;
        cursor: pointer;
    }
.bau-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bau-top-action {
    border: 1px solid rgba(255,255,255,.45);
    background: rgba(255,255,255,.14);
    color: #fff;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

    .bau-top-action:hover {
        background: rgba(255,255,255,.24);
    }

.bau-title {
    margin-left: auto;
}
.bau-quick-links {
    margin: 10px 0 16px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid rgba(230, 0, 0, .14);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    max-width: 92%;
}

.bau-quick-title {
    font-size: 13px;
    font-weight: 700;
    color: #7a1c1c;
    margin-bottom: 8px;
}

.bau-quick-link {
    display: inline-flex;
    align-items: center;
    margin: 4px 5px 4px 0;
    padding: 6px 10px;
    border: 1px solid rgba(230, 0, 0, .22);
    border-radius: 999px;
    background: #fff7f7;
    color: #b40000;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

    .bau-quick-link:hover {
        background: #ffecec;
        border-color: rgba(230, 0, 0, .45);
        transform: translateY(-1px);
    }

    .bau-quick-link:focus {
        outline: 2px solid rgba(230, 0, 0, .22);
        outline-offset: 2px;
    }

@media (max-width: 640px) {
    .bau-quick-links {
        max-width: 100%;
        padding: 10px 11px;
        border-radius: 14px;
    }

    .bau-quick-link {
        font-size: 11.5px;
        padding: 6px 8px;
        margin: 3px 3px 3px 0;
    }
}