:root {
    --bg: #0f1115;
    --panel: #1a1c23;
    --panel2: #20222a;
    --chat: #343541;
    --bot: #444654;
    --user: #2f3240;
    --text: #ececf1;
    --muted: #a1a7b3;
    --border: #2b2e36;
    --accent: #10a37f;
    --accent-2: #0e8e70;
    --chip: #2f323a;
    --gold: #f4d06f;
    --blue: #2a7bff;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.55 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    display: flex;
    justify-content: center
}

/* ---------- Loader ---------- */
.loader {
    position: fixed;
    inset: 0;
    background: #0b0e13;
    color: #dfe5ef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999
}

.swirl {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #0f1117;
    margin-bottom: 16px;
    box-shadow: 0 10px 40px #0009
}

.swirl img {
    width: 42px;
    height: 42px;
    animation: swpulse 2.2s ease-in-out infinite
}

@keyframes swpulse {

    0%,
    100% {
        transform: scale(.98)
    }

    50% {
        transform: scale(1)
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #1f2732;
    border-top-color: #10a37f;
    animation: spin 1s linear infinite;
    margin: 12px 0 8px
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.bar {
    width: 240px;
    height: 6px;
    background: #171c22;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: inset 0 0 0 1px #223
}

.bar>i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #0e7, #10a37f, #0e7);
    animation: bar 2.2s ease-out forwards
}

@keyframes bar {
    to {
        width: 100%
    }
}

.pct {
    margin-top: 6px;
    color: #9fb1c6;
    font-size: 12px
}

/* ---------- Shell ---------- */
.wrap {
    width: min(1100px, 100%);
    padding: 28px 18px;
    opacity: 0;
    transition: opacity .35s ease
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.logoBox {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #0f1117;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 20px #0006
}

.logoBox img {
    width: 26px;
    height: 26px
}

.title {
    font-weight: 800;
    font-size: clamp(18px, 3vw, 28px)
}

.subtitle {
    color: #b8bec9;
    font-size: 14px;
    margin-top: 2px
}

/* ---------- Hero ---------- */
.hero-intro {
    background: radial-gradient(80% 120% at 10% 0%, rgba(16, 163, 127, .16), transparent 60%),
        radial-gradient(70% 120% at 100% 20%, rgba(80, 120, 255, .12), transparent 60%),
        var(--panel2);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 22px;
    margin: 20px 0 26px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}

.hero-intro h1 {
    margin: 0 0 10px;
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 800
}

.hero-intro p {
    font-size: 16px;
    margin: 0 0 14px;
    line-height: 1.6;
    color: #dfe3eb
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: center
}

.hero-points li {
    background: #2b2f36;
    border: 1px solid #3a3f48;
    color: #e2e6ec;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px
}

.hero-cta a {
    background: var(--accent);
    color: #06140f;
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    transition: filter .15s
}

.hero-cta a:hover {
    filter: brightness(1.05)
}

.hero-sub {
    margin-top: 10px;
    color: #9fb0c4;
    font-size: 12px
}

/* ---------- Chat ---------- */
.chat {
    position: relative;
    background: var(--chat);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35)
}

.head {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #2b2c30;
    border-bottom: 1px solid #2c2d33;
    padding: 14px 16px
}

.miniLogo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #0f1117;
    display: grid;
    place-items: center
}

.miniLogo img {
    width: 18px;
    height: 18px
}

.name {
    font-weight: 700
}

.body {
    padding: 22px 0;
    min-height: 520px
}

.center {
    display: flex;
    justify-content: center;
    margin: 6px 0 18px
}

.chip {
    background: var(--chip);
    color: #c6cbd6;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px
}

.row {
    max-width: 860px;
    margin: 0 auto 16px;
    display: flex;
    gap: 12px;
    padding: 0 22px
}

.avatar {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #22252f;
    display: grid;
    place-items: center;
    margin-top: 2px
}

.avatar img {
    width: 18px;
    height: 18px;
    opacity: .95
}

.avatar.user {
    background: #4c515f;
    color: #d9e4ff;
    font-weight: 800
}

.bubble {
    flex: 1;
    background: #3a3c46;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #00000012
}

.row.user .bubble {
    background: #2f3240
}

.time {
    color: #c6c9d1;
    font-size: 12px;
    margin-bottom: 6px;
    opacity: .9
}

.quick {
    max-width: 860px;
    margin: 6px auto 14px;
    padding: 0 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.quick button {
    background: #2b2f36;
    border: 1px solid #3a3f48;
    color: #e2e6ec;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: .15s transform, .2s border-color
}

.quick button:hover {
    border-color: #5b6474;
    transform: translateY(-1px)
}

/* ---------- Form ---------- */
.form-wrap {
    max-width: 860px;
    margin: 0 auto 24px;
    padding: 0 22px;
    display: none
}

.card {
    background: #1e2027;
    border: 1px solid #2a2d36;
    border-radius: 16px;
    padding: 18px 16px
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.grid .full {
    grid-column: 1/-1
}

label {
    font-size: 12px;
    color: #9aa0a6;
    margin: 2px 2px 6px;
    display: block
}

input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #2b303a;
    background: #0e1117;
    color: #e9ecf1
}

input::placeholder {
    color: #788297
}

.cta {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.cta-button {
    background: var(--accent);
    border: 0;
    color: #03120e;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: filter .15s;
    text-align: center;
    text-decoration: none;
}

.cta-button:hover {
    filter: brightness(1.05)
}

.pl-guarantee {
    color: #9fb0c4;
    font-size: 12px
}

/* ---------- Footer ---------- */
.site-footer {
    margin: 26px 0 18px;
    padding: 18px 18px 22px;
    background: #26272f;
    border: 1px solid #2a2d33;
    border-radius: 14px;
    color: #b8bec9;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .25)
}

.sub-footer {
    position: sticky;
    bottom: 0;
    background: #1c1d23;
    border-top: 1px solid #2a2d33;
    color: #9fa6b6;
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 10px 10px 0 0;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center
}

.sub-footer .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #465062;
    opacity: .8
}

.iti {
    width: 100%
}

.error-message {
    text-align: center;
}

@keyframes blink {
    50% {
        opacity: 1
    }
}