/* ==========================================================================
   Weblin – administrace
   Světlý dashboard: bílé karty, pilulkové menu, kobaltová akcentní karta.
   Písmo Archivo je stejné jako na webu (assets/fonts).
   ========================================================================== */

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    src: url('../fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #F3F4F7;
    --card: #FFFFFF;
    --line: #E6E8EE;
    --line-strong: #D5D9E2;
    --ink: #0F1530;
    --ink-2: #3D4462;
    --muted: #767D97;
    --cobalt: #2347FF;
    --cobalt-2: #6A86FF;
    --cobalt-soft: #EEF1FF;
    --success: #13995A;
    --success-soft: #E7F6EE;
    --warning: #C77700;
    --warning-soft: #FFF4E0;
    --danger: #E0343A;
    --danger-soft: #FDECEC;

    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(15, 21, 48, 0.04), 0 4px 16px rgba(15, 21, 48, 0.04);
    --shadow-hover: 0 2px 4px rgba(15, 21, 48, 0.05), 0 14px 32px rgba(15, 21, 48, 0.09);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Názvy z původní administrace – používají je inline styly na stránkách */
    --bg-admin: var(--bg);
    --bg-card-admin: var(--card);
    --border-admin: var(--line);
    --text-primary: var(--ink);
    --text-secondary: var(--ink-2);
    --text-muted: var(--muted);
    --primary: var(--cobalt);
    --primary-hover: #1733D6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 3px solid rgba(35, 71, 255, 0.45); outline-offset: 2px; border-radius: 8px; }

.muted { color: var(--muted); }
.hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }

/* ---------- Horní lišta ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(243, 244, 247, 0.82);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.topbar-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 16px 0 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: var(--shadow);
}
.brand-chip .mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ink);
    display: grid;
    place-items: center;
}
.brand-chip .mark img { width: 18px; }
.brand-chip strong { font-weight: 800; font-stretch: 118%; letter-spacing: -0.01em; }

.pillnav {
    justify-self: center;
    position: relative;
    display: flex;
    gap: 2px;
    padding: 5px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.pillnav::-webkit-scrollbar { display: none; }
.pillnav a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s var(--ease);
}
.pillnav a:hover { color: var(--ink); }
.pillnav a.is-hl { color: #fff; }
html:not(.js) .pillnav a.is-active { color: #fff; background: var(--ink); }
.pillnav-indicator {
    position: absolute;
    z-index: 0;
    top: 5px;
    left: 0;
    height: calc(100% - 10px);
    width: 0;
    border-radius: 999px;
    background: var(--ink);
    transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.2s;
    opacity: 0;
}
.pillnav.is-ready .pillnav-indicator { opacity: 1; }
.pillnav .badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--cobalt);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-grid;
    place-items: center;
}
.pillnav a.is-hl .badge,
html:not(.js) .pillnav a.is-active .badge { background: #fff; color: var(--ink); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--ink-2);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 0.25s var(--ease), color 0.2s, border-color 0.2s;
    position: relative;
}
.icon-btn:hover { transform: translateY(-2px); color: var(--cobalt); border-color: var(--line-strong); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%, -4px);
    padding: 5px 9px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.25s var(--ease);
}
.icon-btn[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); }

.user-chip { padding: 0 14px 0 6px; }
.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cobalt), var(--cobalt-2));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.user-chip span { display: grid; line-height: 1.2; }
.user-chip strong { font-size: 0.85rem; }
.user-chip small { font-size: 0.72rem; color: var(--muted); }

/* ---------- Obsah ---------- */

.adm-main {
    max-width: 1360px;
    margin: 0 auto;
    padding: 18px 24px 64px;
}
.page-head { margin: 10px 0 24px; }
.page-head h1 {
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.page-head p { margin-top: 4px; color: var(--muted); }

/* Karty */
.card-panel,
.admin-card,
.admin-table-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    min-width: 0;
}
.card-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 0;
    border: 0;
}
.lift { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.admin-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.admin-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.admin-card { display: flex; flex-direction: column; }
.admin-card-title { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.admin-card-value { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0; }
.admin-card-desc { font-size: 0.85rem; color: var(--muted); }

/* Tlačítka */
.btn-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s var(--ease), background-color 0.2s, box-shadow 0.25s, color 0.2s;
}
.btn-admin:active { transform: scale(0.97); }
.btn-admin-block { width: 100%; }
.btn-admin-primary, a.btn-admin-primary { background: var(--ink); color: #fff; }
.btn-admin-primary:hover { background: var(--cobalt); box-shadow: 0 8px 20px rgba(35, 71, 255, 0.28); }
.btn-admin-secondary, a.btn-admin-secondary { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-admin-secondary:hover { border-color: var(--ink); }
.btn-admin-danger { background: var(--danger-soft); color: var(--danger); }
.btn-admin-danger:hover { background: var(--danger); color: #fff; }
.btn-admin[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Formuláře */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.form-control {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    background: #F8F9FB;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.25s var(--ease), background-color 0.2s;
}
textarea.form-control { min-height: 110px; resize: vertical; line-height: 1.5; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23767D97' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-control:hover { border-color: var(--line-strong); }
.form-control:focus { outline: none; background: #fff; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(35, 71, 255, 0.12); }
input[type="file"].form-control { padding: 10px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--cobalt); }

/* Hlášky */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 14px;
    font-size: 0.92rem;
    border: 1px solid transparent;
    animation: alert-in 0.5s var(--ease) both;
}
.alert-success { background: var(--success-soft); color: #0B6B3E; border-color: #CDEBDB; }
.alert-danger { background: var(--danger-soft); color: #A61E23; border-color: #F7CFD0; }
.alert-warning { background: var(--warning-soft); color: #8A5300; border-color: #F6E1B8; }
.alert a { color: inherit; font-weight: 700; }
@keyframes alert-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }

/* Tabulky */
.admin-table-card { padding: 0; overflow: hidden; margin-bottom: 20px; }
.admin-table-card-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; }
.admin-table-card-header h3 { font-size: 1.05rem; font-weight: 700; }
.admin-table-responsive { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { text-align: left; padding: 10px 24px; font-size: 0.78rem; font-weight: 600; color: var(--muted); background: #F8F9FB; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin-table td { padding: 14px 24px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tbody tr { transition: background-color 0.2s; }
.admin-table tbody tr:hover { background: #FAFBFD; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table img { border-radius: 8px; }
.table-actions { white-space: nowrap; }
.table-actions a + a { margin-left: 14px; }
.action-link { color: var(--cobalt); font-weight: 600; text-decoration: none; font-size: 0.88rem; }
.action-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.action-link-danger { color: var(--danger); }

.badge-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 650; }
.badge-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-status-active { background: var(--success-soft); color: var(--success); }
.badge-status-pending { background: var(--warning-soft); color: var(--warning); }
.badge-status-inactive { background: #F0F1F5; color: var(--muted); }

/* Logy */
.log-list { display: grid; }
.log-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.log-item:last-child { border-bottom: 0; }
.log-ip { font-weight: 600; }
.log-time { color: var(--muted); }

/* ---------- Nástěnka ---------- */

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 24px 26px;
    color: #fff;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
        linear-gradient(135deg, #1938F0 0%, #2E54FF 45%, #6A86FF 100%);
    box-shadow: 0 18px 40px -16px rgba(35, 71, 255, 0.55);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    min-height: 260px;
}
.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 80% at 15% 120%, rgba(15, 21, 48, 0.25), transparent 60%);
    pointer-events: none;
}
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; z-index: 1; }
.glass-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.78rem;
    font-weight: 650;
    backdrop-filter: blur(6px);
}
.glass-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #9FFFC9; box-shadow: 0 0 0 4px rgba(159, 255, 201, 0.25); }
.hero-top small { font-size: 0.78rem; opacity: 0.8; }

.hero-body { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 24px; position: relative; z-index: 1; }
.hero-number { font-size: clamp(3rem, 6vw, 4.4rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.04em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.hero-number small { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; opacity: 0.85; margin-left: 6px; font-stretch: 100%; }
.hero-trend { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }

.bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 140px; }
.bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.bar i {
    display: block;
    height: var(--h);
    min-height: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.35);
    transform-origin: bottom;
    transition: transform 0.9s var(--ease), background-color 0.2s;
    transition-delay: calc(var(--i) * 60ms + 200ms);
}
.bar.is-now i { background: #fff; }
.bar:hover i { background: rgba(255, 255, 255, 0.7); }
.bar.is-now:hover i { background: #fff; }
.js .bar i { transform: scaleY(0); }
.js .is-in .bar i { transform: scaleY(1); }
.bar b {
    position: absolute;
    left: 50%;
    bottom: calc(var(--h) + 6px);
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s;
}
.bar:hover b, .bar.is-now b { opacity: 1; }
.bars-legend { display: flex; justify-content: space-between; font-size: 0.72rem; opacity: 0.75; margin-top: 6px; }

.progress-row { position: relative; z-index: 1; display: grid; gap: 8px; }
.progress {
    height: 8px;
    border-radius: 999px;
    background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 6px);
    overflow: hidden;
}
.progress span {
    display: block;
    height: 100%;
    width: var(--p);
    border-radius: 999px;
    background: #fff;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.2s var(--ease) 0.3s;
}
.is-in .progress span { transform: scaleX(1); }
.progress-meta { display: flex; justify-content: space-between; font-size: 0.78rem; opacity: 0.85; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; position: relative; z-index: 1; }
.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn-glass:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15, 21, 48, 0.25); }
.btn-glass svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.hero-actions small { font-size: 0.82rem; opacity: 0.85; }

/* Segmentový přepínač (Web / SEO / Účtuj) */
.segmented {
    position: relative;
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: #F1F2F6;
    margin-bottom: 14px;
}
.segmented button {
    position: relative;
    z-index: 1;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--muted);
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.25s;
}
.segmented button[aria-selected="true"] { color: var(--ink); }
.segmented-thumb {
    position: absolute;
    z-index: 0;
    top: 4px;
    left: 0;
    height: calc(100% - 8px);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 21, 48, 0.12);
    transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}
.tab-panel[hidden] { display: none; }
.tab-panel { animation: panel-in 0.4s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }

.checks { display: grid; gap: 4px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 0.9rem; }
.checks .ic {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 800;
    margin-top: 1px;
}
.checks .ok .ic { background: var(--success-soft); color: var(--success); }
.checks .todo .ic { background: var(--warning-soft); color: var(--warning); }
.checks small { display: block; color: var(--muted); font-size: 0.8rem; }
.checks a { color: var(--cobalt); font-weight: 600; text-decoration: none; }
.checks a:hover { text-decoration: underline; }
.card-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.card-head h3 { font-size: 1.05rem; font-weight: 700; }
.card-head p { font-size: 0.82rem; color: var(--muted); }
.count-pill { padding: 3px 10px; border-radius: 999px; background: var(--cobalt-soft); color: var(--cobalt); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }

/* Realizace na nástěnce */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 16px; }
.proj {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
}
.proj-img { aspect-ratio: 16 / 10; background: #EEF0F5; overflow: hidden; }
.proj-img img, .proj-img picture { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s var(--ease); }
.proj:hover .proj-img img { transform: scale(1.05); }
.proj-body { padding: 12px 14px 14px; display: grid; gap: 6px; flex: 1; }
.proj-body strong { font-size: 0.92rem; line-height: 1.25; }
.proj-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.proj-edit { font-size: 0.75rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: #fff; }
.proj-add {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    min-height: 180px;
    border: 1.5px dashed var(--line-strong);
    border-radius: 16px;
    color: var(--muted);
    font-weight: 650;
    font-size: 0.88rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.proj-add span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt-soft); color: var(--cobalt); font-size: 1.4rem; font-weight: 400; transition: transform 0.35s var(--ease); }
.proj-add:hover { border-color: var(--cobalt); color: var(--cobalt); background: #FAFBFF; }
.proj-add:hover span { transform: rotate(90deg); }

/* Poslední poptávky („historie“) */
.feed { display: grid; margin-top: 8px; }
.feed a {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 11px 8px;
    margin: 0 -8px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.feed a:hover { background: #F6F7FA; }
.feed .ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt-soft); color: var(--cobalt); font-weight: 750; font-size: 0.8rem; }
.feed strong { display: block; font-size: 0.9rem; line-height: 1.25; }
.feed small { color: var(--muted); font-size: 0.78rem; }
.feed time { font-size: 0.78rem; color: var(--muted); white-space: nowrap; text-align: right; }
.feed time b { display: block; color: var(--success); font-size: 0.78rem; }
.feed-empty { padding: 28px 0; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ---------- Ostatní stránky ---------- */

.menu-badge { display: none; }

.counter { float: right; font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.counter.is-over { color: var(--warning); }

.serp { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-family: Arial, sans-serif; color: #202124; }
.serp-site { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; line-height: 1.25; }
.serp-site small { color: #4d5156; }
.serp-favicon { width: 26px; height: 26px; border-radius: 50%; background: #ECEEF1 url('../weblin-mark-ink.png') center / 16px auto no-repeat; border: 1px solid #dadce0; }
.serp-title { margin-top: 9px; color: #1a0dab; font-size: 1.25rem; line-height: 1.3; }
.serp-desc { margin-top: 4px; color: #4d5156; font-size: 0.875rem; line-height: 1.55; }

.check-list, .steps-list { display: grid; gap: 11px; font-size: 0.9rem; color: var(--ink-2); }
.steps-list { list-style: decimal; padding-left: 1.2rem; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 0.7rem; font-weight: 800; display: grid; place-items: center; }
.check-list a, .steps-list a { color: var(--cobalt); }
.check-list strong, .steps-list strong { color: var(--ink); }
.steps-list code { background: #F1F2F6; padding: 1px 6px; border-radius: 6px; font-size: 0.85em; }

.inq-list { display: grid; }
.inq-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
.inq-list li:last-child { border-bottom: 0; }
.inq-list a { text-decoration: none; display: grid; gap: 2px; }
.inq-list a span { color: var(--muted); font-size: 0.85rem; }
.inq-list time { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.inq-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 16px; }
.inq-message { line-height: 1.65; background: #F8F9FB; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.inq-note { margin-top: 14px; font-size: 0.9rem; color: var(--ink-2); }
.inq-facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 0.9rem; }
.inq-facts dt { color: var(--muted); }
.inq-facts dd { overflow-wrap: anywhere; }
.inq-facts a { color: var(--cobalt); }

/* ---------- Přihlášení ---------- */

.auth-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(60% 50% at 80% 0%, rgba(35, 71, 255, 0.12), transparent 70%),
        radial-gradient(50% 40% at 0% 100%, rgba(106, 134, 255, 0.12), transparent 70%),
        var(--bg);
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 30px 60px -30px rgba(15, 21, 48, 0.25);
    padding: 36px 32px 28px;
    animation: auth-in 0.7s var(--ease) both;
}
@keyframes auth-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.auth-header { text-align: center; margin-bottom: 26px; }
.auth-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; font-stretch: 118%; }
.auth-logo .mark { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.auth-logo .mark img { width: 22px; }
.auth-header p { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Vstupní animace ---------- */

@media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(16px); }
    .js .reveal.is-in {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
        transition-delay: calc(var(--d, 0) * 70ms);
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
    .bar i, .progress span { transform: none !important; }
}

/* ---------- Mobil ---------- */

@media (max-width: 1100px) {
    .topbar-inner { grid-template-columns: auto auto; }
    .pillnav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
    .topbar-actions { justify-self: end; }
}
@media (max-width: 960px) {
    .dash-grid, .admin-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .topbar-inner { padding: 10px 14px; gap: 10px; }
    .adm-main { padding: 10px 14px 48px; }
    .user-chip, .brand-chip strong { display: none; }
    .brand-chip { padding: 0 6px; gap: 0; }
    .topbar-inner { grid-template-columns: auto 1fr; }
    .icon-btn { width: 42px; height: 42px; }
    .icon-btn[data-tip]::after { display: none; }
    .bars { height: 110px; }
    .proj-add { min-height: 140px; }
    .hero-body { grid-template-columns: 1fr; }
    .card-panel, .admin-card { padding: 18px; }
    .admin-table th, .admin-table td { padding: 12px 16px; }
    .inq-facts { grid-template-columns: 1fr; gap: 2px; }
    .inq-facts dd { margin-bottom: 8px; }
}
