:root {
    --bg: #f6f7fb;
    --panel: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: rgba(15, 23, 42, .08);
    --shadow: 0 12px 35px rgba(2, 8, 23, .08);

    /* Jogi “navy + arany” hangulat */
    --primary: #0b2a4a;
    /* mély kék */
    --accent: #c9a227;
    /* arany */
    --bubbleUser: #0b2a4a;
    --bubbleBot: #f1f5f9;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background:
        radial-gradient(900px 500px at 10% 0%, rgba(11, 42, 74, .10), transparent 55%),
        radial-gradient(900px 500px at 90% 0%, rgba(201, 162, 39, .10), transparent 55%),
        var(--bg);
    color: var(--text);
}

.app {
    height: 100vh;
    display: grid;
    grid-template-columns: 360px 1fr;
}

.sidebar {
    padding: 22px;
    border-right: 1px solid var(--border);
    background: rgba(255, 255, 255, .70);
    backdrop-filter: blur(10px);
}

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

.logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), #123a63);
    box-shadow: 0 10px 20px rgba(11, 42, 74, .18);
}

.brand-title {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.1;
}

.brand-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow);
    margin-top: 14px;
}

.card-title {
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 10px;
}

.notice {
    border-left: 5px solid var(--accent);
}

.notice-title {
    font-weight: 900;
    color: #7a5d00;
    margin-bottom: 6px;
}

.notice-text {
    font-size: 12.5px;
    color: #334155;
    line-height: 1.35;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    border: 1px solid rgba(11, 42, 74, .18);
    background: rgba(11, 42, 74, .06);
    color: var(--primary);
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
}

.chip:hover {
    background: rgba(11, 42, 74, .10);
}

.fineprint {
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.35;
}

.main {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-width: 0;
}

.topbar {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .80);
    backdrop-filter: blur(10px);
}

.top-title {
    font-weight: 900;
    font-size: 16px;
}

.top-sub {
    color: var(--muted);
    font-size: 12.5px;
    margin-top: 2px;
}

.top-actions {
    display: flex;
    gap: 8px;
}

.chat {
    padding: 18px 20px;
    overflow: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    max-width: 860px;
    display: grid;
    gap: 6px;
}

.msg .meta {
    font-size: 11px;
    color: var(--muted);
}

.bubble {
    padding: 12px 14px;
    border-radius: 16px;
    line-height: 1.38;
    white-space: pre-wrap;
    border: 1px solid var(--border);
}

.msg.user {
    align-self: flex-end;
}

.msg.user .bubble {
    background: linear-gradient(180deg, rgba(11, 42, 74, .96), rgba(9, 33, 58, .98));
    color: white;
    border-color: rgba(11, 42, 74, .30);
    border-bottom-right-radius: 6px;
}

.msg.bot {
    align-self: flex-start;
}

.msg.bot .bubble {
    background: var(--bubbleBot);
    color: #0f172a;
    border-bottom-left-radius: 6px;
}

.composer {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, .80);
    backdrop-filter: blur(10px);
    padding: 12px 14px;
}

.composer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.inputwrap {
    min-width: 0;
}

#input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .12);
    outline: none;
    font-size: 14px;
    background: white;
}

#input:focus {
    border-color: rgba(11, 42, 74, .35);
    box-shadow: 0 0 0 4px rgba(11, 42, 74, .10);
}

.hint {
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--muted);
}

.btn {
    border: 0;
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), #123a63);
    color: white;
    box-shadow: 0 10px 18px rgba(11, 42, 74, .18);
}

.btn.primary:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.btn.ghost {
    background: rgba(15, 23, 42, .04);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, .08);
}

.send-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .12);
}

@media (max-width: 980px) {
    .app {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .chat {
        padding: 14px;
    }

    .topbar {
        padding: 14px;
    }
}