:root {
    --bg: #0b0c10;
    --bg-2: #111318;
    --card: #171a21;
    --card-2: #1d212b;
    --line: rgba(255, 255, 255, 0.08);
    --text: #e8eaef;
    --muted: #9aa3b5;
    --primary: #ff6a00;
    --primary-2: #ff8a33;
    --glow: 0 0 24px rgba(255, 106, 0, 0.35);
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --gold: #f5c518;
    --mod: #38bdf8;
    --admin: #f43f5e;
    --radius: 14px;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html, body { min-height: 100%; overflow-x: hidden; }

body {
    font-family: 'Outfit', 'Montserrat', sans-serif;
    background:
        radial-gradient(circle at 8% -10%, rgba(255, 106, 0, 0.14), transparent 32%),
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.08), transparent 28%),
        var(--bg);
    color: var(--text);
    line-height: 1.55;
}

a { color: var(--primary-2); text-decoration: none; }
a:hover { color: #fff; }

img { max-width: 100%; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: rgba(11, 12, 16, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), #ff3d00);
    color: #111;
    box-shadow: var(--glow);
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nav a, .nav button {
    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav a:hover, .nav a.active, .nav button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.pill {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--error);
    color: #fff;
    font-size: 11px;
    display: inline-grid;
    place-items: center;
}

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 80px;
}

.hero-panel, .card, .panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 28px;
    margin-bottom: 22px;
    background:
        linear-gradient(180deg, rgba(255, 106, 0, 0.08), transparent 50%),
        var(--card);
}

.hero-panel h1 { font-size: 2rem; margin-bottom: 8px; }
.hero-panel p { color: var(--muted); max-width: 720px; }

.grid-2 {
    display: grid;
    grid-template-columns: 1.7fr 0.9fr;
    gap: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.stat {
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
}

.stat b { display: block; font-size: 1.4rem; color: var(--primary); }

.online-avatars {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.online-avatars .avatar {
    width: 32px;
    height: 32px;
    border: 2px solid var(--card);
    margin-left: -6px;
}

.online-avatars .avatar:first-child { margin-left: 0; }

.online-strip .online-avatars a:hover .avatar {
    border-color: var(--primary);
    transform: translateY(-2px);
    transition: transform 0.15s ease;
}

.category, .thread-row, .post, .member, .plan {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.category {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
    transition: 0.2s transform, 0.2s border-color;
}

.category:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 106, 0, 0.45);
}

.cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #111;
    font-size: 1.1rem;
}

.muted { color: var(--muted); }
.tiny { font-size: 0.82rem; }

.thread-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 10px;
}

.avatar, .avatar-lg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 106, 0, 0.4);
    background: #222;
}

.avatar-lg { width: 88px; height: 88px; }

.btn, button.btn, input[type=submit] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #111;
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover { background: var(--primary-2); color: #111; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-danger { background: var(--error); color: #fff; }
.btn-gold { background: var(--gold); }

.form-input, .form-textarea, .form-select, input, textarea, select {
    width: 100%;
    background: #0f1218;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
}

label { display: block; margin: 0 0 8px; font-weight: 600; color: var(--muted); }
.field { margin-bottom: 14px; }

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    border: 1px solid transparent;
}

.alert-error { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); }
.alert-ok { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.35); }
.alert-warn { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.35); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-admin { background: rgba(244, 63, 94, 0.18); color: #fb7185; }
.badge-mod { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }
.badge-premium { background: rgba(245, 197, 24, 0.16); color: var(--gold); }
.badge-title { background: rgba(255, 255, 255, 0.06); color: var(--muted); }

.uname { font-weight: 800; color: #fff; }
.uname-admin { color: #fb7185; }
.uname-mod { color: #7dd3fc; }
.uname-premium { color: var(--gold); }

.crumbs { color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }

.post { margin-bottom: 14px; }
.post-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.post-body { overflow-wrap: anywhere; }
.post-body code { background: #0b0c10; padding: 2px 6px; border-radius: 6px; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }

.side-card { padding: 16px; margin-bottom: 14px; }
.user-mini { display: flex; gap: 10px; align-items: center; padding: 8px 0; }

.online-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.plan.featured { border-color: var(--gold); transform: translateY(-6px); }
.price { font-size: 2.2rem; font-weight: 800; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(460px, 100%);
    padding: 28px;
}

.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row img { border-radius: 8px; height: 42px; }

.footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 24px;
    color: var(--muted);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pin { color: var(--primary); margin-right: 6px; }
.lock { color: var(--warning); margin-right: 6px; }

.chat-box {
    height: 420px;
    overflow-y: auto;
    background: #0f1218;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
}

.chat-msg { display: flex; gap: 10px; margin-bottom: 12px; }
.chat-bubble { background: var(--card-2); padding: 8px 12px; border-radius: 12px; }

.msg-del {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0 6px;
    opacity: 0.45;
    vertical-align: middle;
}
.chat-msg:hover .msg-del,
.group-msg:hover .msg-del,
.msg-del:hover {
    opacity: 1;
    color: var(--error, #ff4444);
}

.chat-compose {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-top: 12px;
    position: relative;
}
.chat-compose textarea {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    resize: none;
}
.emoji-btn { font-size: 1.15rem; min-width: 44px; }
.emoji-panel {
    position: absolute;
    bottom: 52px;
    left: 0;
    z-index: 40;
    width: min(320px, 80vw);
    max-height: 220px;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    padding: 10px;
    background: #151820;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.emoji-panel button {
    background: transparent;
    border: 0;
    font-size: 1.25rem;
    padding: 4px;
    cursor: pointer;
    border-radius: 8px;
}
.emoji-panel button:hover { background: rgba(255,106,0,.15); }

.story-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 14px 16px;
    margin-bottom: 4px;
}
.story-bubble, .story-add {
    background: none;
    border: 0;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 74px;
    cursor: pointer;
    font-size: 0.75rem;
}
.story-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #ff8a00, #ff2d55 55%, #c13584);
}
.story-bubble.seen .story-ring { background: #3a3f4b; }
.story-add .story-ring.mine { background: #2a2f3a; }
.story-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #12141a;
    display: block;
}
.story-upload { padding: 16px; margin-top: 12px; }
.story-upload.open, .story-upload:not([hidden]) { display: block; }
.story-upload[hidden] { display: none !important; }

.story-viewer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: #000;
    color: #fff;
    flex-direction: column;
}
.story-viewer.open { display: flex; }
.story-progress {
    display: flex;
    gap: 4px;
    padding: 10px 12px 0;
}
.story-progress .seg {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,.28);
    border-radius: 99px;
    overflow: hidden;
}
.story-progress .seg span {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
}
.story-progress .seg.done span { width: 100%; }
.story-close {
    position: absolute;
    top: 18px;
    right: 14px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2rem;
    z-index: 2;
    cursor: pointer;
}
.story-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 56px 8px 16px;
}
.story-head > div { flex: 1; min-width: 0; }
.story-delete {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fecaca;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.story-delete[hidden] { display: none !important; }
.story-stage {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.story-stage img, .story-stage video {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    object-fit: contain;
    background: #000;
}
.story-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36%;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.story-nav.prev { left: 0; }
.story-nav.next { right: 0; }
.story-caption {
    text-align: center;
    padding: 10px 16px 18px;
    min-height: 2.2em;
}
.story-mute {
    position: absolute;
    bottom: 18px;
    right: 14px;
}

.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a, .tabs button {
    background: var(--card-2);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
}
.tabs .active { background: var(--primary); color: #111; border-color: var(--primary); }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

.landing-hero {
    background:
        linear-gradient(135deg, rgba(255,106,0,.16), rgba(17,19,24,.4) 45%, transparent),
        var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 36px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}
.landing-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; margin: 8px 0 12px; max-width: 760px; }
.landing-hero p { color: var(--muted); max-width: 680px; font-size: 1.05rem; }
.eyebrow { color: var(--primary); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; }
.landing-stats { margin-top: 28px; }
.changelog { padding: 24px; margin-bottom: 8px; }
.changelog ul { margin: 12px 0 0 18px; color: var(--muted); }
.changelog li { margin: 8px 0; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}
.feature-grid .plan { padding: 18px; }
.feature-grid i { color: var(--primary); font-size: 1.3rem; margin-bottom: 8px; display: block; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.step-num {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--primary); color: #111; font-weight: 800;
    display: grid; place-items: center; margin-bottom: 10px;
}
.mention { color: var(--gold); font-weight: 700; }
.quote-block {
    border-left: 3px solid var(--primary);
    background: rgba(255,106,0,.08);
    padding: 8px 12px;
    margin: 8px 0;
    border-radius: 0 8px 8px 0;
    color: var(--muted);
}
.badge-ok { background: rgba(34,197,94,.16); color: #4ade80; }
.poll-bar { height: 6px; background: #0f1218; border-radius: 99px; overflow: hidden; }
.poll-bar span { display: block; height: 100%; background: var(--primary); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--card-2);
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.mobile-dock { display: none; }

.profile-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    padding: 22px;
    margin-bottom: 16px;
    align-items: start;
}
.profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    background: #222;
}
.profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.profile-name-row h1 { font-size: clamp(1.4rem, 4vw, 2.1rem); }
.profile-badges { margin: 8px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.profile-tagline { margin-bottom: 10px; }
.profile-bio { white-space: pre-wrap; margin: 8px 0 12px; }
.profile-actions, .profile-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.online-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 700;
}
.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}
.profile-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.profile-facts .stat span {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
    word-break: break-word;
}
.profile-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
}
.profile-meta div { display: flex; flex-direction: column; gap: 2px; }
.profile-meta strong { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; }
.profile-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 16px;
}
.activity-row {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: inherit;
}
.activity-row:last-child { border-bottom: 0; }

@media (max-width: 900px) {
    .feature-grid, .steps-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .grid-2, .plans, .stats, .profile-grid, .profile-hero { grid-template-columns: 1fr; }
    .thread-row, .category { grid-template-columns: auto 1fr; }
    .profile-meta { grid-template-columns: 1fr; }
    .topbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 12px;
        gap: 8px;
    }
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 6px 0 8px;
    }
    .nav.is-open { display: flex; }
    .nav a, .nav button {
        min-height: 44px;
        justify-content: flex-start;
    }
    .page {
        width: min(100% - 16px, 1180px);
        margin: 16px auto 110px;
    }
    .hero-panel, .card, .panel { padding: 16px; }
    .btn, button.btn, input[type=submit] { min-height: 44px; }
    input, textarea, select { font-size: 16px; }
    .chat-box { height: min(52vh, 380px); }
    .story-viewer.open { height: 100dvh; }
    .profile-avatar { width: 88px; height: 88px; margin: 0 auto; }
    .profile-hero { text-align: center; justify-items: center; }
    .profile-actions, .profile-social, .profile-badges { justify-content: center; }
    .profile-facts { grid-template-columns: repeat(2, 1fr); }
    .mobile-dock {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 70;
        background: rgba(11, 12, 16, 0.94);
        border-top: 1px solid var(--line);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        justify-content: space-around;
        backdrop-filter: blur(14px);
    }
    .mobile-dock a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: var(--muted);
        font-size: 0.68rem;
        font-weight: 700;
        min-height: 52px;
        justify-content: center;
        position: relative;
    }
    .mobile-dock a i { font-size: 1.15rem; }
    .mobile-dock a.active, .mobile-dock a:hover { color: var(--primary); }
    .mobile-dock .pill { position: absolute; top: 4px; right: 18%; }
    .footer { padding-bottom: 8px; }
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
    min-height: auto;
}

.group-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--card-2);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.group-chat-layout .group-chat-box {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.group-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    max-height: 52vh;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.group-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.group-msg.mine {
    flex-direction: row-reverse;
}

.group-msg.mine > div {
    text-align: right;
}

.group-msg .avatar {
    width: 34px;
    height: 34px;
}

.group-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
    background: var(--card-2);
}

.group-chat-form input[type=text] {
    flex: 1;
    margin: 0;
}

.chat-img {
    max-width: 220px;
    border-radius: 10px;
    margin-top: 4px;
}

.friend-pick-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
}

.guide-bot {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
}

.guide-bot-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #121212;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.guide-bot-panel {
    position: absolute;
    right: 0;
    bottom: 62px;
    width: min(340px, calc(100vw - 36px));
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.guide-bot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--card-2);
}

.guide-bot-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.guide-bot-messages {
    height: 280px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-msg {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 92%;
}

.guide-msg.bot {
    background: var(--card-2);
    border: 1px solid var(--line);
    align-self: flex-start;
}

.guide-msg.user {
    background: rgba(255, 102, 0, 0.15);
    border: 1px solid rgba(255, 102, 0, 0.35);
    align-self: flex-end;
}

.guide-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.guide-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 12px 10px;
}

.guide-chips button {
    background: var(--card-2);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.75rem;
    cursor: pointer;
}
.guide-chips button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.guide-bot-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--line);
}

.guide-bot-form input {
    flex: 1;
    margin: 0;
}

.guide-bot-form button {
    min-width: 44px;
}

@media (max-width: 768px) {
    .guide-bot {
        right: 12px;
        bottom: 72px;
    }
}
