/* shared.css — Bytšéf design systém | Dark theme | Lexend font
   Brand: modrá #2b7fce (šéf/důvěra) + amber #d97706 (energie). Landing = světlý (landing.css). */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');

/* === PROMĚNNÉ === */
:root {
    --c-primary:        #2b7fce;
    --c-primary-hover:  #1f6bb5;
    --c-primary-dim:    rgba(43,127,206,.16);
    --c-accent:         #d97706;
    --c-accent-hover:   #b45309;
    --c-accent-dim:     rgba(217,119,6,.16);
    --c-success:        #22c55e;
    --c-success-dim:    rgba(34,197,94,.15);
    --c-warning:        #f59e0b;
    --c-warning-dim:    rgba(245,158,11,.15);
    --c-danger:         #ef4444;
    --c-danger-dim:     rgba(239,68,68,.15);
    --c-neutral:        #94a3b8;
    --c-bg:             #0f172a;
    --c-surface:        #1e293b;
    --c-surface2:       #263548;
    --c-surface3:       #2d3f56;
    --c-border:         #334155;
    --c-border-light:   #1e293b;
    --c-text:           #f1f5f9;
    --c-text-muted:     #94a3b8;
    --c-text-dim:       #64748b;
    --radius:           8px;
    --radius-lg:        12px;
    --radius-xl:        16px;
    --shadow:           0 1px 4px rgba(0,0,0,.4);
    --shadow-lg:        0 4px 24px rgba(0,0,0,.5);
    --sidebar-w:        260px;
    --topbar-h:         60px;
    --transition:       .18s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Lexend', system-ui, sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    min-height: 100vh;
}
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-hover); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea, button { font-family: inherit; }

/* === LAYOUT === */
.app-layout { display: flex; min-height: 100vh; }

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-w);
    background: var(--c-surface);
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform var(--transition);
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--c-border);
    text-decoration: none;
}
.sidebar-logo-icon {
    /* Vědomě BEZ pozadí/dlaždice — vlastní vektorová značka stojí izolovaně, ne jako obecná app-ikona. */
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sidebar-logo-text { font-size: 15px; font-weight: 700; color: var(--c-text); line-height: 1.2; }
.sidebar-logo-text small { font-size: 11px; font-weight: 400; color: var(--c-text-muted); display: block; }

.sidebar-section { padding: 8px 0; }
.sidebar-section-label {
    font-size: 10px; font-weight: 600; color: var(--c-text-dim);
    text-transform: uppercase; letter-spacing: .08em;
    padding: 8px 20px 4px;
}

.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 20px;
    color: var(--c-text-muted);
    font-size: 14px; font-weight: 400;
    text-decoration: none;
    border-radius: 0;
    transition: background var(--transition), color var(--transition);
    position: relative;
}
.nav-item:hover { background: var(--c-surface2); color: var(--c-text); }
.nav-item.active {
    background: var(--c-primary-dim);
    color: var(--c-primary);
    font-weight: 600;
}
.nav-item.active::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--c-primary);
    border-radius: 0 2px 2px 0;
}
.nav-item .icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; opacity: .85; flex-shrink: 0; }
.nav-item .icon svg { display: block; }
.nav-item.active .icon { opacity: 1; }
.nav-item .badge {
    margin-left: auto;
    background: var(--c-danger);
    color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px; text-align: center;
}

.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid var(--c-border);
    padding: 16px 20px;
}
.sidebar-user { display: flex; align-items: center; gap: 10px; }
.sidebar-user-avatar {
    width: 34px; height: 34px;
    background: var(--c-primary-dim);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-primary); font-weight: 700; font-size: 14px;
    flex-shrink: 0;
}
.sidebar-user-name { font-size: 13px; font-weight: 600; color: var(--c-text); }
.sidebar-user-role { font-size: 11px; color: var(--c-text-muted); }
.sidebar-logout {
    display: block; margin-top: 8px;
    padding: 6px 12px;
    background: var(--c-surface2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    color: var(--c-text-muted);
    font-size: 13px; text-align: center;
    text-decoration: none;
    transition: all var(--transition);
}
.sidebar-logout:hover { background: var(--c-danger-dim); color: var(--c-danger); border-color: var(--c-danger); }

/* --- Main area --- */
.main-area {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Topbar --- */
.topbar {
    height: var(--topbar-h);
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    display: flex; align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky; top: 0; z-index: 50;
}
.topbar-hamburger {
    display: none;
    background: none; border: none; color: var(--c-text-muted);
    font-size: 20px; padding: 4px; cursor: pointer;
}
.topbar-title { font-size: 16px; font-weight: 600; color: var(--c-text); flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* --- Content --- */
.content { padding: 24px; flex: 1; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 22px; font-weight: 700; color: var(--c-text); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* === CARDS === */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--c-border);
}
.card-title { font-size: 15px; font-weight: 600; color: var(--c-text); }
.card-actions { display: flex; gap: 8px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.stat-card:hover { background: var(--c-surface2); border-color: var(--c-primary); transform: translateY(-1px); }
.stat-card-label { font-size: 12px; font-weight: 500; color: var(--c-text-muted); margin-bottom: 6px; }
.stat-card-value { font-size: 28px; font-weight: 700; line-height: 1; }
.stat-card.red   .stat-card-value { color: var(--c-danger); }
.stat-card.orange .stat-card-value { color: var(--c-warning); }
.stat-card.yellow .stat-card-value { color: #eab308; }
.stat-card.blue  .stat-card-value { color: var(--c-primary); }
.stat-card.green .stat-card-value { color: var(--c-success); }
.stat-card-sub { font-size: 11px; color: var(--c-text-dim); margin-top: 4px; }

/* === TLAČÍTKA === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius);
    font-size: 14px; font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    min-height: 38px;
}
.btn-primary   { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-hover); color: #fff; }
.btn-success   { background: var(--c-success); color: #fff; }
.btn-success:hover { opacity: .88; color: #fff; }
.btn-danger    { background: var(--c-danger); color: #fff; }
.btn-danger:hover  { opacity: .88; color: #fff; }
.btn-warning   { background: var(--c-warning); color: #0f172a; }
.btn-warning:hover { opacity: .88; color: #0f172a; }
.btn-secondary {
    background: var(--c-surface2);
    color: var(--c-text);
    border-color: var(--c-border);
}
.btn-secondary:hover { background: var(--c-surface3); color: var(--c-text); }
.btn-ghost {
    background: transparent;
    color: var(--c-text-muted);
    border-color: transparent;
}
.btn-ghost:hover { background: var(--c-surface2); color: var(--c-text); }
.btn-sm { padding: 5px 10px; font-size: 12px; min-height: 28px; }
.btn-lg { padding: 12px 24px; font-size: 16px; min-height: 48px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* === FORMULÁŘE === */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; gap: 16px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--c-text-muted); margin-bottom: 6px; }
label .req { color: var(--c-danger); }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="tel"],
input[type="url"], select, textarea {
    width: 100%;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    color: var(--c-text);
    font-family: inherit;
    font-size: 14px;
    padding: 9px 12px;
    outline: none;
    transition: border-color var(--transition);
    min-height: 40px;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px var(--c-primary-dim);
}
input::placeholder, textarea::placeholder { color: var(--c-text-dim); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 11px; color: var(--c-text-dim); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--c-danger); margin-top: 4px; }
.form-section { margin-bottom: 28px; }
.form-section-title { font-size: 14px; font-weight: 600; color: var(--c-text-muted); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--c-border); }
.checkbox-group { display: flex; align-items: center; gap: 8px; }
.checkbox-group input[type="checkbox"] { width: auto; min-height: auto; }

/* === TABULKY === */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
    text-align: left; padding: 10px 12px;
    font-size: 11px; font-weight: 600;
    color: var(--c-text-muted);
    text-transform: uppercase; letter-spacing: .06em;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-surface);
    white-space: nowrap;
}
tbody td { padding: 11px 12px; border-bottom: 1px solid var(--c-border-light); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--c-surface2); }
.table-actions { display: flex; gap: 4px; }

/* === BADGES / STATUSY === */
.badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px; font-weight: 600;
    white-space: nowrap;
}
.badge-success { background: var(--c-success-dim); color: var(--c-success); }
.badge-danger  { background: var(--c-danger-dim);  color: var(--c-danger);  }
.badge-warning { background: var(--c-warning-dim); color: var(--c-warning); }
.badge-primary { background: var(--c-primary-dim); color: var(--c-primary); }
.badge-neutral { background: rgba(100,116,139,.15); color: var(--c-neutral); }

/* === ALERTS === */
.alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success { background: var(--c-success-dim); color: var(--c-success); border: 1px solid rgba(34,197,94,.3); }
.alert-danger  { background: var(--c-danger-dim);  color: var(--c-danger);  border: 1px solid rgba(239,68,68,.3); }
.alert-warning { background: var(--c-warning-dim); color: var(--c-warning); border: 1px solid rgba(245,158,11,.3); }
.alert-info    { background: var(--c-primary-dim); color: var(--c-primary); border: 1px solid rgba(59,130,246,.3); }

/* === MODAL === */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 200;
    align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    width: 100%; max-width: 540px;
    max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--c-border);
}
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--c-text-muted); font-size: 20px; cursor: pointer; padding: 2px; }
.modal-close:hover { color: var(--c-text); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--c-border); display: flex; justify-content: flex-end; gap: 8px; }

/* === TABS === */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--c-border); margin-bottom: 24px; overflow-x: auto; }
.tab-btn {
    padding: 10px 18px;
    font-size: 14px; font-weight: 500;
    color: var(--c-text-muted);
    background: none; border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
}
.tab-btn:hover { color: var(--c-text); }
.tab-btn.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* === EMPTY STATE === */
.empty-state { text-align: center; padding: 48px 24px; color: var(--c-text-muted); }
.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: .4; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--c-text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* === PROGRESS BAR === */
.progress-wrap { background: var(--c-border); border-radius: 4px; height: 8px; overflow: hidden; }
.progress-bar  { height: 100%; border-radius: 4px; transition: width .4s ease; }
.progress-bar.green  { background: var(--c-success); }
.progress-bar.red    { background: var(--c-danger); }
.progress-bar.blue   { background: var(--c-primary); }
.progress-bar.orange { background: var(--c-warning); }

/* === SEARCH & FILTERS === */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.search-input { position: relative; }
.search-input input { padding-left: 36px; }
.search-input::before { content: '🔍'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 14px; pointer-events: none; }

/* === GRID HELPERS === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* === TEXT HELPERS === */
.text-muted { color: var(--c-text-muted); }
.text-dim   { color: var(--c-text-dim); }
.text-success { color: var(--c-success); }
.text-danger  { color: var(--c-danger); }
.text-warning { color: var(--c-warning); }
.text-primary { color: var(--c-primary); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }

/* === SPINNER === */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--c-border); border-top-color: var(--c-primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* === NOTICE BOX === */
.notice { padding: 12px 16px; border-radius: var(--radius); background: var(--c-surface2); border-left: 3px solid var(--c-primary); font-size: 13px; color: var(--c-text-muted); margin-bottom: 16px; }

/* === LANDING PAGE — přepis pro index.php === */
.landing { background: var(--c-bg); }
.lp-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 48px;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-surface);
    position: sticky; top: 0; z-index: 50;
}
.lp-nav-logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--c-text); text-decoration: none; }
.lp-nav-logo-icon { display: flex; align-items: center; justify-content: center; }
.lp-nav-links { display: flex; gap: 24px; align-items: center; }
.lp-nav-links a { color: var(--c-text-muted); font-size: 14px; font-weight: 500; transition: color var(--transition); }
.lp-nav-links a:hover { color: var(--c-text); }
.lp-section { padding: 80px 48px; max-width: 1100px; margin: 0 auto; }
.lp-hero { text-align: center; }
.lp-hero-badge { display: inline-block; background: var(--c-primary-dim); color: var(--c-primary); font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 20px; margin-bottom: 20px; }
.lp-hero h1 { font-size: 52px; font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
.lp-hero h1 span { color: var(--c-primary); }
.lp-hero p { font-size: 20px; color: var(--c-text-muted); max-width: 600px; margin: 0 auto 36px; line-height: 1.6; }
.lp-cta-group { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.lp-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.lp-feature-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-xl); padding: 28px; transition: border-color var(--transition); }
.lp-feature-card:hover { border-color: var(--c-primary); }
.lp-feature-icon { font-size: 32px; margin-bottom: 16px; }
.lp-feature-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.lp-feature-text  { font-size: 14px; color: var(--c-text-muted); line-height: 1.6; }
.lp-section-title { text-align: center; font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.lp-section-sub   { text-align: center; font-size: 16px; color: var(--c-text-muted); margin-bottom: 48px; }
.lp-pricing-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 700px; margin: 0 auto; }
.lp-price-card    { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-xl); padding: 32px; }
.lp-price-card.featured { border-color: var(--c-primary); background: var(--c-surface2); }
.lp-price-name    { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.lp-price-amount  { font-size: 36px; font-weight: 700; color: var(--c-primary); margin: 8px 0 4px; }
.lp-price-period  { font-size: 13px; color: var(--c-text-muted); margin-bottom: 20px; }
.lp-price-features { list-style: none; margin-bottom: 24px; }
.lp-price-features li { padding: 6px 0; font-size: 14px; color: var(--c-text-muted); }
.lp-price-features li::before { content: '✓ '; color: var(--c-success); }
.lp-footer { background: var(--c-surface); border-top: 1px solid var(--c-border); padding: 32px 48px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.lp-footer-copy { font-size: 13px; color: var(--c-text-muted); }
.lp-footer-links { display: flex; gap: 20px; }
.lp-footer-links a { font-size: 13px; color: var(--c-text-muted); }
.lp-footer-links a:hover { color: var(--c-text); }

/* === KAIA CHAT === */
#kaia-fab { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 28px rgba(217,119,6,.4); transition: transform .18s; }
#kaia-fab:hover { transform: translateY(-3px) scale(1.05); }
#kaia-panel { position: fixed; right: 22px; bottom: 88px; z-index: 901; width: min(400px, calc(100vw - 32px)); height: min(540px, calc(100vh - 130px));
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; box-shadow: 0 24px 64px rgba(0,0,0,.55);
    display: none; flex-direction: column; overflow: hidden; }
#kaia-panel.open { display: flex; }
.kaia-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--c-border); }
.kaia-badge { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kaia-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.kaia-q, .kaia-a { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.kaia-q { align-self: flex-end; background: var(--c-primary); color: #fff; border-bottom-right-radius: 4px; }
.kaia-a { align-self: flex-start; background: var(--c-surface2); color: var(--c-text); border-bottom-left-radius: 4px; }
.kaia-a ul { padding-left: 18px; margin: 6px 0; display: block; }
.kaia-a li { padding: 1px 0; font-size: 13.5px; }
.kaia-a p { margin: 0 0 6px; }
.kaia-a p:last-child { margin-bottom: 0; }
.kaia-typing { align-self: flex-start; color: var(--c-text-muted); font-size: 12px; padding: 4px 8px; }
.kaia-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--c-border); }
.kaia-input input { flex: 1; min-height: 38px; }
.kaia-foot { padding: 8px 14px 12px; font-size: 10.5px; color: var(--c-text-dim); display: flex; align-items: center; gap: 5px; }
.kaia-foot a { color: var(--c-text-muted); }

/* === COOKIE LIŠTA (GA Consent Mode v2) === */
.cookie-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(160%); visibility: hidden; z-index: 9999; width: min(560px, calc(100vw - 32px)); background: rgba(30,41,59,.97); border: 1px solid var(--c-border); border-radius: var(--radius-lg); backdrop-filter: blur(16px); padding: 18px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; transition: transform .35s cubic-bezier(.16,1,.3,1), visibility .35s; box-shadow: 0 16px 44px rgba(0,0,0,.55); }
.cookie-banner.show { transform: translateX(-50%) translateY(0); visibility: visible; }
.cookie-text { font-size: 13px; color: var(--c-text-muted); line-height: 1.55; flex: 1; min-width: 180px; }
.cookie-text a { color: var(--c-primary); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* === VEŘEJNÝ ČLÁNEK / PRÁVNÍ STRÁNKY === */
.lp-nav-links a.active { color: var(--c-text); }
.article-col { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.article-col h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: 8px; letter-spacing: -.02em; }
.article-col .lead { color: var(--c-text-muted); font-size: 17px; margin-bottom: 32px; line-height: 1.6; }
.article-col h2 { font-size: 21px; font-weight: 700; margin: 34px 0 12px; }
.article-col h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; color: var(--c-text); }
.article-col p, .article-col li { color: var(--c-text-muted); line-height: 1.75; margin-bottom: 12px; }
.article-col ul, .article-col ol { padding-left: 22px; margin-bottom: 12px; }
.article-col strong { color: var(--c-text); }
.article-col a { color: var(--c-primary); }
.article-col .legal-note { background: var(--c-surface); border: 1px solid var(--c-border); border-left: 3px solid var(--c-warning); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; font-size: 14px; color: var(--c-text-muted); }
.article-col .updated { font-size: 13px; color: var(--c-text-dim); margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--c-border); }

/* === AUTH STRÁNKY (login, register) === */
.auth-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; background: var(--c-bg); }
.landing .auth-page { background: transparent; }
.auth-box { width: 100%; max-width: 420px; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo-icon { display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.auth-logo-text { font-size: 22px; font-weight: 700; }
.auth-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-lg); }
.auth-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--c-text-muted); margin-bottom: 24px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--c-text-muted); }
.auth-footer a { color: var(--c-primary); }

/* === PORTÁL VLASTNÍKA === */
.portal-page { max-width: 760px; margin: 0 auto; padding: 24px; }
.portal-header { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-xl); padding: 28px; margin-bottom: 24px; }
.portal-header-top { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.portal-logo { width: 48px; height: 48px; background: var(--c-primary-dim); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--c-primary); font-size: 24px; }

/* === WIZARD === */
.wizard-steps { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
.wizard-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--c-text-dim); flex: 1; }
.wizard-step-num { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--c-border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--c-surface); flex-shrink: 0; }
.wizard-step.active .wizard-step-num { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.wizard-step.done .wizard-step-num { background: var(--c-success); border-color: var(--c-success); color: #fff; }
.wizard-step.active { color: var(--c-text); }
.wizard-step.done   { color: var(--c-success); }
.wizard-connector { flex: 0 0 24px; height: 1px; background: var(--c-border); margin: 0 4px; }

/* === QUICK ACTIONS (dashboard mobile shortcuts) === */
.quick-actions { display: none; }
@media (max-width: 768px) { .quick-actions { display: flex; } }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .main-area { margin-left: 0; }
    .topbar-hamburger { display: block; }
    .content { padding: 16px; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .lp-hero h1 { font-size: 32px; }
    .lp-section { padding: 48px 20px; }
    .lp-nav { padding: 14px 20px; }
    .lp-pricing-grid { grid-template-columns: 1fr; }
    .lp-footer { flex-direction: column; text-align: center; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .modal { margin: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 95vh; }
    .modal-overlay { align-items: flex-end; padding: 0; }
}
@media (max-width: 480px) {
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .page-header { flex-direction: column; align-items: flex-start; }
}

/* Provozní přehled superadmina — mini statistiky */
.stat-mini { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 10px; padding: 12px 14px; text-align: center; }
.stat-mini-val { font-size: 22px; font-weight: 700; line-height: 1.1; }
.stat-mini-lbl { font-size: 11px; color: var(--c-text-muted); margin-top: 3px; }

/* === BYTŠÉF — akcent (amber) + rental prvky === */
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-hover); color: #fff; }
.badge-accent { background: var(--c-accent-dim); color: var(--c-accent); }
.text-accent { color: var(--c-accent); }
.stat-card.amber .stat-card-value { color: var(--c-accent); }
.progress-bar.amber { background: var(--c-accent); }

/* Kaia karta na dashboardu / task karty */
.kaia-card { background: linear-gradient(135deg, rgba(43,127,206,.12), rgba(217,119,6,.10)); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.kaia-card .kaia-ava { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.task-item { background: var(--c-surface); border: 1px solid var(--c-border); border-left: 4px solid var(--c-accent); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 12px; }
.task-item-head { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.task-item-title { font-size: 15px; font-weight: 600; }
.task-item-summary { font-size: 13px; color: var(--c-text-muted); margin: 6px 0 12px; line-height: 1.5; }
.task-preview { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px 16px; font-size: 13px; color: var(--c-text-muted); line-height: 1.6; max-height: 320px; overflow-y: auto; margin: 10px 0; }
.task-preview h2, .task-preview h3 { color: var(--c-text); margin: 10px 0 6px; }
.task-preview p { margin: 0 0 8px; }

/* Lease status pill + timeline */
.lease-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.lease-status.active { background: var(--c-success-dim); color: var(--c-success); }
.lease-status.draft { background: rgba(100,116,139,.15); color: var(--c-neutral); }
.lease-status.ended { background: var(--c-danger-dim); color: var(--c-danger); }
.lease-status.ending { background: var(--c-warning-dim); color: var(--c-warning); }

/* Detail definition list */
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 14px; }
.dl dt { color: var(--c-text-muted); }
.dl dd { color: var(--c-text); font-weight: 500; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; gap: 2px 0; } .dl dd { margin-bottom: 8px; } }

/* QR box */
.qr-box { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; background: #fff; padding: 14px; border-radius: var(--radius-lg); }
.qr-box canvas, .qr-box img { display: block; }

/* Onboarding hero / empty CTA */
.hero-empty { text-align: center; padding: 40px 24px; background: linear-gradient(135deg, rgba(43,127,206,.10), rgba(217,119,6,.08)); border: 1px solid var(--c-border); border-radius: var(--radius-xl); }
.hero-empty .hero-ic { margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.hero-empty h2 { font-size: 20px; margin-bottom: 8px; }
.hero-empty p { color: var(--c-text-muted); max-width: 460px; margin: 0 auto 20px; }
