/* ============================================================
   Variables — strictly black & white palette
   ============================================================ */
:root {
    --black: #000;
    --white: #fff;
    --background: #000;
    --text: #fff;
    --placeholder: #808080;
    --green: #25B555;
    --red: #FF6600;
    --blue: #25B1B5;
}

/* ============================================================
   Font Faces — Roboto only
   ============================================================ */
@font-face { font-family:'Roboto'; src:url('../fonts/Roboto-Thin.ttf') format('truetype'); font-weight:100; }
@font-face { font-family:'Roboto'; src:url('../fonts/Roboto-Light.ttf') format('truetype'); font-weight:300; }
@font-face { font-family:'Roboto'; src:url('../fonts/Roboto-Regular.ttf') format('truetype'); font-weight:400; }
@font-face { font-family:'Roboto'; src:url('../fonts/Roboto-Medium.ttf') format('truetype'); font-weight:500; }
@font-face { font-family:'Roboto'; src:url('../fonts/Roboto-Bold.ttf') format('truetype'); font-weight:700; }
@font-face { font-family:'Roboto'; src:url('../fonts/Roboto-Black.ttf') format('truetype'); font-weight:900; }

/* ============================================================
   Global Reset
   ============================================================ */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    color: var(--text);
    font-family: 'Roboto', Arial, sans-serif;
    text-decoration: none;
    scrollbar-width: none;
}
*::-webkit-scrollbar { display: none; }
body {
    background: var(--black);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.5;
}

/* ============================================================
   Chat ID chunked display
   ============================================================ */
.id-chunk { font-weight: 700; letter-spacing: 0.04em; }
.id-sep {
    display: inline-block;
    width: 0.55em;
    user-select: none;
    pointer-events: none;
}

/* ============================================================
   Buttons
   ============================================================ */
.button1 {
    border: none; background: none; outline: none;
    font-size: 15px; padding: 9px 20px;
    border-radius: 8px; font-weight: 500;
    cursor: pointer; text-align: center;
    transition: text-decoration .1s;
    display: inline-block;
}
.button1:hover { text-decoration: underline; }

.button2 {
    border: 2px solid var(--white); background: none; outline: none;
    font-size: 15px; padding: 9px 22px;
    border-radius: 8px; font-weight: 500;
    cursor: pointer; text-align: center;
    transition: background .1s, color .1s;
    display: inline-block;
}
.button2:hover { background: var(--white); color: var(--black); }
.button2:hover * { color: var(--black); }

.button3 {
    border: 2px solid var(--white); background: var(--white); outline: none;
    font-size: 15px; padding: 10px 24px;
    border-radius: 8px; color: var(--black); font-weight: 600;
    cursor: pointer; text-align: center;
    transition: background .1s, color .1s;
    display: inline-block;
}
.button3 * { color: var(--black); }
.button3:hover { background: var(--black); color: var(--white); border-color: var(--white); }
.button3:hover * { color: var(--white); }

.small { padding: 6px 14px !important; font-size: 13px !important; }

/* ============================================================
   Inputs — 8px radius, 15px font, no active/focus width change
   ============================================================ */
.input1 {
    border: 2px solid var(--white);
    background: none;
    outline: none;
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 400;
    color: var(--white);
    width: 100%;
}
.input1::placeholder { color: var(--placeholder); }

select.input1 {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
select.input1 option { background: var(--black); color: var(--white); }

.textarea-clean {
    background: none;
    border: 2px solid var(--white);
    border-radius: 8px;
    outline: none;
    font-size: 15px;
    font-weight: 400;
    color: var(--white);
    width: 100%;
    padding: 10px 14px;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
}
.textarea-clean::placeholder { color: var(--placeholder); }

/* Field label — small uppercase */
.field-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

/* Combined text + button row */
.text_button_input {
    display: flex;
    border: 2px solid var(--white);
    border-radius: 8px;
    overflow: hidden;
}
.text_button_input input {
    flex: 1; outline: none; border: none;
    background: transparent;
    color: var(--white);
    font-size: 15px; font-weight: 400;
    padding: 11px 16px;
}
.text_button_input input::placeholder { color: var(--placeholder); }
.text_button_input button {
    background: var(--white); color: var(--black);
    border: none; font-size: 14px; font-weight: 700;
    padding: 11px 24px; cursor: pointer;
    letter-spacing: 0.2px;
    transition: background .1s; flex-shrink: 0;
}
.text_button_input button:hover { background: #e8e8e8; }

/* Lookup row */
.lookup-row {
    display: flex;
    border: 2px solid var(--white);
    border-radius: 8px;
    overflow: hidden;
}
.lookup-row input {
    flex: 1; background: none; border: none; outline: none;
    font-size: 15px; font-weight: 400;
    color: var(--white); padding: 11px 16px;
}
.lookup-row input::placeholder { color: var(--placeholder); }
.lookup-row button {
    background: var(--white); color: var(--black);
    border: none; font-size: 14px; font-weight: 700;
    padding: 11px 22px; cursor: pointer;
    flex-shrink: 0; transition: background .1s; letter-spacing: 0.2px;
}
.lookup-row button:hover { background: #e8e8e8; }

/* Lookup row inside white widget — inverted */
.widget .lookup-row { border-color: var(--black); }
.widget .lookup-row input { color: var(--black); }
.widget .lookup-row input::placeholder { color: var(--placeholder); }
.widget .lookup-row button { background: var(--black); color: var(--white); }
.widget .lookup-row button:hover { background: #1a1a1a; }

/* ============================================================
   Widget card (white background, inverted)
   ============================================================ */
.widget {
    background: var(--white);
    border-radius: 10px;
    padding: 24px;
}
.widget * { color: var(--black); }
.widget h3 { font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.widget p  { font-size: 15px; font-weight: 400; line-height: 1.6; margin-bottom: 18px; }

/* Status boxes */
.msg-box {
    border: 2px solid var(--white);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px; font-weight: 500;
}
.msg-box.error   { border-color: var(--red);   color: var(--red); }
.msg-box.success { border-color: var(--green); color: var(--green); }
.msg-box.info    { border-color: var(--blue);  color: var(--blue); }

/* ============================================================
   Animations
   ============================================================ */
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes dot-flashing {
    0%       { background-color: var(--white); }
    50%, 100% { background-color: #ffffff25; }
}

.iframe-wrapper {
    position: relative; flex: 1;
    overflow: hidden; display: flex;
    flex-direction: column; background: var(--black);
}
.iframe-wrapper::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 24px; height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #ffffff15;
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 0;
}
.iframe-wrapper iframe {
    position: relative; z-index: 1;
    flex: 1; width: 100%; border: none;
}

.dot-flashing {
    position: relative; width: 8px; height: 8px;
    border-radius: 50%; background: var(--white);
    animation: dot-flashing 1s infinite linear alternate;
    animation-delay: .5s;
}
.dot-flashing::before, .dot-flashing::after {
    content: ''; display: inline-block; position: absolute;
    top: 0; width: 8px; height: 8px; border-radius: 50%;
    background: var(--white);
}
.dot-flashing::before { left: -14px; animation: dot-flashing 1s infinite alternate; animation-delay: 0s; }
.dot-flashing::after  { left:  14px; animation: dot-flashing 1s infinite alternate; animation-delay: 1s; }

/* ============================================================
   Support — top navigation / taskbar
   Content constrained to same max-width as page body (740px)
   ============================================================ */
.support-nav {
    position: sticky;
    top: 0;
    background: var(--black);
    border-bottom: 1px solid var(--white);
    z-index: 10;
    display: flex;
    justify-content: center;
}
.nav-inner {
    max-width: 740px;
    width: 100%;
    padding: 0 32px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.nav-brand .nav-logo {
    height: 26px;
    width: auto;
    display: block;
}

/* ============================================================
   Support index — body layout
   ============================================================ */
.support-body {
    max-width: 740px;
    margin: 0 auto;
    width: 100%;
    padding: 48px 32px 80px;
    display: flex;
    flex-direction: column;
    gap: 52px;
}

.sp-section { display: flex; flex-direction: column; gap: 18px; }

/* Section header label */
.sp-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-left: 10px;
    border-left: 3px solid var(--white);
}

/* Error banner */
.error-banner {
    border: 2px solid var(--red);
    border-radius: 8px;
    padding: 11px 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--red);
}

/* ============================================================
   FAQ — slight-radius accordion (no bold on open)
   ============================================================ */
.faq-pills { display: flex; flex-direction: column; gap: 6px; }

.faq-pill {
    border: 2px solid var(--white);
    border-radius: 8px;
    overflow: hidden;
}
.faq-pill input[type="checkbox"] { display: none; }
.faq-pill label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 13px 17px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}
.faq-pill .faq-toggle {
    font-size: 22px;
    font-weight: 300;
    flex-shrink: 0;
    line-height: 1;
    transition: transform .25s ease;
    width: 20px;
    text-align: center;
}
.faq-pill input:checked ~ label .faq-toggle { transform: rotate(45deg); }
.faq-pill .faq-body {
    display: none;
    padding: 0 17px 15px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    border-top: 1px solid var(--white);
    padding-top: 13px;
}
.faq-pill input:checked ~ .faq-body { display: block; }

/* ============================================================
   Ticket form
   ============================================================ */
.ticket-form { display: flex; flex-direction: column; gap: 14px; }
.form-field { display: flex; flex-direction: column; }

/* Full-width submit button */
.ticket-form .button3 {
    width: 100%;
    display: block;
    padding: 11px;
}

/* ============================================================
   Support chat page — constrained to 740px on desktop
   ============================================================ */
body.chat-body-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}
.chat-wrap {
    flex: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
}
.chat-page {
    max-width: 740px;
    width: 100%;
    display: flex; flex-direction: column;
    overflow: hidden;
    border-left: 1px solid var(--white);
    border-right: 1px solid var(--white);
}

.chat-header {
    flex-shrink: 0;
    border-bottom: 1px solid var(--white);
    padding: 16px 24px;
    display: flex; flex-direction: column; gap: 10px;
}
.chat-header-top {
    display: flex; align-items: center;
    justify-content: space-between; gap: 12px;
}
.chat-topic { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }
.chat-status-badge {
    font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    border: 2px solid var(--white); border-radius: 6px;
    padding: 4px 11px; flex-shrink: 0;
}
.chat-status-badge.resolved { border-color: var(--green); color: var(--green); }

.chat-id-block { display: flex; flex-direction: column; gap: 4px; }
.save-hint { font-size: 13px; font-weight: 400; }
.chat-id-display { font-size: 19px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; }
.param-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.param-pill {
    font-size: 12px; font-weight: 500;
    border: 1px solid var(--white); border-radius: 6px;
    padding: 3px 10px; display: inline-flex; gap: 5px;
}
.param-pill .pname { font-weight: 400; }

.chat-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.chat-footer { flex-shrink: 0; padding: 13px 18px; border-top: 1px solid var(--white); }
.chat-footer-resolved {
    flex-shrink: 0; padding: 13px 18px; border-top: 1px solid var(--white);
    display: flex; align-items: center; justify-content: center;
    gap: 16px; font-size: 14px;
}

/* ============================================================
   Chat bubbles
   ============================================================ */
.chat-frame-body {
    background: var(--black);
    min-height: 100vh;
    padding: 18px 18px 22px;
    display: flex; flex-direction: column;
    justify-content: flex-end;
}

.chat-log { display: flex; flex-direction: column; gap: 10px; }

.msg-row {
    display: flex; flex-direction: column;
    max-width: 70%; gap: 4px;
    animation: slideUp .18s ease;
}
.msg-row.mine   { align-self: flex-end;   align-items: flex-end; }
.msg-row.theirs { align-self: flex-start; align-items: flex-start; }
.msg-row.system { align-self: center; align-items: center; max-width: 85%; }

.msg-bubble {
    padding: 10px 16px;
    font-size: 15px; font-weight: 400;
    line-height: 1.55; word-break: break-word;
    border: 2px solid var(--white);
}

/* tail: bottom-right small → points toward right-aligned sender below */
.msg-row.mine .msg-bubble {
    background: var(--white); color: var(--black);
    border-radius: 14px 14px 4px 14px;
}
.msg-row.mine .msg-bubble * { color: var(--black); }

/* tail: bottom-left small → points toward left-aligned sender below */
.msg-row.theirs .msg-bubble {
    background: transparent; color: var(--white);
    border-radius: 14px 14px 14px 4px;
}

.msg-row.system .msg-bubble {
    border: 1px solid var(--white); border-radius: 6px;
    background: transparent; color: var(--white);
    text-align: center; font-size: 12px; font-weight: 400;
    padding: 4px 12px;
}

.msg-meta {
    font-size: 11px; font-weight: 400;
    display: flex; gap: 6px; padding: 0 3px;
    align-items: baseline;
}
.msg-meta .sender { font-size: 13px; font-weight: 700; }

.no-messages {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 240px; gap: 16px;
    border: 1px solid var(--white); border-radius: 8px;
}
.no-messages span { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

/* ============================================================
   Management — Login page
   ============================================================ */
.login-page {
    min-height: 100vh; display: flex;
    align-items: center; justify-content: center; padding: 24px;
}
.login-card {
    width: 100%; max-width: 400px;
    background: var(--white); border-radius: 10px;
    padding: 36px 32px;
    display: flex; flex-direction: column; gap: 20px;
}
.login-card * { color: var(--black); }
.login-brand { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.login-card h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.login-error {
    border: 2px solid var(--red); border-radius: 8px;
    padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--red);
}
.login-error * { color: var(--red); }
.login-field { display: flex; flex-direction: column; gap: 5px; }
.login-field label { font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.login-field input {
    background: var(--white); color: var(--black);
    border: 2px solid var(--black); border-radius: 8px;
    padding: 10px 14px; font-size: 15px; outline: none;
}
.login-field input::placeholder { color: var(--placeholder); }
.login-submit {
    background: var(--black); color: var(--white);
    border: 2px solid var(--black); border-radius: 8px;
    padding: 11px 24px; font-size: 15px; font-weight: 700;
    cursor: pointer; text-align: center;
    letter-spacing: 0.2px; transition: background .1s; width: 100%;
}
.login-submit:hover { background: #222; }
.login-submit * { color: var(--white); }

/* ============================================================
   Management — Dashboard 3-panel
   ============================================================ */
.tab-radios { display: none; }
body.dashboard-body { overflow: hidden; height: 100vh; }

.dashboard {
    display: grid;
    grid-template-columns: 310px 1fr 300px;
    height: 100vh; overflow: hidden;
}
.panel {
    display: flex; flex-direction: column;
    height: 100vh; overflow: hidden;
    border-right: 1px solid var(--white);
}
.panel:last-child { border-right: none; }

.panel-header {
    flex-shrink: 0; padding: 14px 18px;
    border-bottom: 1px solid var(--white);
    display: flex; align-items: center; justify-content: space-between;
}
.panel-header h2 { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

.panel-body {
    flex: 1; overflow-y: auto; padding: 18px;
    display: flex; flex-direction: column; gap: 18px;
}
.panel-body.no-pad { padding: 0; gap: 0; }
.panel-footer { flex-shrink: 0; padding: 12px 16px; border-top: 1px solid var(--white); }

/* ── Middle panel ── */
.chat-panel-header {
    flex-shrink: 0; border-bottom: 1px solid var(--white);
    padding: 14px 18px; display: flex; flex-direction: column; gap: 8px;
}
.cph-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cph-ids { display: flex; flex-direction: column; gap: 2px; }
.cph-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.cph-id   { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.cph-topic { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
.cph-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.btn-resolve {
    border: 2px solid var(--green); background: transparent; color: var(--green);
    border-radius: 6px; padding: 4px 14px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
    cursor: pointer; transition: all .1s; text-transform: uppercase;
}
.btn-resolve:hover { background: var(--green); color: var(--black); }
.badge-resolved {
    border: 2px solid var(--white); border-radius: 6px;
    padding: 4px 12px; font-size: 11px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
}
.btn-close {
    background: none; border: 1px solid var(--white); color: var(--white);
    border-radius: 50%; width: 26px; height: 26px;
    font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .1s; flex-shrink: 0; text-decoration: none;
}
.btn-close:hover { background: var(--white); color: var(--black); }

.empty-chat {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: 100%; gap: 12px;
    border: 1px solid var(--white); margin: 18px; border-radius: 8px;
}
.empty-chat .ec-mark { font-size: 36px; font-weight: 100; letter-spacing: -2px; line-height: 1; }
.empty-chat p { font-size: 14px; font-weight: 400; text-align: center; padding: 0 18px; }

/* ── Right panel / account ── */
.acct-section { display: flex; flex-direction: column; gap: 10px; }
.acct-section-title {
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding-bottom: 8px; border-bottom: 1px solid var(--white);
}
.acct-username { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.1; }
.acct-token {
    font-size: 12px; font-weight: 400;
    border: 1px solid var(--white); border-radius: 6px;
    padding: 8px 12px; word-break: break-all; line-height: 1.5;
}

.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input {
    flex: 1; min-width: 120px; background: none;
    border: 2px solid var(--white); border-radius: 7px;
    padding: 8px 13px; font-size: 14px; color: var(--white); outline: none;
}
.inline-form input::placeholder { color: var(--placeholder); }
.inline-form button {
    background: var(--white); color: var(--black);
    border: 2px solid var(--white); border-radius: 7px;
    padding: 8px 18px; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all .1s; flex-shrink: 0;
}
.inline-form button:hover { background: var(--black); color: var(--white); }

.admin-list { display: flex; flex-direction: column; gap: 6px; }
.admin-item {
    border: 1px solid var(--white); border-radius: 8px;
    padding: 10px 13px; display: flex; align-items: flex-start; gap: 8px;
}
.admin-item .item-text { flex: 1; font-size: 14px; font-weight: 500; line-height: 1.4; }
.admin-item form { flex-shrink: 0; }

.btn-del {
    background: none; border: 1px solid var(--white); color: var(--white);
    border-radius: 5px; padding: 4px 10px;
    font-size: 12px; font-weight: 700; cursor: pointer;
    transition: all .1s; letter-spacing: 0.3px; text-transform: uppercase;
}
.btn-del:hover { background: var(--red); border-color: var(--red); }

.stack-form { display: flex; flex-direction: column; gap: 7px; }
.stack-form input, .stack-form textarea, .stack-form select {
    background: none; border: 2px solid var(--white);
    border-radius: 7px; padding: 9px 13px;
    font-size: 14px; color: var(--white); outline: none;
    font-family: inherit; resize: none;
}
.stack-form input::placeholder, .stack-form textarea::placeholder { color: var(--placeholder); }
.stack-form select { cursor: pointer; }
.stack-form select option { background: var(--black); }
.stack-form textarea { min-height: 64px; }

.btn-add {
    background: var(--white); color: var(--black);
    border: 2px solid var(--white); border-radius: 7px;
    padding: 9px 20px; font-size: 14px; font-weight: 700;
    cursor: pointer; align-self: flex-start;
    letter-spacing: 0.2px; transition: all .1s; text-transform: uppercase;
}
.btn-add:hover { background: var(--black); color: var(--white); }

.user-entry {
    border: 1px solid var(--white); border-radius: 8px;
    padding: 11px 13px; display: flex; flex-direction: column; gap: 5px;
}
.ue-top { display: flex; align-items: center; gap: 8px; }
.ue-name { font-size: 15px; font-weight: 700; flex: 1; }
.ue-badge {
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; border: 1px solid var(--white);
    border-radius: 5px; padding: 2px 7px;
}
.ue-badge.admin { border-color: var(--blue); color: var(--blue); }
.ue-token { font-size: 12px; font-weight: 400; word-break: break-all; line-height: 1.4; }
.ue-actions { margin-top: 4px; }

/* ============================================================
   Chat list (left panel iframe)
   ============================================================ */
.chat-list-body { background: var(--black); min-height: 100vh; }

.chat-list-item {
    display: block; padding: 14px 18px;
    border-bottom: 1px solid var(--white);
    border-left: 3px solid transparent;
    transition: background .08s; cursor: pointer;
}
.chat-list-item:hover { background: var(--white); }
.chat-list-item:hover * { color: var(--black); }
.chat-list-item:hover .cli-badge { border-color: var(--black); color: var(--black); }

.chat-list-item.active { background: var(--white); border-left-color: var(--white); }
.chat-list-item.active * { color: var(--black); }
.chat-list-item.active .cli-badge { border-color: var(--black); color: var(--black); }
.chat-list-item.resolved .cli-topic { font-weight: 400; }

.cli-topic {
    font-size: 15px; font-weight: 700; margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: flex; align-items: center; gap: 6px;
}
.cli-badge {
    font-size: 10px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; border: 1px solid var(--white);
    border-radius: 4px; padding: 2px 6px; flex-shrink: 0;
}
.cli-id { font-size: 12px; font-weight: 400; margin-bottom: 4px; }
.cli-preview {
    font-size: 13px; font-weight: 400;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; margin-bottom: 3px;
}
.cli-time { font-size: 12px; font-weight: 400; }
.chat-list-empty {
    display: flex; align-items: center; justify-content: center;
    padding: 36px 18px; font-size: 14px; font-weight: 400; letter-spacing: 0.5px;
}

/* ============================================================
   Mobile tab bar
   ============================================================ */
.tab-bar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    height: 52px; background: var(--black);
    border-top: 1px solid var(--white); z-index: 100;
}
.tab-bar label {
    flex: 1; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; letter-spacing: 0.8px;
    text-transform: uppercase; cursor: pointer; user-select: none;
    border-right: 1px solid var(--white); transition: all .1s;
}
.tab-bar label:last-child { border-right: none; }

body:has(#tab-chats:checked)   .tab-bar label[for="tab-chats"]   { background: var(--white); color: var(--black); }
body:has(#tab-chat:checked)    .tab-bar label[for="tab-chat"]    { background: var(--white); color: var(--black); }
body:has(#tab-account:checked) .tab-bar label[for="tab-account"] { background: var(--white); color: var(--black); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) { .dashboard { grid-template-columns: 280px 1fr 270px; } }
@media (max-width: 900px)  { .dashboard { grid-template-columns: 240px 1fr 240px; } }

@media (max-width: 768px) {
    body.dashboard-body { padding-bottom: 52px; }
    .dashboard { display: block; height: calc(100vh - 52px); }
    .panel {
        display: none !important;
        height: calc(100vh - 52px);
        position: fixed; top: 0; left: 0; right: 0; z-index: 10;
    }
    body:has(#tab-chats:checked)   .panel.chat-list-panel { display: flex !important; }
    body:has(#tab-chat:checked)    .panel.chat-view-panel  { display: flex !important; }
    body:has(#tab-account:checked) .panel.account-panel    { display: flex !important; }
    .tab-bar { display: flex; }

    .nav-inner { padding: 0 20px; }
    .support-body { padding: 36px 20px 64px; gap: 44px; }
    .chat-header { padding: 13px 16px; }
    .chat-id-display { font-size: 15px; }
    .msg-row { max-width: 84%; }
}

@media (max-width: 480px) {
    .chat-id-display { font-size: 13px; }
    .msg-bubble { font-size: 14px; padding: 9px 13px; }
    .nav-brand { font-size: 14px; }
}
