/* ============================================================
   obecne.css — Fajn Účet
   Obecné styly načítané na každé stránce projektu.
   Obsahuje: proměnné, reset, body, header, footer, sidebar, layout.
   ============================================================ */

/* =============================================================
   DESIGN TOKENS
   ============================================================= */
:root {
    --background:             210 20% 98%;
    --foreground:             222 47% 11%;
    --card:                   0 0% 100%;
    --primary:                33 100% 50%;   /* oranžová Fajn Účet */
    --primary-foreground:     0 0% 100%;
    --secondary:              210 40% 96%;
    --secondary-foreground:   222 47% 11%;
    --muted:                  210 40% 96%;
    --muted-foreground:       215 20% 35%;
    --accent:                 212 100% 50%;  /* modrá */
    --accent-foreground:      0 0% 100%;
    --destructive:            0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border:                 214 32% 91%;
    --success:                142 76% 36%;
    --warning:                38 92% 50%;
    --radius:                 0.5rem;
}

/* =============================================================
   RESET & BASE
   ============================================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: hsl(var(--border));
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

/* =============================================================
   BODY & POZADÍ
   ============================================================= */
body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-image: url('https://kodovani-ai.fajntest.cz/fajnucet_cz/img/page-bg-mobile.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: hsl(var(--foreground));
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
    body {
        background-image: url('https://kodovani-ai.fajntest.cz/fajnucet_cz/img/page-bg-desktop.jpg');
    }
}

/* =============================================================
   HEADER
   ============================================================= */
header {
    position: relative;
}

header .main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* puvodne: padding: 0.5rem 1rem; */
    max-width: 1390px;
    margin: 0 auto;
    padding: 12px 18px;
}

header .logo,
header .mobile-logo {
    position: relative;
    z-index: 2;
}

header .logo img,
header .mobile-logo img {
    /* puvodne: max-width: 175px; */
    height: 45px;
    width: auto;
    display: block;
}
@media (min-width: 1100px) {
    header .logo img,
    header .mobile-logo img { height: 57px; }
}
@media (min-width: 1281px) {
    header .logo img,
    header .mobile-logo img { height: 76px; }
}

/* Logo area — logo odkaz + claim vedle sebe */
.fu-logo-area {
    display: flex;
    align-items: center;
    gap: 18px;
}
@media (min-width: 768px) {
    .fu-logo-area { gap: 30px; }
}

/* Claim vedle loga */
.fu-header-claim {
    font-family: 'Rubik', sans-serif;
    font-size: 12px;
    line-height: 14px;
    font-weight: 500;
    color: #ffffff;
    max-width: 600px;
    pointer-events: none;
    margin: 0;
}
@media (min-width: 1281px) {
    .fu-header-claim {
        font-size: 19px;
        line-height: 21px;
        font-weight: 600;
    }
}

/* Hamburger tlačítko (mobil) */
header .menu-hamburger {
    padding: 0.5rem;
}
@media (min-width: 992px) {
    header .menu-hamburger {
        display: none;
    }
}

/* Nav panel — na mobilu fixed přes celou obrazovku, na desktopu inline */
header .menu {
    display: none;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    /* puvodne: width: calc(100% - 2rem); - nechavalo pruh vpravo, kryjeme celou sirku */
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    padding: 0.5rem 1rem;
    background: #0074ff;
}
@media (min-width: 992px) {
    header .menu {
        display: block !important;
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
    }
}

/* Hlavička mobilního menu (logo + zavřít) */
header .menu .mobile-menu-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
@media (min-width: 992px) {
    header .menu .mobile-logo {
        display: none;
    }
}

header .menu .menu-close {
    padding: 1.5rem 0.5rem 0.5rem;
}
@media (min-width: 992px) {
    header .menu .menu-close {
        display: none;
    }
}

header .menu .menu-close img {
    max-width: 20px;
}

/* Seznam odkazů */
header ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
    padding: 1.5rem;
    list-style: none;
    gap: 2rem;
}
@media (min-width: 992px) {
    header ul {
        flex-direction: row;
        justify-content: flex-end;
        min-height: auto;
        margin: 0;
        padding: 0;
        gap: 1rem;
    }
}
@media (min-width: 1200px) {
    header ul {
        gap: 2.5rem;
    }
}

header ul li a {
    display: block;
    padding: 0.5rem 1rem;
    transition: ease-in-out 0.3s;
    border: 1px solid transparent;
    border-radius: 38px;
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    line-height: 1.875rem;
}
@media (min-width: 768px) {
    header ul li a {
        font-size: 1.125rem;
        line-height: 1.5rem;
    }
}

header ul li.active a,
header ul li a:hover,
header ul li a:focus {
    border-color: #fff;
    text-decoration: none;
}

/* Maskot (obrázek vedle nadpisu) */
header .maskot-aside {
    position: absolute;
    right: -22px;
    bottom: 0;
    max-width: 110px;
}
@media (min-width: 768px) {
    header .maskot-aside {
        display: none;
    }
}

/* Nadpis v headeru (hero sekce) */
header h1 {
    margin-top: 0;
    color: #fff;
    letter-spacing: -1px;
    text-align: center;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.08);
    font-size: 2.375rem;
    line-height: 2.75rem;
}
@media (min-width: 768px) {
    header h1 {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -2rem;
        margin-left: -4rem;
        gap: 0;
    }
}
@media (min-width: 992px) {
    header h1 {
        margin: -4rem 0 -2rem -4rem;
        gap: 1rem;
        font-size: 3rem;
        line-height: 3rem;
    }
}

header h1 p    { margin-bottom: 0; }
header h1 .divider     { display: block; }
header h1 .second-line { display: block; }

@media (min-width: 768px) {
    header h1 .second-line { margin-left: 4rem; }
    header h1 .comma       { display: none; }
}

header h1 img {
    display: none;
    max-width: 300px;
}
@media (min-width: 768px) {
    header h1 img { display: block; }
}

/* =============================================================
   FOOTER
   ============================================================= */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 5.625rem 1rem;
    color: #fff;
}
footer a { color: #fff; }

footer .address {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer {
    margin: 0 auto;
    padding: 30px 20px;
    box-sizing: border-box;
}
@media (min-width: 992px) {
    .footer {
        padding: 30px 16px;
        width: 100%;
        max-width: 1140px;
        margin: 0 auto;
    }
}

.footer__holder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}
@media (min-width: 992px) {
    .footer__holder { align-items: flex-start; }
}

.footer__logo img { max-width: 175px; }

.footer__panel {
    border-bottom: 1px dashed white;
    padding-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-weight: 100;
    font-size: 16px;
    width: 100%;
}
@media (min-width: 992px) {
    .footer__panel { flex-direction: row; }
}

.footer__panel div {
    flex: 1 0 auto;
    text-align: center;
}
@media (min-width: 992px) {
    .footer__panel div { text-align: left; }
}

.footer__panel div p {
    font-weight: 600;
    margin-bottom: 16px;
}

.footer__panel address {
    font-style: normal;
    font-weight: 100;
}
.footer__panel address span          { display: block; }
.footer__panel address span:last-child { margin-top: 24px; }

.footer__panel ul {
    margin: 0;
    padding: 0;
}
.footer__panel ul li              { list-style-type: none; margin-bottom: 4px; }
.footer__panel ul li a            { text-decoration: none; }
.footer__panel ul li a:hover      { text-decoration: underline; }

.footer__panel .social-item-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 14px;
}
@media (min-width: 992px) {
    .footer__panel .social-item-wrapper { justify-content: flex-start; }
}

.footer__panel .social-item {
    max-width: 30px;
    transition: ease-in-out 0.2s;
}
.footer__panel .social-item:hover { transform: scale(0.8); }

.footer__bottom {
    font-size: 14px;
    text-align: center;
    width: 100%;
}

/* =============================================================
   CONTAINER
   ============================================================= */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* =============================================================
   CARD
   ============================================================= */
.card {
    background: hsl(var(--card));
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.card-header { padding: 1.25rem 1.25rem 0.75rem; }

.card-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.125rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--foreground));
}
.card-title .title-icon { color: hsl(var(--primary)); }

.card-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.125rem;
}

.card-padding { padding: 0 1.25rem 1.25rem; }

.view-all-btn {
    padding: 0.375rem 0.75rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    font-family: inherit;
    color: hsl(var(--foreground));
    transition: background 0.15s;
}
.view-all-btn:hover { background: hsl(var(--secondary)); }

/* =============================================================
   HLAVNÍ LAYOUT (2 sloupce: sidebar + obsah)
   ============================================================= */
.main-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}
@media (min-width: 1024px) {
    .main-layout { flex-direction: row; }
}

.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* =============================================================
   SIDEBAR
   ============================================================= */
.sidebar {
    width: 100%;
    flex-shrink: 0;
}
@media (min-width: 1024px) {
    .sidebar { width: 18rem; }
}

.sidebar-nav {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: all 0.15s;
    font-family: inherit;
}
.sidebar-item:hover { background: hsl(var(--secondary)); }

.sidebar-item .item-icon {
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
}

.sidebar-item.active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.sidebar-item.active .item-icon { color: hsl(var(--primary-foreground)); }

.sidebar-content {
    flex: 1;
    min-width: 0;
}
.sidebar-content p:first-child { font-weight: 500; font-size: 0.875rem; }
.sidebar-content p:last-child {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-item.active .sidebar-content p            { color: hsl(var(--primary-foreground)); }
.sidebar-item.active .sidebar-content p:last-child { color: hsl(0 0% 100% / 0.8); }

.sidebar-badge {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sidebar-item.active .sidebar-badge {
    background: hsl(var(--primary-foreground));
    color: hsl(var(--primary));
}

.sidebar-item.logout-btn {
    margin-top: 0.5rem;
    color: hsl(var(--muted-foreground));
}
.sidebar-item.logout-btn:hover { color: hsl(var(--destructive)); }

/* Rozcestnik na portaly skupiny - oranzove UI Fajn brigady */
.sidebar-portals {
    --fb-orange: #FF8C00;
    --fb-orange-dark: #ea580c;
    margin-top: 0.75rem;
    padding: 0.75rem 0.5rem 0.5rem;
    border-radius: 0.625rem;
    border: 1px solid rgba(255, 140, 0, 0.35);
    background: rgba(255, 140, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-portals__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.5rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fb-orange-dark);
}
.sidebar-portals__title-icon {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
    color: var(--fb-orange);
}

.sidebar-portals__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    border-left: 3px solid transparent;
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: all 0.15s;
}
.sidebar-portals__link:hover {
    background: rgba(255, 140, 0, 0.14);
    border-left-color: var(--fb-orange);
    color: var(--fb-orange-dark);
}
.sidebar-portals__link-icon {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
    color: var(--fb-orange);
    opacity: 0;
    transition: opacity 0.15s;
}
.sidebar-portals__link:hover .sidebar-portals__link-icon {
    opacity: 1;
}

/* Mobilní sidebar hlavička s křížkem */
.sidebar-mobile-header { display: none; }
.sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: hsl(var(--foreground));
    border-radius: 0.375rem;
    line-height: 0;
}
.sidebar-close:hover { background: hsl(var(--secondary)); }

/* Mobilní sidebar */
@media (max-width: 1023px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 40;
        background: hsl(var(--background));
        padding: 1rem;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    .sidebar.active { transform: translateX(0); }
    .sidebar-mobile-header {
        display: flex;
        justify-content: flex-end;
        padding-bottom: 0.5rem;
    }
    .mobile-menu-btn { display: block; }
}

/* Mobilní overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 30;
}
.mobile-overlay.active { display: block; }

/* =============================================================
   UVÍTACÍ KARTA (sdílená na všech podstránkách)
   ============================================================= */
.uvitaci-karta {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
}
@media (min-width: 768px) {
    .uvitaci-karta { padding: 1.5rem 2rem; }
}

.uvitaci-karta__nadpis {
    font-size: 1.5rem;
    font-weight: bold;
    color: hsl(var(--foreground));
}
@media (min-width: 768px) {
    .uvitaci-karta__nadpis { font-size: 1.875rem; }
}

.uvitaci-karta__popis {
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
    font-size: 0.9375rem;
}

/* ===== Souhrnný progress bar ===== */
.uvitaci-karta__progress { margin-top: 1.5rem; }

.uvitaci-karta__progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.uvitaci-karta__progress-aktualni {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.uvitaci-karta__progress-cil {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

.uvitaci-karta__progress-track {
    height: 0.625rem;
    border-radius: 9999px;
    background: hsl(var(--muted));
    overflow: hidden;
}

.uvitaci-karta__progress-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, hsl(var(--success)), hsl(var(--primary)));
    transition: width 0.6s ease;
}

/* nekompletni profil (pod 100 %) - oranzovy bar */
.uvitaci-karta__progress-fill--nekompletni {
    background: hsl(var(--warning));
}

/* ===== Checklist dokončení profilu (kompaktní dlaždice) ===== */
.uvitaci-karta__checklist {
    margin-top: 1rem;
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Jedna dlaždice — na PC 4 v řadě, na tabletu 2, na mobilu pod sebe */
.uvitaci-karta__ukol {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    margin-bottom: 2px;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
}
@media (min-width: 640px) {
    .uvitaci-karta__ukol { flex: 1 1 calc(50% - 0.25rem); }
}
@media (min-width: 1024px) {
    .uvitaci-karta__ukol { flex: 1 1 0; min-width: 0; }
}

/* Ikona úkolu s malou stavovou značkou v rohu */
.uvitaci-karta__ukol-ikona-wrap {
    position: relative;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
}
.uvitaci-karta__ukol-ikona {
    width: 1.75rem;
    height: 1.75rem;
    color: hsl(var(--muted-foreground));
}

.uvitaci-karta__ukol-stav {
    position: absolute;
    right: -0.25rem;
    bottom: -0.25rem;
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 9999px;
    border: 2px solid hsl(var(--background));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.uvitaci-karta__ukol-stav .lucide { width: 0.5rem; height: 0.5rem; stroke-width: 4; }

.uvitaci-karta__ukol-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.uvitaci-karta__ukol-nazev {
    font-weight: 600;
    font-size: 0.8125rem;
    color: hsl(var(--foreground));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.uvitaci-karta__ukol-popis {
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground));
}

/* Splněné: text "Hotovo" je v popisku, žádné tlačítko navíc */
.uvitaci-karta__ukol-hotovo { display: none; }

/* Akce u nesplněných — jen šipka jako kompaktní tlačítko */
.uvitaci-karta__ukol-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transition: opacity 0.15s;
}
.uvitaci-karta__ukol-btn:hover { opacity: 0.9; }
/* Text akce v tlačítku skryjeme, necháme jen šipku */
.uvitaci-karta__ukol-btn-text { display: none; }
.uvitaci-karta__ukol-btn .lucide { width: 0.875rem; height: 0.875rem; }

/* --- Stavové varianty --- */
.uvitaci-karta__ukol--hotovo {
    border-color: hsl(var(--success) / 0.3);
    background: hsl(var(--success) / 0.06);
}
.uvitaci-karta__ukol--hotovo .uvitaci-karta__ukol-stav { background: hsl(var(--success)); }

.uvitaci-karta__ukol--castecne {
    border-color: hsl(38 92% 50% / 0.4);
    background: hsl(38 92% 50% / 0.07);
}
.uvitaci-karta__ukol--castecne .uvitaci-karta__ukol-stav { background: hsl(38 92% 50%); }

.uvitaci-karta__ukol--chybi {
    border-color: hsl(var(--border));
}
.uvitaci-karta__ukol--chybi .uvitaci-karta__ukol-stav { background: hsl(var(--muted-foreground)); }

/* Hodnocení + odznáčky */
.uvitaci-karta__hodnoceni {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid hsl(var(--border));
}

.uvitaci-karta__hodnoceni-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 768px) {
    .uvitaci-karta__hodnoceni-flex { flex-direction: row; align-items: center; gap: 2rem; }
}

.uvitaci-karta__hvezdicky {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.uvitaci-karta__hvezdicky-ikona {
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(var(--primary) / 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
}

.uvitaci-karta__hvezdicky-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.uvitaci-karta__hvezdicky-radek {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.125rem;
}

.uvitaci-karta__hvezda--plna  { color: hsl(var(--primary)); fill: hsl(var(--primary)); }
.uvitaci-karta__hvezda--prazdna { color: hsl(var(--muted)); fill: hsl(var(--muted)); }

.uvitaci-karta__hvezdicky-hodnota {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    font-weight: bold;
}

/* Odznáčky */
.uvitaci-karta__odznacky { flex: 1; }

.uvitaci-karta__odznacky-nadpis {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.uvitaci-karta__odznacky-seznam {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.uvitaci-karta__odznak {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    border: 1px solid;
    transition: all 0.15s;
}

.uvitaci-karta__odznak--ziskan {
    background: hsl(var(--primary) / 0.1);
    border-color: hsl(var(--primary) / 0.2);
    color: hsl(var(--primary));
    font-weight: 500;
}

.uvitaci-karta__odznak--neziskan {
    background: hsl(var(--muted) / 0.5);
    border-color: hsl(var(--border));
    color: hsl(var(--muted-foreground));
    opacity: 0.5;
}

/* Info box */
.uvitaci-karta__info-box {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: hsl(var(--accent) / 0.1);
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--accent) / 0.2);
}

.uvitaci-karta__info-ikona { color: hsl(var(--accent)); flex-shrink: 0; }

.uvitaci-karta__info-box p { font-size: 0.875rem; }

.uvitaci-karta__info-box strong {
    font-weight: 500;
    color: hsl(var(--accent));
}

.uvitaci-karta__info-text {
    color: hsl(var(--muted-foreground));
    margin-left: 0.25rem;
}

.uvitaci-karta__info-link {
    color: hsl(var(--accent));
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.uvitaci-karta__info-link:hover { background: hsl(var(--accent) / 0.1); }

/* =============================================================
   LUCIDE IKONY
   ============================================================= */
.lucide    { width: 1.25rem;  height: 1.25rem; }
.lucide-sm { width: 0.875rem; height: 0.875rem; }
.lucide-lg { width: 1.5rem;   height: 1.5rem; }
.lucide-xl { width: 3rem;     height: 3rem; }



.naseptavac-tags-wrapper {
	display: flex;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px 12px;
	border: 1px solid hsl(214 32% 91%);
	border-radius: 0.5rem;
	background: #fff;
	cursor: text;
	min-height: 44px;
	align-items: center;
}

.naseptavac-tags-wrapper:focus-within {
	border-color: hsl(33 100% 50%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	box-shadow: 0 0 0 3px hsl(33 100% 50% / 0.15);
}

.naseptavac-tag {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: hsl(33 100% 50% / 0.12);
	color: hsl(33 100% 30%);
	border-radius: 6px;
	font-size: 0.8125rem;
	font-weight: 500;
	white-space: nowrap;
}

.naseptavac-tag__x {
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	color: hsl(33 100% 40%);
	margin-left: 2px;
}

.welcome-card {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
}
@media (min-width: 768px) {
    .welcome-card { padding: 1.5rem 2rem; }
}
.welcome-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: hsl(var(--foreground));
}
@media (min-width: 768px) {
    .welcome-title { font-size: 1.875rem; }
}
.welcome-subtitle {
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
    font-size: 0.9375rem;
}
.naseptavac-tag__x:hover {
	color: hsl(0 72% 51%);
}

.dotaznik-status-ok {
	background: #f0fdf4;
	border: 1.5px solid #86efac;
	border-radius: 14px;
	padding: 18px 24px;
	margin: 20px auto;
	max-width: 1200px;
	display: flex;
	align-items: center;
	gap: 16px;
	animation: fadeInStatus 0.4s ease;
}

.dotaznik-status-ok__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	background: #22c55e;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.dotaznik-status-ok__icon svg {
	width: 20px;
	height: 20px;
}

.dotaznik-status-ok__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dotaznik-status-ok__text strong {
	font-size: 15px;
	color: #166534;
}

.dotaznik-status-ok__text span {
	font-size: 14px;
	color: #4ade80;
}
.dotaznik-delete-btn {
	text-decoration: none;
	color: hsl(0 72% 51%) !important;
	border-color: hsl(0 72% 51% / 0.3) !important;
}

.dotaznik-delete-btn:hover {
	background: hsl(0 72% 51% / 0.1) !important;
	border-color: hsl(0 72% 51%) !important;
}

.dotaznik-delete-btn {
	color: hsl(0 72% 51%) !important;
	border-color: hsl(0 72% 51% / 0.3) !important;
}

.dotaznik-delete-btn:hover {
	background: hsl(0 72% 51% / 0.1) !important;
	border-color: hsl(0 72% 51%) !important;
}

.cv-modal__icon--danger {
	color: hsl(0 72% 51%);
}

.cv-modal__icon--success {
	background: hsl(142 72% 94%);
	color: hsl(142 72% 35%);
}

.cv-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	cursor: pointer;
	color: #999;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: color 0.15s, background 0.15s;
}

.cv-modal__close:hover {
	color: #333;
	background: #f0f0f0;
}

.cv-modal__btn--primary {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	background: hsl(33 100% 50%);
	color: white;
	border: none;
	border-radius: 0.75rem;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.15s;
}

.cv-modal__btn--primary:hover {
	background: hsl(33 100% 42%);
	color: white;
}

.cv-modal__btn--danger {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	background: hsl(0 72% 51%);
	color: white;
	border: none;
	border-radius: 0.75rem;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.15s;
}

.cv-modal__btn--danger:hover {
	background: hsl(0 72% 41%);
}
@keyframes fadeInStatus {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}

.naseptavac-tags-input {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 2px 0 !important;
	flex: 1;
	min-width: 120px;
	font-size: 0.875rem;
	background: transparent !important;
}

.naseptavac-dropdown {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 100;
	background: #fff;
	border: 1px solid hsl(214 32% 91%);
	border-radius: 0.5rem;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	list-style: none;
	margin: 4px 0 0;
	padding: 4px 0;
	max-height: 220px;
	overflow-y: auto;
}

.naseptavac-dropdown li {
	padding: 8px 14px;
	font-size: 0.875rem;
	cursor: pointer;
	color: #333;
}

.naseptavac-dropdown li:hover,
.naseptavac-dropdown li.active {
	background: hsl(33 100% 50% / 0.1);
	color: hsl(33 100% 40%);
}

/* =============================================================
   MOBILNI SPODNI NAVIGACE (bottom navigation)
   Na PC skryta (levy sidebar zustava), na mobilu nahrazuje sidebar.
   ============================================================= */
.mobile-bottomnav { display: none; }
.mobile-more__overlay { display: none; }

@media (max-width: 1023px) {
    /* Na mobilu off-canvas sidebar nepouzivame - navigace je dole */
    .sidebar { display: none; }

    .mobile-bottomnav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        background: hsl(var(--background));
        border-top: 1px solid hsl(var(--border));
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-bottomnav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.1875rem;
        padding: 0.5rem 0.25rem 0.4375rem;
        border: none;
        background: none;
        font-family: inherit;
        text-decoration: none;
        color: hsl(var(--muted-foreground));
        cursor: pointer;
        min-height: 3.25rem;
        transition: color 0.15s;
    }
    .mobile-bottomnav__item.is-active { color: hsl(var(--primary)); }

    .mobile-bottomnav__icon-wrap { position: relative; line-height: 0; }
    .mobile-bottomnav__icon-wrap .lucide { width: 1.5rem; height: 1.5rem; }

    .mobile-bottomnav__label {
        font-size: 0.6875rem;
        font-weight: 600;
        line-height: 1;
    }

    .mobile-bottomnav__badge {
        position: absolute;
        top: -0.375rem;
        right: -0.5rem;
        min-width: 1rem;
        height: 1rem;
        padding: 0 0.25rem;
        border-radius: 9999px;
        background: hsl(var(--destructive, 0 84% 60%));
        color: #fff;
        font-size: 0.625rem;
        font-weight: 700;
        line-height: 1rem;
        text-align: center;
        box-sizing: border-box;
    }

    /* Aby spodni lista neprekryvala konec obsahu */
    .main-content,
    .cv-varianty-page,
    .zivotopis-page {
        padding-bottom: 4.5rem;
    }

    /* ===== Panel "Vice" ===== */
    .mobile-more__overlay {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 80;
        background: rgba(0, 0, 0, 0.45);
        align-items: flex-end;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s, visibility 0.25s;
    }
    .mobile-more__overlay.is-open { opacity: 1; visibility: visible; }

    .mobile-more__panel {
        width: 100%;
        background: #fff;
        border-radius: 1.25rem 1.25rem 0 0;
        padding: 0.75rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        max-height: 85vh;
        overflow-y: auto;
    }
    .mobile-more__overlay.is-open .mobile-more__panel { transform: translateY(0); }

    .mobile-more__handle {
        width: 2.5rem;
        height: 0.25rem;
        border-radius: 9999px;
        background: hsl(var(--border));
        margin: 0 auto 0.875rem;
    }

    .mobile-more__title {
        font-size: 1.0625rem;
        font-weight: 700;
        color: hsl(var(--foreground));
        margin-bottom: 0.875rem;
    }

    .mobile-more__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.625rem;
    }
    .mobile-more__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.4375rem;
        padding: 0.875rem 0.5rem;
        border-radius: 0.75rem;
        border: 1px solid hsl(var(--border));
        background: hsl(var(--background));
        text-decoration: none;
        color: hsl(var(--foreground));
        font-size: 0.75rem;
        font-weight: 600;
        text-align: center;
    }
    .mobile-more__item.is-active {
        border-color: hsl(var(--primary));
        background: hsl(var(--primary) / 0.08);
        color: hsl(var(--primary));
    }
    .mobile-more__icon-wrap { position: relative; line-height: 0; }
    .mobile-more__icon-wrap .lucide { width: 1.5rem; height: 1.5rem; }
    .mobile-more__badge {
        position: absolute;
        top: -0.375rem;
        right: -0.5rem;
        min-width: 1rem;
        height: 1rem;
        padding: 0 0.25rem;
        border-radius: 9999px;
        background: hsl(var(--destructive, 0 84% 60%));
        color: #fff;
        font-size: 0.625rem;
        font-weight: 700;
        line-height: 1rem;
        text-align: center;
        box-sizing: border-box;
    }

    .mobile-more__subtitle {
        margin: 1.25rem 0 0.5rem;
        font-size: 0.6875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: hsl(var(--muted-foreground));
    }
    .mobile-more__portals {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .mobile-more__portals a {
        padding: 0.625rem 0.75rem;
        border-radius: 0.5rem;
        border: 1px solid rgba(255, 140, 0, 0.35);
        background: rgba(255, 140, 0, 0.07);
        color: #ea580c;
        text-decoration: none;
        font-size: 0.8125rem;
        font-weight: 600;
        text-align: center;
    }

    .mobile-more__logout {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.25rem;
        padding: 0.75rem;
        border-radius: 0.625rem;
        border: 1px solid hsl(var(--border));
        color: hsl(var(--muted-foreground));
        text-decoration: none;
        font-weight: 600;
        font-size: 0.875rem;
    }
    .mobile-more__logout .lucide { width: 1.125rem; height: 1.125rem; }
}


/* =============================================================
   STATUS HLASKA (sdilena komponenta p.komp.s.statusy)
   ============================================================= */
.modal-info {
    width: auto;
    max-width: 640px;
    margin: 0 auto;
    overflow: hidden;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0px 0px 5px 0px #b0b0b0;
    padding: 25px 50px;
    text-align: center;
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 999;
    transform: translateX(-50%);
    border-radius: 10px;
    border: 2px solid #8fff42;
    background: linear-gradient(180deg, rgba(122, 202, 67, 0.95) 0%, rgba(67, 202, 89, 0.76) 100%);
    color: #fff;
}
.modal-info .close {
    position: absolute;
    right: 4px;
    top: 4px;
    font-size: 30px;
    line-height: 30px;
    width: 20px;
    height: 20px;
    color: #fff;
    cursor: pointer;
    transition: ease-in-out 0.3s;
}


/* ============================================================
   PRŮVODCE — fancybox iframe (karta bez bílého přesahu)
   Průvodce se otevírá jako fancybox iframe z celého Fajn účtu,
   proto styling patří do globálního styly.css (ne do CSS jedné stránky),
   aby karta + blur vypadaly stejně na VŠECH stránkách kde se průvodce spustí.
   ============================================================ */
.fancybox__container.pruvodce-fancybox {
    --fancybox-bg: rgba(0, 0, 0, 0.5);
}
.fancybox__container.pruvodce-fancybox .fancybox__backdrop {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.fancybox__container.pruvodce-fancybox .fancybox__content {
    background: transparent;
    padding: 0;
    box-shadow: none;
    overflow: visible;
}
.fancybox__container.pruvodce-fancybox .has-iframe .fancybox__content {
    width: 520px;
    max-width: calc(100vw - 2rem);
    /* vychozi vyska (fallback nez JS ohlasi skutecnou vysku karty z iframe pres postMessage);
       skutecnou vysku dle obsahu nastavi pruvodce_nastav_vysku() -> zadny orez ani scrollbar */
    height: 660px;
    max-height: calc(100vh - 2rem);
}
.fancybox__container.pruvodce-fancybox .fancybox__iframe {
    background: transparent;
}
.fancybox__container.pruvodce-fancybox .f-button.is-close-btn {
    display: none;
}
/* zadny vnejsi scrollbar okolo karty - slide/viewport nesmi scrollovat ani pridavat padding;
   vysku karty resi dynamicka vyska iframe (pruvodce_nastav_vysku pres postMessage) */
.fancybox__container.pruvodce-fancybox .fancybox__viewport,
.fancybox__container.pruvodce-fancybox .fancybox__slide {
    overflow: hidden;
}
.fancybox__container.pruvodce-fancybox .fancybox__slide {
    padding: 0;
}
.fancybox__container.pruvodce-fancybox .fancybox__slide.has-close-btn {
    padding-top: 0;
}