*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background: #0a0c11;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #e8eaf0;
    -webkit-font-smoothing: antialiased;
}

#cenvoriq-front-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

:root {
    --bg-0:        #0a0c11;
    --bg-1:        #10131a;
    --bg-2:        #181b24;
    --bg-3:        #1f2333;
    --bg-4:        #252a3a;
    --border:      #2e3347;
    --border-lt:   #3a4060;
    --brand:       #4475e3;
    --brand-lt:    #6b96f5;
    --brand-dim:   rgba(68,117,227,0.14);
    --text-1:      #f0f2f8;
    --text-2:      #b0b7d0;
    --text-3:      #707896;
    --text-4:      #454d6a;
    --success:     #34d17a;
    --success-dim: rgba(52,209,122,0.12);
    --warning:     #f5a623;
    --warning-dim: rgba(245,166,35,0.12);
    --danger:      #f25c5c;
    --danger-dim:  rgba(242,92,92,0.12);
    --radius:      8px;
    --radius-lg:   12px;
    --sidebar-w:   220px;
    --topbar-h:    52px;
    --mobile-topbar-h: 56px;
}

/* ── Login ─────────────────────────────────────────────────────────────────── */
.cvq-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-0);
    padding: 20px;
}

.cvq-login-box {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    width: 100%;
    max-width: 400px;
}

.cvq-login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.cvq-login-logo h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--brand-lt);
    letter-spacing: -0.5px;
}

.cvq-login-logo p {
    font-size: 13px;
    color: var(--text-3);
    margin-top: 6px;
}

.cvq-login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.cvq-login-field label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.cvq-login-field input {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-1);
    padding: 11px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    -webkit-appearance: none;
}

.cvq-login-field input:focus {
    border-color: var(--brand);
    background: var(--bg-4);
}

.cvq-login-btn {
    width: 100%;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.15s;
    -webkit-appearance: none;
    touch-action: manipulation;
}

.cvq-login-btn:hover   { background: var(--brand-lt); }
.cvq-login-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.cvq-login-error {
    background: var(--danger-dim);
    border: 1px solid rgba(242,92,92,0.3);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 14px;
    text-align: center;
}

/* ── App layout ────────────────────────────────────────────────────────────── */
.cvq-app {
    display: flex;
    min-height: 100vh;
    background: var(--bg-1);
}

/* ── Mobile topbar (hamburger) ─────────────────────────────────────────────── */
.cvq-mobile-topbar {
    display: none;
    height: var(--mobile-topbar-h);
    background: var(--bg-0);
    border-bottom: 1px solid var(--border);
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
}

.cvq-mobile-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-lt);
    letter-spacing: -0.3px;
}

.cvq-hamburger {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-2);
    padding: 7px 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.cvq-hamburger:active { background: var(--bg-3); }

/* ── Sidebar overlay (mobile) ──────────────────────────────────────────────── */
.cvq-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 149;
}

.cvq-sidebar-overlay.open { display: block; }

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
.cvq-sidebar {
    width: var(--sidebar-w);
    background: var(--bg-0);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 150;
    overflow-y: auto;
    transition: transform 0.25s ease;
}

.cvq-sidebar-brand {
    padding: 20px 18px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cvq-sidebar-brand h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--brand-lt);
    letter-spacing: -0.4px;
}

.cvq-sidebar-brand span {
    font-size: 10px;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.cvq-sidebar-close {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    padding: 4px;
    touch-action: manipulation;
}

.cvq-nav {
    flex: 1;
    padding: 6px 0;
    overflow-y: auto;
}

.cvq-nav-section-label {
    padding: 14px 16px 4px;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.cvq-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-3);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: all 0.12s ease;
    position: relative;
    touch-action: manipulation;
    min-height: 44px;
}

.cvq-nav-item:hover  { background: var(--bg-2); color: var(--text-2); }
.cvq-nav-item.active { background: var(--brand-dim); color: var(--brand-lt); }

.cvq-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 3px;
    background: var(--brand);
    border-radius: 0 3px 3px 0;
}

.cvq-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cvq-nav-item.active .cvq-nav-icon,
.cvq-nav-item:hover  .cvq-nav-icon { opacity: 1; }

.cvq-sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
}

.cvq-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cvq-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-dim);
    border: 1px solid var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-lt);
    flex-shrink: 0;
}

.cvq-user-info   { min-width: 0; }

.cvq-user-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cvq-user-role {
    font-size: 10px;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cvq-logout-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-3);
    padding: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.12s;
    font-weight: 500;
    touch-action: manipulation;
    min-height: 36px;
}

.cvq-logout-btn:hover {
    background: var(--danger-dim);
    border-color: rgba(242,92,92,0.4);
    color: var(--danger);
}

/* ── Main ──────────────────────────────────────────────────────────────────── */
.cvq-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cvq-topbar {
    height: var(--topbar-h);
    background: var(--bg-0);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 12px;
}

.cvq-topbar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    flex: 1;
}

.cvq-page {
    padding: 24px 28px;
    flex: 1;
}

/* ── Page header ───────────────────────────────────────────────────────────── */
.cvq-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.cvq-page-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.2;
}

.cvq-page-header p {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 4px;
}

/* ── Stats grid ────────────────────────────────────────────────────────────── */
.cvq-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.cvq-stat {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.cvq-stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 8px;
}

.cvq-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1;
}

.cvq-stat-sub {
    font-size: 11px;
    color: var(--text-4);
    margin-top: 6px;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.cvq-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.12s ease;
    white-space: nowrap;
    touch-action: manipulation;
    min-height: 36px;
    -webkit-appearance: none;
}

.cvq-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.cvq-btn-primary { background: var(--brand); color: #fff; }
.cvq-btn-primary:hover:not(:disabled) { background: var(--brand-lt); }

.cvq-btn-ghost {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
}

.cvq-btn-ghost:hover:not(:disabled) {
    background: var(--bg-3);
    color: var(--text-1);
    border-color: var(--border-lt);
}

.cvq-btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid transparent;
}

.cvq-btn-danger:hover:not(:disabled) {
    background: var(--danger-dim);
    border-color: rgba(242,92,92,0.3);
}

/* ── Table card ────────────────────────────────────────────────────────────── */
.cvq-table-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.cvq-table-toolbar {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    gap: 10px;
    flex-wrap: wrap;
    background: var(--bg-2);
}

.cvq-search {
    background: var(--bg-3) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    color: var(--text-1) !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    flex: 1 !important;
    min-width: 160px !important;
    max-width: 300px !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    transition: border-color 0.15s !important;
}

.cvq-search:focus {
    border-color: var(--brand) !important;
    background: var(--bg-4) !important;
}

.cvq-search::placeholder {
    color: var(--text-4) !important;
    opacity: 1 !important;
}

/* ── Desktop table ─────────────────────────────────────────────────────────── */
.cvq-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table.cvq-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    min-width: 600px;
}

table.cvq-table th {
    padding: 9px 16px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 0.9px;
    border-bottom: 1px solid var(--border);
    border-left: none;
    border-right: none;
    border-top: none;
    background: var(--bg-1);
    white-space: nowrap;
}

table.cvq-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    border-left: none;
    border-right: none;
    border-top: none;
    color: var(--text-2);
    font-size: 13px;
    vertical-align: middle;
}

table.cvq-table tr:last-child td { border-bottom: none; }

table.cvq-table tbody tr:nth-child(odd)  td { background: var(--bg-2); }
table.cvq-table tbody tr:nth-child(even) td { background: var(--bg-3); }

table.cvq-table tbody tr:hover td {
    background: var(--bg-4) !important;
    color: var(--text-1);
}

.cvq-table-name {
    font-weight: 600;
    color: var(--text-1) !important;
    font-size: 13px !important;
}

/* ── Mobile cards (umesto tabele) ──────────────────────────────────────────── */
.cvq-mobile-list {
    display: none;
}

.cvq-mobile-card {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.cvq-mobile-card:last-child { border-bottom: none; }

.cvq-mobile-card:nth-child(odd)  { background: var(--bg-2); }
.cvq-mobile-card:nth-child(even) { background: var(--bg-3); }

.cvq-mobile-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}

.cvq-mobile-card-name {
    font-weight: 600;
    color: var(--text-1);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cvq-mobile-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-bottom: 10px;
}

.cvq-mobile-card-meta span {
    font-size: 12px;
    color: var(--text-3);
}

.cvq-mobile-card-meta strong {
    color: var(--text-2);
    font-weight: 400;
}

.cvq-mobile-card-actions {
    display: flex;
    gap: 8px;
}

.cvq-mobile-card-actions .cvq-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
    min-height: 40px;
}

/* ── Badge ─────────────────────────────────────────────────────────────────── */
.cvq-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cvq-badge-active   { background: var(--success-dim); color: var(--success); }
.cvq-badge-inactive { background: rgba(107,114,128,0.1); color: #7a8099; }
.cvq-badge-lead     { background: var(--warning-dim); color: var(--warning); }

/* ── Empty state ───────────────────────────────────────────────────────────── */
.cvq-empty {
    text-align: center;
    padding: 56px 20px;
}

.cvq-empty-icon {
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
}

.cvq-empty p {
    font-size: 14px;
    color: var(--text-3);
}

/* ── Loading ───────────────────────────────────────────────────────────────── */
.cvq-loading {
    text-align: center;
    padding: 56px;
    color: var(--text-3);
    font-size: 13px;
}

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.cvq-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.cvq-modal {
    background: var(--bg-2);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cvq-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: var(--bg-2);
    z-index: 1;
}

.cvq-modal-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-1);
}

.cvq-modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.cvq-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: stretch;
    gap: 8px;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background: var(--bg-2);
}

.cvq-modal-footer .cvq-btn {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    font-size: 14px;
}

/* ── Form ──────────────────────────────────────────────────────────────────── */
.cvq-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cvq-form-grid.full { grid-template-columns: 1fr; }

.cvq-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cvq-field label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cvq-field input,
.cvq-field select,
.cvq-field textarea {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-1) !important;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
    width: 100%;
    -webkit-appearance: none;
    caret-color: var(--text-1);
    min-height: 42px;
}

.cvq-field input:focus,
.cvq-field select:focus,
.cvq-field textarea:focus {
    border-color: var(--brand);
    background: var(--bg-4);
}

.cvq-field input::placeholder,
.cvq-field textarea::placeholder {
    color: var(--text-4) !important;
    opacity: 1 !important;
}

.cvq-field textarea { resize: vertical; min-height: 80px; }
.cvq-field select option { background: var(--bg-2); }

.cvq-form-spacer { height: 6px; }

/* ── Error ─────────────────────────────────────────────────────────────────── */
.cvq-error-box {
    background: var(--danger-dim);
    border: 1px solid rgba(242,92,92,0.25);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 14px;
}

/* ── Card ──────────────────────────────────────────────────────────────────── */
.cvq-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}

/* ── Theme button ──────────────────────────────────────────────────────────── */
.cvq-theme-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-3);
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.12s;
    display: flex;
    align-items: center;
    gap: 6px;
    touch-action: manipulation;
    min-height: 32px;
}

.cvq-theme-btn:hover {
    background: var(--bg-3);
    color: var(--text-1);
    border-color: var(--border-lt);
}

/* ── Light theme ───────────────────────────────────────────────────────────── */
[data-theme="light"] {
    --bg-0:      #f0f2f7;
    --bg-1:      #f7f8fc;
    --bg-2:      #ffffff;
    --bg-3:      #eef0f6;
    --bg-4:      #e4e7f0;
    --border:    #d8dce8;
    --border-lt: #c4c9db;
    --text-1:    #111827;
    --text-2:    #374151;
    --text-3:    #6b7280;
    --text-4:    #9ca3af;
}

[data-theme="light"] body { background: #f0f2f7; }
[data-theme="light"] .cvq-sidebar  { background: #ffffff; }
[data-theme="light"] .cvq-topbar   { background: #ffffff; }
[data-theme="light"] .cvq-mobile-topbar { background: #ffffff; }
[data-theme="light"] .cvq-modal    { background: #ffffff; }
[data-theme="light"] .cvq-modal-header { background: #ffffff; }
[data-theme="light"] .cvq-modal-footer { background: #ffffff; }
[data-theme="light"] .cvq-sidebar-brand h2 { color: var(--brand); }

[data-theme="light"] table.cvq-table tbody tr:nth-child(odd)  td { background: #ffffff; }
[data-theme="light"] table.cvq-table tbody tr:nth-child(even) td { background: #f7f8fc; }
[data-theme="light"] .cvq-mobile-card:nth-child(odd)  { background: #ffffff; }
[data-theme="light"] .cvq-mobile-card:nth-child(even) { background: #f7f8fc; }

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-lt); }

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (max 900px)
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

    .cvq-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cvq-page {
        padding: 20px;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (max 768px)
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Sidebar se skriva, slide in/out */
    .cvq-sidebar {
        transform: translateX(-100%);
        top: 0;
        z-index: 150;
    }

    .cvq-sidebar.open {
        transform: translateX(0);
    }

    .cvq-sidebar-close { display: flex; }

    /* Mobile topbar se prikazuje */
    .cvq-mobile-topbar { display: flex; }

    /* Main sadrzaj pocinje ispod mobile topbara */
    .cvq-main {
        margin-left: 0;
        padding-top: var(--mobile-topbar-h);
    }

    /* Desktop topbar se skriva */
    .cvq-topbar { display: none; }

    /* Page padding manji */
    .cvq-page { padding: 16px; }

    /* Page header na mobilnom */
    .cvq-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 16px;
    }

    .cvq-page-header .cvq-btn-primary {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        font-size: 14px;
    }

    /* Stats 2 kolone na mobilnom */
    .cvq-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 16px;
    }

    .cvq-stat-value { font-size: 24px; }

    /* Sakriva desktop tabelu, prikazuje mobile kartice */
    .cvq-table-scroll { display: none; }
    .cvq-mobile-list  { display: block; }

    /* Modal odozdo, full width */
    .cvq-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .cvq-modal {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 92vh;
        width: 100%;
    }

    /* Forma 1 kolona na mobilnom */
    .cvq-form-grid {
        grid-template-columns: 1fr;
    }

    /* Search full width */
    .cvq-search {
        max-width: 100% !important;
        width: 100% !important;
    }

    .cvq-table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .cvq-table-toolbar > span {
        text-align: right;
        font-size: 11px;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (max 400px)
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {

    .cvq-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .cvq-stat {
        padding: 12px 14px;
    }

    .cvq-stat-value { font-size: 22px; }
    .cvq-stat-label { font-size: 9px; }

    .cvq-login-box {
        padding: 28px 20px;
    }
}