html, body {
    font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    margin: 0;
}

#blazor-error-ui {
    background: #DC2626;
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.8rem 1.25rem 0.8rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

#blazor-error-ui a.reload {
    color: white;
    text-decoration: underline;
    margin-left: 8px;
}

.chatseam-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F3F5FA;
    background-image:
        radial-gradient(900px circle at 12% 8%, rgba(27, 79, 224, 0.10), transparent 55%),
        radial-gradient(900px circle at 88% 92%, rgba(15, 158, 136, 0.10), transparent 55%);
    padding: 16px;
}

.chatseam-auth-card {
    width: 100%;
    max-width: 420px;
}

.chatseam-heading {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.chatseam-powered-by {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--mud-palette-text-disabled, #9CA3AF);
    text-align: center;
    letter-spacing: 0.02em;
}

#app-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #F3F5FA;
    transition: opacity 0.2s ease-out;
}

#app-loading img {
    height: 56px;
}

.app-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #DDE3EC;
    border-top-color: #1B4FE0;
    border-radius: 50%;
    animation: chatseam-spin 0.8s linear infinite;
}

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

.chatseam-reconnect-shell {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(243, 245, 250, 0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.chatseam-reconnect-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.chatseam-reconnect-panel {
    width: min(100%, 380px);
    padding: 36px 28px;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 24px 60px rgba(10, 18, 48, 0.2);
    text-align: center;
}

.chatseam-reconnect-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    margin-bottom: 18px;
}

.chatseam-reconnect-panel .app-loading-spinner {
    margin: 0 auto 16px;
}

.chatseam-reconnect-title {
    color: #18213B;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.chatseam-reconnect-subtitle {
    margin-top: 6px;
    color: #667085;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Zamucena pozadina iza svakog dijaloga. "BackgroundClass" na MudDialogProvider-u (kako uputstvo
   MudBlazor-a nalaze) ne radi u ovoj verziji - klasa se nikad ne pojavi u DOM-u. Zato ciljamo
   direktno stvarni element pozadine koji MudBlazor pravi (provereno u DevTools): .mud-overlay-scrim. */
.mud-overlay-scrim {
    background-color: rgba(15, 23, 42, 0.48) !important;
    backdrop-filter: blur(7px) !important;
    -webkit-backdrop-filter: blur(7px) !important;
}

/* Animirane tackice "kuca..." (Inbox). */
.cs-typing { display: inline-flex; gap: 4px; align-items: center; padding: 8px 12px; border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; background: var(--mud-palette-surface); }
.cs-typing span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; animation: cs-blink 1.2s infinite ease-in-out; }
.cs-typing span:nth-child(2) { animation-delay: .15s; }
.cs-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cs-blink { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .cs-typing span { animation: none; opacity: .7; } }

/* ===== Inbox ===== */
.cs-inbox { display: flex; height: calc(100vh - 100px); border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; overflow: hidden; background: var(--mud-palette-surface); }
.cs-inbox-list { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid var(--mud-palette-lines-default); }
.cs-inbox-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #EFEAE2; }
.cs-conv { display: flex; gap: 12px; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--mud-palette-lines-default); transition: background .12s; }
.cs-conv:hover { background: var(--mud-palette-action-default-hover); }
.cs-conv.unread { background: rgba(239, 68, 68, 0.08); }
.cs-conv.unread:hover { background: rgba(239, 68, 68, 0.13); }
.cs-conv.unread .cs-conv-name { font-weight: 700; }
.cs-conv.unread .cs-conv-preview { color: var(--mud-palette-text-primary); font-weight: 500; }
.cs-conv.selected { background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent); }
.cs-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 14px; }
.cs-conv-main { min-width: 0; flex: 1; }
.cs-conv-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cs-conv-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-conv-time { font-size: 11px; color: var(--mud-palette-text-secondary); flex-shrink: 0; }
.cs-conv-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cs-conv-preview { font-size: 13px; color: var(--mud-palette-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-conv-unread { background: #EF4444; color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 6px; flex-shrink: 0; }
.cs-conv-domain { font-size: 11px; color: var(--mud-palette-text-secondary); margin-top: 2px; }
.cs-conv-repeat { font-size: 11px; font-weight: 600; color: var(--mud-palette-warning-darken, #b45309); margin-top: 2px; }
.cs-chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--mud-palette-surface); border-bottom: 1px solid var(--mud-palette-lines-default); }
.cs-messages { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 3px; background-color:#EFEAE2; background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' viewBox='0 0 170 170' fill='none' stroke='%23000' stroke-opacity='.075' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 26h28a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4H34l-9 7v-7h-5a4 4 0 0 1-4-4V30a4 4 0 0 1 4-4z'/%3E%3Ccircle cx='120' cy='30' r='10'/%3E%3Cpath d='M116 28v.01M124 28v.01M115.5 34c2.5 3.5 6.5 3.5 9 0'/%3E%3Cpath d='M88 100l4.2 8.5 9.3 1.3-6.7 6.6 1.6 9.3-8.4-4.4-8.4 4.4 1.6-9.3-6.7-6.6 9.3-1.3z'/%3E%3Cpath d='M28 128c-6.5-6.5-13-10.5-13-17a7.5 7.5 0 0 1 13-5 7.5 7.5 0 0 1 13 5c0 6.5-6.5 10.5-13 17z'/%3E%3Cpath d='M130 128l6 6 13-15'/%3E%3Ccircle cx='62' cy='70' r='3'/%3E%3Ccircle cx='150' cy='80' r='2'/%3E%3Cpath d='M100 20l3 3m-3 0l3-3M40 90l3 3m-3 0l3-3'/%3E%3C/svg%3E"); background-size:170px 170px; }
.cs-bubble { display: flow-root; max-width: 65%; padding: 6px 10px 5px; border-radius: 12px; font-size: 14px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.09); }
.cs-bubble .cs-text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.cs-bubble.in { align-self: flex-start; background: #fff; color: #111b21; border-top-left-radius: 3px; }
.cs-bubble.out { align-self: flex-end; background: #D9FDD3; color: #111b21; border-top-right-radius: 3px; }
.cs-bubble .cs-time { float: right; margin: 6px 0 -3px 12px; font-size: 10px; opacity: .6; line-height: 1; }
.cs-day { align-self: center; font-size: 11px; color: #54656f; background: rgba(255,255,255,.92); border-radius: 8px; padding: 3px 12px; margin: 10px 0 6px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.cs-system { align-self: center; font-size: 12px; color: #54656f; background: rgba(255,244,196,.9); border-radius: 8px; padding: 4px 12px; margin: 6px 0; text-align: center; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.cs-sale { align-self: center; max-width: 92%; font-size: 13px; font-weight: 700; color: #14532d; background: #dcfce7; border: 1px solid #4ade80; border-radius: 10px; padding: 8px 14px; margin: 8px 0; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.cs-lang-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .03em; background: rgba(99,102,241,.16); color: var(--mud-palette-primary); vertical-align: 1px; }
.cs-composer-row { position: relative; }
.cs-quick-pop { position: absolute; left: 16px; right: 16px; bottom: calc(100% - 4px); max-height: 260px; overflow-y: auto; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; box-shadow: 0 8px 24px rgba(11, 21, 48, .14); z-index: 5; }
.cs-quick-item { padding: 9px 14px; cursor: pointer; border-bottom: 1px solid var(--mud-palette-lines-default); }
.cs-quick-item:last-child { border-bottom: 0; }
.cs-quick-item:hover, .cs-quick-item:first-child { background: var(--mud-palette-action-default-hover); }
.cs-quick-title { font-weight: 600; font-size: 13px; }
.cs-quick-body { font-size: 12px; color: var(--mud-palette-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-composer-row { display: flex; align-items: flex-end; gap: 10px; padding: 12px 16px; background: var(--mud-palette-surface); border-top: 1px solid var(--mud-palette-lines-default); }
.cs-composer { flex: 1; resize: none; border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 14px; line-height: 1.4; max-height: 140px; outline: none; background: var(--mud-palette-background); color: var(--mud-palette-text-primary); }
.cs-composer:focus { border-color: var(--mud-palette-primary); }
@media (max-width: 900px) { .cs-inbox-list { width: 100%; } .cs-inbox-chat { display: none; } .cs-inbox.has-selection .cs-inbox-list { display: none; } .cs-inbox.has-selection .cs-inbox-chat { display: flex; } }

/* Razgovor vodi drugi agent: polje za pisanje je zamenjeno trakom (samo pracenje). */
.cs-readonly-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--mud-palette-surface); border-top: 1px solid var(--mud-palette-lines-default); color: var(--mud-palette-text-secondary); font-size: 13px; }
.cs-readonly-row .cs-readonly-text { flex: 1; }

/* Automatizacija: pregled poruke u dijalogu pravila. */
.cs-auto-preview { padding: 14px; border-radius: 10px; background: #EFEAE2; display: flex; }
.cs-auto-preview.teaser { justify-content: flex-end; }
.cs-auto-bubble { max-width: 260px; padding: 9px 13px; font-size: 14px; line-height: 1.4; background: #fff; color: #1f2937; border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.08); white-space: pre-wrap; overflow-wrap: anywhere; }
.cs-auto-bubble.in { border-bottom-left-radius: 4px; }
.cs-auto-bubble.teaser { box-shadow: 0 6px 18px rgba(0,0,0,.18); }

/* Automatizacija: izbor okidaca (kartice) i koraci u dijalogu. */
.cs-trig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 700px) { .cs-trig-grid { grid-template-columns: 1fr; } }

/* Isto kao .cs-trig-grid, samo 2 kolone (izbor vrste usluge - Obicna / Zakazivanje). */
.cs-svctype-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 700px) { .cs-svctype-grid { grid-template-columns: 1fr; } }
.cs-trig-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 12px; border: 1px solid var(--mud-palette-lines-default); border-radius: 10px; background: var(--mud-palette-surface); color: inherit; cursor: pointer; font: inherit; transition: border-color .15s, box-shadow .15s; }
.cs-trig-card:hover { border-color: var(--mud-palette-primary); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.cs-trig-card.selected { border-color: var(--mud-palette-primary); box-shadow: 0 0 0 1px var(--mud-palette-primary); }
.cs-trig-card-title { font-weight: 600; font-size: 14px; }
.cs-trig-card-text { font-size: 12px; color: var(--mud-palette-text-secondary); line-height: 1.35; }
.cs-trig-summary { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--mud-palette-lines-default); border-radius: 10px; background: var(--mud-palette-background-gray); }
.cs-trig-summary-text { flex: 1; min-width: 0; }
.cs-trig-summary-title { font-weight: 600; font-size: 14px; }
.cs-trig-summary-sub { font-size: 12px; color: var(--mud-palette-text-secondary); }
.cs-step-label { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; font-weight: 600; font-size: 14px; }
.cs-step-label span { width: 22px; height: 22px; border-radius: 50%; background: var(--mud-palette-primary); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }

/* Bedz nepročitanih pored "Inbox" u meniju (desno) */
.mud-nav-link .mud-nav-link-text { flex: 1; min-width: 0; }
.cs-nav-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.cs-guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.cs-guide-toc { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); }
.cs-guide-toc-title { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mud-palette-text-secondary); padding: 2px 8px 6px; }
.cs-guide-toc a { padding: 6px 8px; border-radius: 8px; font-size: 14px; color: var(--mud-palette-text-primary); text-decoration: none; }
.cs-guide-toc a:hover { background: var(--mud-palette-action-default-hover); color: var(--mud-palette-primary); }
.cs-guide-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cs-guide-sec { padding: 22px 26px; border-radius: 14px; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); scroll-margin-top: 80px; line-height: 1.65; font-size: 14.5px; }
.cs-guide-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 20px; font-weight: 600; }
.cs-guide-sec h2 .mud-icon-root { color: var(--mud-palette-primary); }
.cs-guide-sec h3 { margin: 18px 0 6px; font-size: 15px; font-weight: 600; }
.cs-guide-sec p { margin: 0 0 10px; }
.cs-guide-sec ul, .cs-guide-sec ol { margin: 0 0 10px; padding-left: 22px; }
.cs-guide-sec li { margin-bottom: 4px; }
.cs-guide-sec code { background: var(--mud-palette-background-gray); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.cs-guide-steps { counter-reset: gstep; list-style: none; padding-left: 0 !important; }
.cs-guide-steps li { counter-increment: gstep; position: relative; padding-left: 38px; margin-bottom: 10px; }
.cs-guide-steps li::before { content: counter(gstep); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--mud-palette-primary); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.cs-guide-tip { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; background: var(--mud-palette-info-hover, rgba(27, 79, 224, .08)); font-size: 14px; }
.cs-guide-table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
.cs-guide-table td { padding: 9px 12px; border-bottom: 1px solid var(--mud-palette-lines-default); vertical-align: top; }
.cs-guide-table td:first-child { width: 190px; white-space: nowrap; }
@media (max-width: 960px) { .cs-guide { grid-template-columns: 1fr; } .cs-guide-toc { position: static; flex-direction: row; flex-wrap: wrap; } .cs-guide-table td:first-child { white-space: normal; width: 120px; } }
.mud-drawer .mud-drawer-content { display: flex; flex-direction: column; }
.cs-legal { max-width: 820px; margin: 0 auto; padding: 32px 20px 64px; line-height: 1.7; font-size: 15px; color: #0B1530; background: #fff; min-height: 100vh; }
.cs-legal-brand img { height: 44px; margin-bottom: 8px; }
.cs-legal h1 { font-size: 28px; margin: 8px 0 4px; font-weight: 700; }
.cs-legal h2 { font-size: 18px; margin: 28px 0 8px; font-weight: 600; }
.cs-legal p, .cs-legal li { color: #2b3a55; }
.cs-legal ul { padding-left: 22px; }
.cs-legal li { margin-bottom: 6px; }
.cs-legal a { color: #1B4FE0; }
.cs-legal-meta { color: #5B6B82 !important; font-size: 13px; margin-bottom: 16px; }
.cs-legal-foot { margin-top: 36px; padding-top: 16px; border-top: 1px solid #E3E9F2; font-size: 14px; }
.cs-legal-link { color: inherit; text-decoration: underline; }
.cs-nav-version { margin: auto 16px 12px; padding-top: 24px; font-size: 12px; color: var(--mud-palette-text-secondary); opacity: .7; }
.cs-nav-badge { background: #EF4444; color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

/* Ankete: pregled u dijalogu i statistika */
.cs-survey-preview { margin-top: 6px; padding: 18px 16px; border: 1px solid var(--mud-palette-lines-default); border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cs-survey-q { font-size: 16px; font-weight: 700; color: #111827; }
.cs-survey-stars { display: flex; justify-content: center; gap: 4px; }
.cs-survey-hint { font-size: 13px; color: #6b7280; }
.cs-survey-box { height: 56px; border: 1px solid #d1d5db; border-radius: 10px; }
.cs-survey-go { background: var(--mud-palette-primary); color: #fff; text-align: center; border-radius: 10px; padding: 10px; font-size: 14px; font-weight: 600; }
.cs-survey-skip { text-align: center; font-size: 13px; color: #6b7280; }
.cs-survey-avg { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 2px; }
.cs-survey-avg-num { font-size: 44px; font-weight: 700; line-height: 1; }
.cs-survey-bar { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.cs-survey-bar-label { width: 34px; font-size: 13px; color: var(--mud-palette-text-secondary); }
.cs-survey-bar-count { width: 30px; text-align: right; font-size: 13px; color: var(--mud-palette-text-secondary); }

/* Prodavnica: sličice, izbor proizvoda i karusel u Inbox-u */
.cs-inst-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; margin-bottom: 16px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #1B4FE0 0%, #0B1530 100%); }
.cs-inst-kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.cs-inst-title { font-size: 18px; font-weight: 600; margin: 2px 0 8px; }
.cs-inst-link { display: inline-block; padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, .14); font-family: ui-monospace, Consolas, monospace; font-size: 14px; word-break: break-all; }
.cs-inst-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-inst-actions .mud-button-outlined { color: #fff; border-color: rgba(255, 255, 255, .6); }
.cs-inst-actions .mud-button-filled { background: #fff; color: #1B4FE0; }
.cs-inst-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.cs-store { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 12px; border: 1px dashed var(--mud-palette-lines-default); color: var(--mud-palette-text-secondary); opacity: .85; }
.cs-store-sub { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.cs-store-name { font-size: 15px; font-weight: 600; color: var(--mud-palette-text-primary); }
.cs-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.cs-step { position: relative; padding: 16px; border-radius: 14px; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); text-align: center; }
.cs-step-n { position: absolute; top: 12px; left: 12px; width: 26px; height: 26px; border-radius: 50%; background: #1B4FE0; color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.cs-step-h { font-weight: 600; margin: 10px 0 4px; }
.cs-step-p { font-size: 13px; color: var(--mud-palette-text-secondary); line-height: 1.5; }
.cs-desk { padding-left: 20px; line-height: 1.9; }
.cs-shot { width: 96px; height: auto; }
.cs-shot .shot-body { fill: #0B1530; }
.cs-shot .shot-screen { fill: #F3F6FB; }
.cs-shot .shot-notch { fill: #2a3556; }
.cs-shot .shot-bar { fill: #E1E8F3; }
.cs-shot .shot-line { fill: #D3DCEB; }
.cs-shot .shot-card { fill: #fff; stroke: #D3DCEB; stroke-width: 1; }
.cs-shot .shot-hi { fill: #1B4FE0; }
.cs-shot .shot-dot { fill: #fff; }
.cs-shot .shot-icon { fill: none; stroke: #1B4FE0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cs-shot .shot-hi + .shot-icon { stroke: #fff; }
.cs-shot .shot-text { font-size: 9px; fill: #5B6B82; font-family: sans-serif; }
.cs-shot .shot-text-hi { font-size: 8px; fill: #fff; font-family: sans-serif; font-weight: 600; }
.cs-shot .shot-text-sm { font-size: 7px; fill: #0B1530; font-family: sans-serif; }
.cs-shot .shot-app { fill: #D3DCEB; }
.cs-shot .shot-brand { fill: #1B4FE0; }
.cs-shot .shot-glyph { fill: #fff; }
.cs-shop-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #f3f4f6; flex-shrink: 0; display: block; }
.cs-shop-thumb-empty { display: flex; align-items: center; justify-content: center; color: #9ca3af; }
.cs-pick-list { display: flex; flex-direction: column; border: 1px solid var(--mud-palette-lines-default); border-radius: 10px; overflow: hidden; }
.cs-pick-row { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 4px; cursor: pointer; border-bottom: 1px solid var(--mud-palette-lines-default); }
.cs-pick-row:last-child { border-bottom: 0; }
.cs-pick-row:hover { background: var(--mud-palette-action-default-hover); }
.cs-pick-row.off { opacity: .45; cursor: not-allowed; }
.cs-pick-row.off:hover { background: transparent; }
.cs-pick-row.on { background: var(--mud-palette-primary-hover); }
.cs-pick-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-pick-sub { font-size: 12px; color: var(--mud-palette-text-secondary); }
.cs-pick-sub s { opacity: .6; margin-right: 6px; }
.cs-pick-oos { color: #b45309; }
.cs-pick-sel { margin-bottom: 8px; }
.cs-cards { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 2px 0 4px; }
.cs-card { flex: 0 0 120px; display: flex; flex-direction: column; gap: 2px; background: rgba(255,255,255,.95); color: #111b21; border-radius: 10px; overflow: hidden; text-decoration: none; padding-bottom: 6px; }
.cs-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f3f4f6; display: block; }
.cs-card-name { font-size: 12px; font-weight: 600; padding: 4px 8px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-card-price { font-size: 12px; padding: 0 8px; opacity: .85; }
.cs-cardprev { margin-top: 6px; width: 190px; background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.18); overflow: hidden; display: flex; flex-direction: column; }
.cs-cardprev-img { aspect-ratio: 1 / 1; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.cs-cardprev-info { padding: 9px 11px 4px; display: flex; flex-direction: column; gap: 3px; }
.cs-cardprev-name { font-size: 13px; font-weight: 600; color: #111827; }
.cs-cardprev-price { font-size: 14px; font-weight: 700; color: #111827; }
.cs-cardprev-btn { margin: 4px 11px 11px; text-align: center; font-size: 13px; font-weight: 600; padding: 8px; border-radius: 9px; background: #E5E7EB; color: #111111; }
.cs-tick { display: inline-flex; vertical-align: -5px; margin-left: 7px; color: #b5bcc4; }
.cs-tick .mud-icon-root { font-size: 17px; }
.cs-tick.read { color: #53bdeb; }
.cs-card-btn { display: block; text-decoration: none; margin: 4px 8px 0; text-align: center; font-size: 11px; font-weight: 600; padding: 5px; border-radius: 7px; background: var(--mud-palette-primary); color: var(--mud-palette-primary-text); }

/* Rok cuvanja razgovora i pomoc u Inbox-u */
.cs-retention-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; font-size: 12px; line-height: 1.4; color: var(--mud-palette-text-secondary); background: var(--mud-palette-background-gray); border-top: 1px solid var(--mud-palette-lines-default); cursor: pointer; }
.cs-retention-note .mud-icon-root { margin-top: 1px; color: var(--mud-palette-success); flex-shrink: 0; }
.cs-help { display: flex; flex-direction: column; gap: 14px; }
.cs-help-item { display: flex; gap: 12px; align-items: flex-start; }
.cs-help-item > .mud-icon-root { margin-top: 2px; flex-shrink: 0; }
.cs-help-item b { font-size: 14px; }
.cs-help-item p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--mud-palette-text-secondary); }
.cs-help-item p b { font-size: inherit; color: var(--mud-palette-text-primary); }

/* Pregled (statistika) */
.cs-ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 16px; }
.cs-ov-card { background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; padding: 16px 18px; }
.cs-ov-num { font-size: 32px; font-weight: 700; line-height: 1.1; }
.cs-ov-label { font-size: 14px; font-weight: 600; margin-top: 4px; }
.cs-ov-sub { font-size: 12px; color: var(--mud-palette-text-secondary); margin-top: 2px; }
.cs-ov-bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.cs-ov-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; background: var(--mud-palette-background-gray); border-radius: 3px; min-width: 3px; }
.cs-ov-fill { width: 100%; min-height: 2px; background: var(--mud-palette-primary); border-radius: 3px; }
.cs-ov-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--mud-palette-text-secondary); margin-top: 4px; }

.cs-ov-star { color: #f59e0b; font-size: 22px; margin-left: 4px; }
.cs-ov-fill-star { background: #f59e0b; }

/* Klikabilni linkovi u porukama */
.cs-bubble a { color: inherit; text-decoration: underline; word-break: break-all; }
.cs-bubble a.ext-link::after { content: " ↗"; font-size: .85em; opacity: .7; text-decoration: none; display: inline-block; }

/* Usluge: pregled u dijalogu, izbor i lista u poruci */
.cs-svcprev { margin-top: 6px; display: flex; gap: 10px; padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.cs-svcprev-img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 10px; overflow: hidden; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #6b7280; }
.cs-svcprev-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-svcprev-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cs-svcprev-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.cs-svcprev-name { font-size: 14px; font-weight: 600; color: #111827; word-break: break-word; }
.cs-svcprev-price { font-size: 13px; font-weight: 700; color: #111827; white-space: nowrap; }
.cs-svcprev-desc { font-size: 12px; color: #6b7280; line-height: 1.4; word-break: break-word; }
.cs-svcprev-btn { align-self: flex-start; margin-top: 4px; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; background: #E5E7EB; color: #111111; }
.cs-chk { width: 22px; height: 22px; margin: 0 9px 0 11px; border: 2px solid var(--mud-palette-primary); border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; font-weight: 700; color: #fff; box-sizing: border-box; }
.cs-chk.on { background: var(--mud-palette-primary); }
.cs-chk.off { border-color: var(--mud-palette-text-secondary); }
.cs-svcs { display: flex; flex-direction: column; gap: 6px; min-width: 240px; }
.cs-svc { display: flex; gap: 8px; padding: 6px; background: rgba(255,255,255,.95); color: #111b21; border-radius: 10px; }
.cs-svc img, .cs-svc-noimg { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 8px; object-fit: cover; background: #f3f4f6; }
.cs-svc-noimg { display: flex; align-items: center; justify-content: center; font-weight: 700; color: #6b7280; }
.cs-svc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-svc-top { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.cs-svc-name { font-size: 13px; font-weight: 600; }
.cs-svc-price { font-size: 12px; font-weight: 700; white-space: nowrap; }
.cs-svc-desc { font-size: 11.5px; color: #54656f; line-height: 1.35; }
.cs-svc-btn { align-self: flex-start; margin-top: 2px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 7px; background: #E5E7EB; color: #111111; text-decoration: none; }

/* Izbor paketa na registraciji */
.cs-plan {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.cs-plan:hover { border-color: var(--mud-palette-primary); }
.cs-plan-on {
    border-color: var(--mud-palette-primary);
    background: rgba(79, 70, 229, .08);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .16);
}
.cs-plan-radio {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--mud-palette-lines-default);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
}
.cs-plan-on .cs-plan-radio { background: var(--mud-palette-primary); border-color: var(--mud-palette-primary); }
.cs-plan-text { flex: 1; min-width: 0; }
.cs-plan-name { font-weight: 700; font-size: 15px; }
.cs-plan-on .cs-plan-name { color: var(--mud-palette-primary); }
.cs-plan-desc { font-size: 12px; color: var(--mud-palette-text-secondary); }
.cs-plan-price { font-weight: 700; font-size: 16px; white-space: nowrap; text-align: right; }
.cs-plan-price span { display: block; font-size: 11px; font-weight: 400; color: var(--mud-palette-text-secondary); }
.cs-plan-biz { cursor: default; border-style: dashed; flex-wrap: wrap; justify-content: space-between; }
.cs-plan-biz:hover { border-color: var(--mud-palette-lines-default); }

/* Pregled platforme (Administrator) */
.cs-dash-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mud-palette-text-secondary); margin: 22px 0 10px; }
.cs-dash-h:first-of-type { margin-top: 4px; }

.cs-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cs-kpi-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cs-kpi-grid, .cs-kpi-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cs-kpi-grid, .cs-kpi-grid-3 { grid-template-columns: 1fr; } }

.cs-kpi-link { text-decoration: none; color: inherit; display: block; }
.cs-kpi {
    --tone: #64748b;
    position: relative;
    height: 100%;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 14px;
    padding: 16px 18px 14px 20px;
    overflow: hidden;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.cs-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone); }
.cs-kpi-link:hover .cs-kpi { box-shadow: 0 6px 18px rgba(15, 23, 42, .10); transform: translateY(-1px); border-color: var(--tone); }
.cs-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cs-kpi-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 14%, transparent);
    flex: 0 0 40px;
}
.cs-kpi-value { font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--tone); letter-spacing: -.02em; text-align: right; }
.cs-kpi-label { font-size: 14px; font-weight: 600; margin-top: 10px; }
.cs-kpi-sub { font-size: 12px; color: var(--mud-palette-text-secondary); margin-top: 2px; }
.cs-kpi-hl { background: color-mix(in srgb, var(--tone) 8%, var(--mud-palette-surface)); border-color: color-mix(in srgb, var(--tone) 45%, transparent); }

.cs-tone-green { --tone: #16a34a; }
.cs-tone-blue { --tone: #2563eb; }
.cs-tone-indigo { --tone: #4f46e5; }
.cs-tone-amber { --tone: #d97706; }
.cs-tone-red { --tone: #dc2626; }
.cs-tone-teal { --tone: #0d9488; }
.cs-tone-purple { --tone: #7c3aed; }
.cs-tone-slate { --tone: #64748b; }

.cs-dash-panel { border-radius: 14px !important; }
.cs-dash-row { padding: 8px 0; border-bottom: 1px solid var(--mud-palette-lines-default); }
.cs-dash-row:last-child { border-bottom: 0; }

.cs-dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.cs-dash-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cs-dash-bar-val { font-size: 11px; font-weight: 700; height: 14px; color: var(--mud-palette-text-secondary); }
.cs-dash-bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; background: var(--mud-palette-background-gray); border-radius: 6px; overflow: hidden; }
.cs-dash-bar-fill { width: 100%; min-height: 3px; background: linear-gradient(180deg, #6366f1, #4f46e5); border-radius: 6px 6px 0 0; }
.cs-dash-bar-today { background: linear-gradient(180deg, #34d399, #059669); }
.cs-dash-bar-day { font-size: 10px; color: var(--mud-palette-text-secondary); }

/* Kockice za 6-cifreni kod (prijava, uključivanje dvofaktorske zaštite) */
.cs-otp { display: flex; gap: 8px; justify-content: center; }
.cs-otp-box {
    width: 44px; height: 52px; text-align: center; font-size: 22px; font-weight: 700;
    border: 1.5px solid var(--mud-palette-lines-default); border-radius: 10px;
    background: var(--mud-palette-surface); color: var(--mud-palette-text-primary);
    font-family: inherit; -webkit-appearance: none; appearance: none;
}
.cs-otp-box:focus { outline: none; border-color: var(--mud-palette-primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .16); }
.cs-otp-box:disabled { opacity: .6; }
