/**
 * Carsbath.cz - Theme CSS
 * Glass design přes Bootstrap 5
 * Primární barva: #36a8ff
 */

/* ============================================
   CSS PROMĚNNÉ - LIGHT THEME (výchozí)
   ============================================ */
:root {
    /* Barvy - konstantní */
    --cb-primary: #36a8ff;
    --cb-primary-dark: #2589d6;
    --cb-primary-light: #5ebaff;
    --cb-nav-dark: #0a0f1a;

    /* Light theme proměnné */
    --cb-bg: #f5f7fa;
    --cb-bg-alt: #ffffff;
    --cb-text: #1a1a2e;
    --cb-text-muted: #5a6578;
    --cb-glass-bg: rgba(255, 255, 255, 0.7);
    --cb-glass-border: rgba(0, 0, 0, 0.08);
    --cb-glass-blur: 10px;
    --cb-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --cb-shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.15);
    --cb-gradient-1: rgba(54, 168, 255, 0.08);
    --cb-gradient-2: rgba(54, 168, 255, 0.05);
    --cb-card-hover-border: rgba(54, 168, 255, 0.2);
    --cb-pricing-footer: rgba(54, 168, 255, 0.08);
}

/* ============================================
   DARK THEME - automaticky podle systému
   ============================================ */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --cb-bg: #0a0f1a;
        --cb-bg-alt: #0f1525;
        --cb-text: #ffffff;
        --cb-text-muted: rgba(255, 255, 255, 0.6);
        --cb-glass-bg: rgba(255, 255, 255, 0.05);
        --cb-glass-border: rgba(255, 255, 255, 0.1);
        --cb-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        --cb-shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.4);
        --cb-gradient-1: rgba(54, 168, 255, 0.1);
        --cb-gradient-2: rgba(54, 168, 255, 0.05);
        --cb-card-hover-border: rgba(255, 255, 255, 0.15);
        --cb-pricing-footer: rgba(0, 0, 0, 0.2);
    }
}

/* ============================================
   DARK THEME - manuální override
   ============================================ */
:root[data-theme="dark"] {
    --cb-bg: #0a0f1a;
    --cb-bg-alt: #0f1525;
    --cb-text: #ffffff;
    --cb-text-muted: rgba(255, 255, 255, 0.6);
    --cb-glass-bg: rgba(255, 255, 255, 0.05);
    --cb-glass-border: rgba(255, 255, 255, 0.1);
    --cb-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --cb-shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.4);
    --cb-gradient-1: rgba(54, 168, 255, 0.1);
    --cb-gradient-2: rgba(54, 168, 255, 0.05);
    --cb-card-hover-border: rgba(255, 255, 255, 0.15);
    --cb-pricing-footer: rgba(0, 0, 0, 0.2);
}

/* Dark mode: Override Bootstrap utility classes that use hardcoded dark-on-light colors */
[data-theme="dark"] .text-muted {
    color: var(--cb-text-muted) !important;
}

[data-theme="dark"] .text-success {
    color: #4ade80 !important;
}

/* Auto dark mode overrides (system preference) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .text-muted {
        color: var(--cb-text-muted) !important;
    }
    :root:not([data-theme="light"]) .text-success {
        color: #4ade80 !important;
    }
}

[data-theme="dark"] .portal-term-ok {
    color: #4ade80;
}

/* ============================================
   ZÁKLADNÍ STYLY
   ============================================ */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: scroll;
}

body {
    font-family: 'Jost', sans-serif;
    background: var(--cb-bg);
    color: var(--cb-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Jemný gradient pozadí */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 0%, var(--cb-gradient-1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, var(--cb-gradient-2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@media (max-width: 767.98px) {
    :root {
        --cb-glass-blur: 4px;
    }
    body::before {
        position: absolute;
    }
}

main {
    flex: 1;
}

/* ============================================
   NAVIGACE
   ============================================ */
.navbar {
    background: var(--cb-nav-dark);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: var(--cb-nav-dark);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    padding: 0 !important;
}

.navbar-logo {
    height: 56px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.navbar-logo:hover {
    opacity: 0.85;
}

/* Mobilní toolbar - ikony vedle hamburgeru */
.navbar-mobile-tools {
    order: 2;
}

/* Ikona link (EN flag na mobilu) */
.btn-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.btn-icon-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-icon-link .fi {
    font-size: 1.25rem;
}

/* ============================================
   ANIMOVANÝ HAMBURGER
   ============================================ */
.hamburger {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.hamburger:focus {
    outline: none;
    box-shadow: none;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

/* Hamburger -> X animace */
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991.98px) {
    /* Navbar container - zabránit overflow */
    .navbar > .container {
        position: relative;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Globální ochrana proti horizontálnímu přetečení na mobilu */
    .container,
    .container-fluid {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .navbar-logo {
        height: 44px;
        max-width: 160px;
    }

    /* Mobilní menu - glass efekt */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        width: calc(100% - 2rem);
        max-width: calc(100vw - 2rem);
        background: rgba(15, 21, 37, 0.85);
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        border-radius: 1.25rem;
        margin: 0.5rem 0;
        padding: 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .navbar-collapse .navbar-nav {
        margin-bottom: 1rem;
    }

    .navbar-collapse .nav-link {
        padding: 0.875rem 1rem !important;
        border-radius: 0.75rem;
        margin-bottom: 0.25rem;
        font-size: 1.05rem;
    }

    .navbar-collapse .nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .navbar-collapse .nav-link::after {
        display: none;
    }

    /* Mobilní dropdown - rozbalitelný na klik */
    .navbar-collapse .dropdown-menu {
        position: static !important;
        background: rgba(54, 168, 255, 0.08);
        border: none;
        border-left: 2px solid var(--cb-primary);
        border-radius: 0 0.75rem 0.75rem 0;
        box-shadow: none;
        padding: 0.5rem 0 0.5rem 0.5rem;
        margin: 0.25rem 0 0.5rem 1rem;
        transform: none !important;
    }

    .navbar-collapse .dropdown-item {
        padding: 0.6rem 1rem;
        border-radius: 0.5rem;
        border-left: none;
    }

    .navbar-collapse .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    /* Skrýt desktop theme/EN v mobilním menu */
    .navbar-collapse .d-none.d-lg-flex {
        display: none !important;
    }

    /* CTA tlačítko na mobilu */
    .navbar-collapse > a.btn.btn-primary {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        padding: 0.875rem 1.5rem;
    }

    /* Dropdown toggle ikona na mobilu */
    .navbar-collapse .dropdown-arrow {
        margin-left: auto;
        font-size: 0.85rem;
    }

    /* Otevřený dropdown na mobilu */
    .navbar-collapse .dropdown.show .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Ještě menší mobily - logo trochu menší */
@media (max-width: 375px) {
    .navbar-logo {
        height: 38px;
        max-width: 140px;
    }
}

/* Nav links s animovaným podtržítkem */
.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cb-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover {
    color: #ffffff !important;
}

.nav-link:hover::after {
    width: calc(100% - 2rem);
}

.nav-link.active {
    color: var(--cb-primary) !important;
}

.nav-link.active::after {
    width: calc(100% - 2rem);
}

/* Dropdown toggle - skrytí původní Bootstrap šipky */
.nav-link.dropdown-toggle::after {
    display: none;
}

.nav-link.dropdown-toggle {
    cursor: default;
}

/* Vlastní šipka s animací */
.dropdown-arrow {
    font-size: 0.65rem;
    margin-left: 0.35rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown-hover:hover .dropdown-arrow,
.dropdown-hover.show .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown hover na desktopu */
@media (min-width: 992px) {
    .dropdown-hover:hover > .dropdown-menu {
        display: block;
        animation: dropdownFadeIn 0.25s ease;
    }

    .dropdown-hover > .dropdown-menu {
        margin-top: 0;
    }
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flag ikony - zajistit správnou velikost */
.fi {
    flex-shrink: 0;
    width: 1.33em;
    line-height: 1em;
}

/* Dropdown menu - tmavé (součást navigace) */
.dropdown-menu {
    background: var(--cb-nav-dark);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    min-width: 220px;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.6);
    padding: 0.6rem 1.25rem;
    transition: all 0.2s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(54, 168, 255, 0.1);
    color: #ffffff;
    border-left-color: var(--cb-primary);
}

.dropdown-item.active {
    background: rgba(54, 168, 255, 0.15);
    color: var(--cb-primary);
    border-left-color: var(--cb-primary);
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Položka "Všechny služby" */
.dropdown-item strong {
    color: var(--cb-primary);
}

/* Offset pro fixed navbar */
body {
    padding-top: 76px;
}

/* ============================================
   TLAČÍTKA
   ============================================ */
.btn-primary {
    background: var(--cb-primary);
    border-color: var(--cb-primary);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--cb-primary-dark);
    border-color: var(--cb-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(54, 168, 255, 0.4);
}

.btn-outline-primary {
    color: var(--cb-primary);
    border-color: var(--cb-primary);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--cb-primary);
    border-color: var(--cb-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(54, 168, 255, 0.4);
}

/* ============================================
   GLASS KARTY
   ============================================ */
.glass-card {
    background: var(--cb-glass-bg);
    backdrop-filter: blur(var(--cb-glass-blur));
    -webkit-backdrop-filter: blur(var(--cb-glass-blur));
    border: 1px solid var(--cb-glass-border);
    border-radius: 1rem;
    padding: 2rem;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    box-shadow: var(--cb-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cb-shadow-strong);
    border-color: var(--cb-card-hover-border);
}

/* CTA Card - speciální styl pro call-to-action sekce */
.glass-card.text-center {
    position: relative;
    overflow: hidden;
    border-color: rgba(54, 168, 255, 0.2);
}

.glass-card.text-center::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cb-primary), transparent);
}

.glass-card.text-center::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(54, 168, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.glass-card.text-center:hover {
    transform: none;
    border-color: rgba(54, 168, 255, 0.4);
}

/* ============================================
   SEKCE
   ============================================ */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--cb-text-muted);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* ============================================
   HERO SEKCE - FULLWIDTH S OBRÁZKEM
   ============================================ */
.hero-fullwidth {
    position: relative;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Zajistit, že hero-fullwidth nemá žádné dekorativní pseudo-elementy */
.hero-fullwidth::before,
.hero-fullwidth::after {
    content: none !important;
    display: none !important;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(10, 15, 26, 0.95) 0%,
        rgba(10, 15, 26, 0.85) 30%,
        rgba(10, 15, 26, 0.4) 60%,
        rgba(10, 15, 26, 0.2) 100%
    );
}

/* Light theme overlay - tmavší pro čitelnost */
:root:not([data-theme="dark"]) .hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(10, 15, 26, 0.92) 0%,
        rgba(10, 15, 26, 0.8) 30%,
        rgba(10, 15, 26, 0.35) 60%,
        rgba(10, 15, 26, 0.15) 100%
    );
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(10, 15, 26, 0.92) 0%,
            rgba(10, 15, 26, 0.8) 30%,
            rgba(10, 15, 26, 0.35) 60%,
            rgba(10, 15, 26, 0.15) 100%
        );
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.min-vh-hero {
    min-height: calc(100vh - 76px);
}

/* Hero text - vždy bílý (na tmavém overlay) */
.hero-fullwidth .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-fullwidth .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Gradient text v hero */
.hero-fullwidth .text-gradient {
    background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero animace */
.hero-animate {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-animate-delay-1 {
    animation-delay: 0.2s;
}

.hero-animate-delay-2 {
    animation-delay: 0.4s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responzivita hero */
@media (max-width: 991.98px) {
    .hero-fullwidth {
        min-height: 80vh;
    }

    .min-vh-hero {
        min-height: 80vh;
    }

    .hero-bg-image {
        object-position: 70% center;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(10, 15, 26, 0.7) 0%,
            rgba(10, 15, 26, 0.85) 50%,
            rgba(10, 15, 26, 0.95) 100%
        );
    }

    :root:not([data-theme="dark"]) .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(10, 15, 26, 0.6) 0%,
            rgba(10, 15, 26, 0.8) 50%,
            rgba(10, 15, 26, 0.92) 100%
        );
    }

    .hero-fullwidth .hero-title {
        font-size: 2.75rem;
    }

    .hero-content {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 575.98px) {
    .hero-fullwidth {
        min-height: 85vh;
    }

    .min-vh-hero {
        min-height: 85vh;
    }

    .hero-fullwidth .hero-title {
        font-size: 2.25rem;
    }

    .hero-fullwidth .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-bg-image {
        object-position: 65% center;
    }
}

/* Scroll indikátor */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    color: #ffffff;
    transform: translateX(-50%) translateY(3px);
}

.scroll-indicator-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

@media (max-width: 575.98px) {
    .scroll-indicator {
        bottom: 1.5rem;
    }

    .scroll-indicator-text {
        display: none;
    }
}

/* ============================================
   SCROLL ANIMACE - FADE IN
   ============================================ */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animace pro karty */
.fade-in-section .glass-card,
.fade-in-section .service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.visible .glass-card,
.fade-in-section.visible .service-card {
    opacity: 1;
    transform: translateY(0);
}

/* Postupné zpoždění pro jednotlivé karty */
.fade-in-section.visible .col-md-6:nth-child(1) .glass-card,
.fade-in-section.visible .col-lg-4:nth-child(1) .glass-card {
    transition-delay: 0s;
}

.fade-in-section.visible .col-md-6:nth-child(2) .glass-card,
.fade-in-section.visible .col-lg-4:nth-child(2) .glass-card {
    transition-delay: 0.1s;
}

.fade-in-section.visible .col-md-6:nth-child(3) .glass-card,
.fade-in-section.visible .col-lg-4:nth-child(3) .glass-card {
    transition-delay: 0.2s;
}

.fade-in-section.visible .col-md-6:nth-child(4) .glass-card,
.fade-in-section.visible .col-lg-4:nth-child(4) .glass-card {
    transition-delay: 0.3s;
}

/* ============================================
   BRAND LOGOS - ZNAČKY
   ============================================ */
.brand-logo-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.brand-logo {
    max-width: 140px;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.brand-logo-card:hover .brand-logo {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .brand-logo-card {
        height: 80px;
        padding: 1rem 0.75rem;
    }

    .brand-logo {
        max-width: 110px;
        max-height: 45px;
    }
}

@media (max-width: 575.98px) {
    .brand-logo-card {
        height: 70px;
    }

    .brand-logo {
        max-width: 95px;
        max-height: 38px;
    }
}

/* ============================================
   SERVICE CARDS - S OBRÁZKY
   ============================================ */
.service-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.service-card-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 320px;
    background: var(--cb-card-bg);
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    transition: transform 0.5s ease;
}

/* Individuální pozice fotek */
.service-card-image img[alt*="exteriér"] {
    object-position: center 70%;
}

.service-card-image img[alt*="Keramická"] {
    object-position: center 45%;
}

.service-card-image:hover img {
    transform: scale(1.08);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 15, 26, 0.1) 0%,
        rgba(10, 15, 26, 0.4) 40%,
        rgba(10, 15, 26, 0.9) 100%
    );
    transition: background 0.3s ease;
}

.service-card-image:hover .service-card-overlay {
    background: linear-gradient(
        180deg,
        rgba(10, 15, 26, 0.2) 0%,
        rgba(10, 15, 26, 0.5) 40%,
        rgba(10, 15, 26, 0.95) 100%
    );
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: #fff;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.service-card-price {
    display: inline-block;
    background: var(--cb-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.service-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.service-card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.service-card-image .btn {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card-image:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767.98px) {
    .service-card-image {
        height: 280px;
    }

    .service-card-title {
        font-size: 1.25rem;
    }

    .service-card-desc {
        font-size: 0.85rem;
    }

    .service-card-image .btn {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 575.98px) {
    .service-card-image {
        height: 260px;
    }

    .service-card-content {
        padding: 1.25rem;
    }
}

/* ============================================
   CENOVÝ KONFIGURÁTOR
   ============================================ */
.configurator-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.configurator-form {
    padding: 1.5rem;
}

.config-step {
    margin-bottom: 1.75rem;
}

.config-step:last-child {
    margin-bottom: 0;
}

.config-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.config-step-header .config-reset-btn {
    margin-left: auto;
    margin-top: 0;
}

.config-step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.config-step-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--cb-text);
}

.config-step-hint {
    font-size: 0.8rem;
    color: var(--cb-text-muted);
}

/* Config Options Grid */
.config-options {
    display: grid;
    gap: 0.75rem;
}

.config-options-4 {
    grid-template-columns: repeat(4, 1fr);
}

.config-options-3 {
    grid-template-columns: repeat(3, 1fr);
}

.config-options-2 {
    grid-template-columns: repeat(2, 1fr);
}

.config-option {
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.config-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.config-option-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: var(--cb-glass-bg);
    border: 2px solid var(--cb-glass-border);
    border-radius: 0.75rem;
    transition: all 0.25s ease;
    text-align: center;
}

.config-option-content i {
    font-size: 1.5rem;
    color: var(--cb-text-muted);
    transition: color 0.25s ease;
}

.config-option-content span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cb-text);
}

.config-option-content small {
    font-size: 0.7rem;
    color: var(--cb-text-muted);
    margin-top: -0.25rem;
}

/* Hover state */
.config-option:hover .config-option-content {
    border-color: var(--cb-primary);
    background: var(--cb-gradient-1);
}

.config-option:hover .config-option-content i {
    color: var(--cb-primary);
}

/* Selected state - používáme obě varianty pro kompatibilitu */
.config-option input:checked + .config-option-content,
.config-option.is-checked .config-option-content {
    border-color: var(--cb-primary);
    background: linear-gradient(135deg, rgba(54, 168, 255, 0.15), rgba(54, 168, 255, 0.08));
    box-shadow: 0 0 20px rgba(54, 168, 255, 0.2);
}

.config-option input:checked + .config-option-content i,
.config-option.is-checked .config-option-content i {
    color: var(--cb-primary);
}

/* Addons */
.config-addons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.config-addon {
    position: relative;
    cursor: pointer;
}

.config-addon input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.config-addon span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: var(--cb-glass-bg);
    border: 1px solid var(--cb-glass-border);
    border-radius: 2rem;
    font-size: 0.8rem;
    color: var(--cb-text-muted);
    transition: all 0.25s ease;
}

.config-addon span i {
    font-size: 0.9rem;
}

.config-addon:hover span {
    border-color: var(--cb-primary);
    color: var(--cb-text);
}

.config-addon input:checked + span {
    background: linear-gradient(135deg, rgba(54, 168, 255, 0.2), rgba(54, 168, 255, 0.1));
    border-color: var(--cb-primary);
    color: var(--cb-primary);
}

/* Result Card */
.configurator-result {
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cb-glass-border);
    margin-bottom: 1.25rem;
}

.result-header i {
    font-size: 1.5rem;
    color: var(--cb-primary);
}

.result-header span {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--cb-text);
}

.result-package {
    margin-bottom: 1.25rem;
}

.result-package-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cb-text);
    margin-bottom: 0.25rem;
}

.result-package-desc {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.result-details {
    background: var(--cb-pricing-footer);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.result-row:not(:last-child) {
    border-bottom: 1px solid var(--cb-glass-border);
}

.result-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cb-text-muted);
    font-size: 0.9rem;
}

.result-label i {
    color: var(--cb-primary);
}

.result-value {
    font-weight: 600;
    color: var(--cb-text);
}

.result-price {
    font-size: 1.25rem;
    color: var(--cb-primary);
    transition: transform 0.15s ease;
}

.result-price.price-updated {
    animation: price-pulse 0.4s ease;
}

@keyframes price-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); color: #5ebaff; }
    100% { transform: scale(1); }
}

.result-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    color: var(--cb-text-muted);
}

.result-note i {
    color: #ffc107;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.result-cta {
    margin-top: 1rem;
}

.result-cta-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--cb-text-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.result-cta-hint i {
    color: var(--cb-primary);
}

/* Doporučení leštění před keramikou */
.config-option.recommended .config-option-content {
    border-color: #ffc107;
    animation: pulse-recommend 2s ease-in-out infinite;
}

.config-option.recommended .config-option-content::after {
    content: 'Doporučeno';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffc107;
    color: #000;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse-recommend {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 15px 3px rgba(255, 193, 7, 0.3);
    }
}

/* Úrovně služeb ve výsledku */
.result-levels {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--cb-glass-bg);
    border: 1px solid var(--cb-glass-border);
    border-radius: 0.5rem;
}

.result-levels-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cb-text-muted);
    margin-bottom: 0.75rem;
}

.result-levels-header i {
    font-size: 0.9rem;
    color: var(--cb-primary);
}

.result-levels-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-level-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.result-level-label {
    font-size: 0.85rem;
    color: var(--cb-text);
    white-space: nowrap;
}

.result-level-select {
    flex: 1;
    max-width: 180px;
    padding: 0.4rem 2rem 0.4rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cb-text);
    background-color: var(--cb-bg-alt);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2336a8ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px 12px;
    border: 1px solid var(--cb-glass-border);
    border-radius: 0.375rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.result-level-select:hover {
    border-color: var(--cb-primary);
}

.result-level-select:focus {
    outline: none;
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px rgba(54, 168, 255, 0.15);
}

.result-level-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.result-level-desc {
    margin: 0.25rem 0 0 0;
    font-size: 0.7rem;
    color: var(--cb-text-muted);
    line-height: 1.3;
}

/* Upozornění ve výsledku */
.result-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    margin-top: 1rem;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    color: var(--cb-text);
}

.result-warning i {
    color: #ffc107;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Sdílení konfigurace */
.result-share {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.result-share-label {
    display: block;
    font-size: 0.75rem;
    color: var(--cb-text-muted);
    margin-bottom: 0.5rem;
}

.result-share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--cb-text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn-copy:hover {
    background: var(--cb-primary);
    border-color: var(--cb-primary);
    color: #fff;
}

.share-btn-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.share-btn-native:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Toast notifikace */
.share-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--cb-nav-dark);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-toast i {
    color: var(--cb-primary);
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Reset tlačítko konfigurace */
.config-reset-btn {
    margin-top: 0.75rem;
    padding: 0.4rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    color: var(--cb-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.config-reset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--cb-text);
}

.config-reset-btn i {
    margin-right: 0.25rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .configurator-result {
        position: static;
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .config-options-4,
    .config-options-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .config-option-content {
        padding: 0.85rem 0.5rem;
    }

    .config-option-content i {
        font-size: 1.25rem;
    }

    .config-option-content span {
        font-size: 0.8rem;
    }

    .config-option-content small {
        display: none;
    }

    /* Mobilní úpravy pro úrovně služeb */
    .result-level-top {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .result-level-label {
        font-size: 0.75rem;
        color: var(--cb-text-muted);
    }

    .result-level-select {
        max-width: 100%;
        padding: 0.6rem 2.5rem 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .config-options-2 {
        grid-template-columns: 1fr;
    }

    .config-addons {
        flex-direction: column;
    }

    .config-addon span {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--cb-nav-dark);
    color: #fff;
    position: relative;
}

.footer-top {
    height: 4px;
    background: linear-gradient(90deg, var(--cb-primary), var(--cb-primary-light), var(--cb-primary));
}

.footer-logo img {
    max-height: 48px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover img {
    opacity: 1;
}

/* Kontakt */
.footer-contact {
    margin: 0;
}

.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-contact-link i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    color: var(--cb-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-contact-link:hover {
    color: #fff;
}

.footer-contact-link:hover i {
    background: var(--cb-primary);
    color: #fff;
}

/* Sociální sítě */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    transform: translateY(-3px);
    color: #fff;
}

.footer-social-link:hover:nth-child(1) {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social-link:hover:nth-child(2) {
    background: #1877f2;
}

.footer-social-link:hover:nth-child(3) {
    background: #25D366;
}

/* Nadpisy a odkazy */
.footer-heading {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--cb-primary);
}

.footer-links {
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Spodní část */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-tiny-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-tiny-link:hover {
    color: var(--cb-primary);
}

/* Responsive */
@media (max-width: 991.98px) {
    .footer .col-lg-4:first-child {
        text-align: center;
    }

    .footer-logo {
        display: inline-block;
    }

    .footer-contact-link {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer .col-6 {
        text-align: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }
}

@media (max-width: 575.98px) {
    .footer-bottom .col-md-6:last-child p {
        line-height: 1.8;
    }
}

/* ============================================
   UTILITY TŘÍDY
   ============================================ */
.text-primary {
    color: var(--cb-primary) !important;
}

/* Override Bootstrap text-white - používá theme proměnné */
.text-white {
    color: var(--cb-text) !important;
}

.text-white-50 {
    color: var(--cb-text-muted) !important;
}

/* Pro tmavé sekce (nav, footer) vždy bílý text */
.navbar .text-white,
.footer .text-white {
    color: #ffffff !important;
}

.navbar .text-white-50,
.footer .text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.bg-glass {
    background: var(--cb-glass-bg);
    backdrop-filter: blur(var(--cb-glass-blur));
}

/* Highlight text */
.text-gradient {
    background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   THEME TOGGLE PŘEPÍNAČ
   ============================================ */
.theme-toggle {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.theme-toggle i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(15deg);
}

/* Ikony pro light/dark - sun/moon */
.theme-toggle .bi-sun-fill {
    display: none;
}

.theme-toggle .bi-moon-fill {
    display: block;
}

/* V dark mode zobrazit slunce (přepnout na light) */
:root[data-theme="dark"] .theme-toggle .bi-sun-fill,
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .bi-sun-fill {
        display: block;
    }
    :root:not([data-theme="light"]) .theme-toggle .bi-moon-fill {
        display: none;
    }
}

:root[data-theme="dark"] .theme-toggle .bi-moon-fill {
    display: none;
}

:root[data-theme="dark"] .theme-toggle .bi-sun-fill {
    display: block;
}

/* Theme toggle tooltip - pouze desktop, jednorázové zobrazení */
.theme-toggle {
    position: relative;
}

.theme-toggle-hint {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--cb-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--cb-glass-border);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: var(--cb-text-muted);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.theme-toggle-hint::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: var(--cb-glass-bg);
    border-left: 1px solid var(--cb-glass-border);
    border-top: 1px solid var(--cb-glass-border);
    transform: rotate(45deg);
}

.theme-toggle.show-hint .theme-toggle-hint {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Skrýt tooltip na mobilu */
@media (max-width: 991.98px) {
    .theme-toggle-hint {
        display: none !important;
    }
}

/* ============================================
   WHATSAPP TLAČÍTKO
   ============================================ */
.btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background: #1da851;
    border-color: #1da851;
    color: #fff;
    transform: translateY(-2px);
}

.hero-cta-btn {
    padding: 0.55rem 1.2rem !important;
    font-size: 0.95rem !important;
    white-space: nowrap;
}

.hero-garage-btn {
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

@media (max-width: 575.98px) {
    .hero-cta-btn {
        padding: 0.45rem 1rem !important;
        font-size: 0.82rem !important;
    }
}

.hero-garage-btn:hover,
.hero-garage-btn:focus {
    color: #fff;
    border-color: rgba(54, 168, 255, 0.6);
    background: linear-gradient(135deg, rgba(54, 168, 255, 0.2), rgba(54, 168, 255, 0.1));
    box-shadow: 0 0 20px rgba(54, 168, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

/* ============================================
   ALERT / UPOZORNĚNÍ
   ============================================ */
.alert-notice {
    border-left: 4px solid var(--cb-primary);
}

.alert-notice.collapsed-content .alert-full-text {
    display: none;
}

.alert-notice .alert-preview-text {
    display: none;
}

.alert-notice.collapsed-content .alert-preview-text {
    display: block;
}

.read-more-toggle {
    color: var(--cb-primary);
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.read-more-toggle:hover {
    color: var(--cb-primary-light);
}

/* ============================================
   PAGE HERO (podstránky) - s fotkou na pozadí
   ============================================ */
.page-hero {
    position: relative;
    min-height: 55vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

.page-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: brightness(0.9) saturate(1.1);
}

/* Individuální pozice fotek v page-hero */
.page-hero-background img[alt*="interiér"] {
    object-position: center 71%;
}

.page-hero-background img[alt*="exteriér"],
.page-hero-background img[alt*="exteriéru"] {
    object-position: center 72%;
}

.page-hero-background img[alt*="Leštění"] {
    object-position: center 60%;
}

.page-hero-background img[alt*="Keramická"] {
    object-position: center 40%;
}

.page-hero-background img[alt*="motor"] {
    object-position: center 40%;
}

.page-hero-background img[alt*="světl"] {
    object-position: center 50%;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 15, 26, 0.3) 0%,
        rgba(10, 15, 26, 0.5) 40%,
        rgba(10, 15, 26, 0.85) 100%
    );
}

/* Spodní přechod hero - vypnuto */
.page-hero::before {
    display: none;
}

/* Jemný gradient NAD obsahem — překryje spodní okraj hero zvenku */
.page-hero + section,
.page-hero + div + section {
    position: relative;
}

.page-hero:not(.page-hero-simple) + section::before,
.page-hero:not(.page-hero-simple) + div + section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 115px;
    background: linear-gradient(to top, var(--cb-bg), transparent);
    z-index: 3;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(54, 168, 255, 0.08) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    padding: 4rem 0 5rem;
}

.page-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.page-hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-hero-price {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--cb-primary), #2d8fd8);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(54, 168, 255, 0.4);
    transition: all 0.3s ease;
}

.page-hero-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(54, 168, 255, 0.5);
}

@media (max-width: 991.98px) {
    .page-hero {
        min-height: 45vh;
    }

    .page-hero-title {
        font-size: 2.75rem;
    }

    .page-hero::after {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 575.98px) {
    .page-hero {
        min-height: 40vh;
    }

    .page-hero-title {
        font-size: 2.25rem;
    }

    .page-hero-subtitle {
        font-size: 1.1rem;
    }

    .page-hero-content {
        padding: 3rem 0 4rem;
    }

    .page-hero::before {
        height: 100px;
    }

    .page-hero::after {
        width: 300px;
        height: 300px;
    }

    .page-hero-price {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
}

/* Page hero BEZ obrázku (simple varianta) */
.page-hero-simple {
    min-height: auto;
    padding: 7rem 0 3rem;
    background: var(--cb-bg);
}

.page-hero-simple .page-hero-title {
    color: var(--cb-text);
}

.page-hero-simple .page-hero-subtitle {
    color: var(--cb-text-muted);
}

@media (max-width: 575.98px) {
    .page-hero-simple {
        padding: 6rem 0 2rem;
    }
}

/* ============================================
   SERVICE CARDS (stránka služeb)
   ============================================ */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card-link:hover {
    color: inherit;
}

.service-card-large {
    position: relative;
    overflow: hidden;
}

.service-card-large:hover {
    border-color: var(--cb-primary);
}

.service-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cb-primary);
}

/* ============================================
   PRICING CARDS (ceníkové karty)
   ============================================ */
.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--cb-glass-border);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card-featured {
    border-color: var(--cb-primary);
    box-shadow: 0 0 40px rgba(54, 168, 255, 0.15);
    position: relative;
}

.pricing-card-featured::before {
    content: 'Nejoblíbenější';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--cb-primary), #2d8fd8);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 10;
}

.pricing-header {
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    border-radius: 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pricing-header h2 {
    line-height: 1.4;
    font-size: 1.1rem;
    font-weight: 600;
}

.pricing-header-start {
    background: linear-gradient(180deg, rgba(144, 238, 144, 0.15) 0%, transparent 100%);
    border-bottom: none;
}

.pricing-header-komplet {
    background: linear-gradient(180deg, rgba(54, 168, 255, 0.15) 0%, transparent 100%);
    border-bottom: none;
}

.pricing-header-premium {
    background: linear-gradient(180deg, rgba(255, 107, 107, 0.15) 0%, transparent 100%);
    border-bottom: none;
}

.pricing-body {
    padding: 1.5rem 1.75rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.pricing-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
}

.pricing-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--cb-text-muted);
}

.pricing-meta-item i {
    color: var(--cb-primary);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--cb-text);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #25D366;
    font-weight: 700;
}

.pricing-features li.not-included {
    opacity: 0.55;
    text-decoration: line-through;
}

.pricing-features li.not-included::before {
    content: '✗';
    color: #ef4444;
}

.pricing-details {
    margin-top: auto;
    padding-top: 1rem;
}

.pricing-details-content {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-footer {
    padding: 1.75rem 2rem;
    background: linear-gradient(180deg, rgba(54, 168, 255, 0.05) 0%, rgba(54, 168, 255, 0.1) 100%);
    border-top: 1px solid rgba(54, 168, 255, 0.2);
    margin-top: auto;
    flex-shrink: 0;
}

.pricing-card-featured .pricing-footer {
    background: linear-gradient(180deg, rgba(54, 168, 255, 0.1) 0%, rgba(54, 168, 255, 0.2) 100%);
}

.pricing-price {
    text-align: center;
}

.price-label {
    display: block;
    font-size: 0.875rem;
    color: var(--cb-text-muted);
    margin-bottom: 0.25rem;
}

.price-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--cb-primary);
    text-shadow: 0 0 20px rgba(54, 168, 255, 0.3);
}

.price-note {
    display: block;
    font-size: 0.8rem;
    color: var(--cb-text-muted);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.price-alt {
    display: block;
    font-size: 0.875rem;
    color: var(--cb-text-muted);
    margin-top: 0.25rem;
}

/* ============================================
   CERAMIC SPECS (keramické ochrany)
   ============================================ */
.ceramic-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ceramic-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--cb-glass-border);
    font-size: 0.875rem;
    color: var(--cb-text-muted);
}

.ceramic-specs li:last-child {
    border-bottom: none;
}

.ceramic-specs li strong {
    color: var(--cb-text);
}

/* ============================================
   ACCORDION (FAQ)
   ============================================ */
.accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: var(--cb-glass-border);
}

.accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--cb-glass-border);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-button {
    background: transparent;
    color: var(--cb-text);
    font-weight: 600;
    font-size: 1rem;
    padding: 1.25rem 0;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--cb-primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    filter: invert(58%) sepia(85%) saturate(1000%) hue-rotate(185deg) brightness(100%) contrast(101%);
}

.accordion-body {
    padding: 0 0 1.25rem 2.75rem;
    color: var(--cb-text-muted);
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

.accordion-body ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.accordion-body ul li {
    margin-bottom: 0.5rem;
}

.accordion-body ul li:last-child {
    margin-bottom: 0;
}

/* ============================================
   VOUCHER / DÁRKOVÉ POUKAZY
   ============================================ */
.voucher-preview {
    max-width: 350px;
    margin: 0 auto;
}

.voucher-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid var(--cb-glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.voucher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cb-primary), var(--cb-primary-light));
}

.voucher-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--cb-glass-border);
}

.voucher-body {
    text-align: center;
    padding: 1rem 0;
}

.voucher-logo {
    filter: brightness(0) invert(1);
}

.voucher-value {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(54, 168, 255, 0.15);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
}

.voucher-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--cb-glass-border);
}

.voucher-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: voucher-counter;
}

.voucher-requirements li {
    counter-increment: voucher-counter;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.25rem;
}

.voucher-requirements li:last-child {
    margin-bottom: 0;
}

.voucher-requirements li::before {
    content: counter(voucher-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--cb-primary);
    font-weight: 600;
    font-size: 1.125rem;
}

/* ============================================
   PŘEPÍNAČ MĚNY - CENÍK
   ============================================ */

/* Přepínač měny */
.currency-toggle {
    display: inline-flex;
    background: var(--cb-bg-alt);
    border: 2px solid var(--cb-glass-border);
    border-radius: 50px;
    padding: 4px;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 5;
}

.currency-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1.2rem;
    border: none;
    background: transparent;
    color: var(--cb-text);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.currency-btn:hover {
    color: var(--cb-primary);
    background: rgba(54, 168, 255, 0.08);
    text-decoration: none;
}

.currency-btn.active {
    background: var(--cb-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(54, 168, 255, 0.3);
}

/* ============================================
   SKRYTÍ EXTRA SCROLLBARŮ
   ============================================ */
/* Scroll pouze na html - všechno ostatní musí mít overflow visible */
body {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

main,
footer,
section,
.container,
.navbar,
.page-hero,
.page-hero-simple {
    overflow: visible !important;
    max-height: none !important;
}

/* Hero-fullwidth potřebuje overflow: hidden kvůli zoom animaci */
.hero-fullwidth {
    overflow: hidden !important;
    max-height: none !important;
}

/* Elfsight widgety - overflow-y visible pro scroll, overflow-x hidden pro zamezení horizontálního přetečení */
[class*="elfsight"],
[class*="eapps"],
.eapps-widget,
#eapps-widget-root,
.EAPPS_PORTAL {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    max-height: none !important;
    max-width: 100% !important;
}

/* Mobilní zařízení - absolutní ochrana proti horizontálnímu scrollu */
@media (max-width: 991.98px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Navbar collapse - striktní omezení šířky */
    .navbar-collapse {
        max-width: calc(100vw - 2rem) !important;
        box-sizing: border-box !important;
    }

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        overflow-x: hidden !important;
    }
}

/* ============================================
   ZÁKAZNICKÝ PORTÁL
   ============================================ */

/* Auth stránky (login, register) */
.portal-auth-page {
    min-height: 100vh;
    padding-top: 80px;
    background:
        radial-gradient(ellipse at 20% 20%, var(--cb-gradient-1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, var(--cb-gradient-2) 0%, transparent 50%),
        var(--cb-bg);
}

/* Info panel (levá strana) */
.portal-info-panel {
    padding-right: 2rem;
}

.portal-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(54, 168, 255, 0.1);
    border: 1px solid rgba(54, 168, 255, 0.2);
    border-radius: 50px;
    color: var(--cb-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.portal-info-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 1.5rem 0 1rem;
    color: var(--cb-text);
}

.portal-mobile-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cb-text);
    margin-bottom: 0.5rem;
}

.portal-info-text {
    font-size: 1.05rem;
    color: var(--cb-text-muted);
    line-height: 1.6;
}

.portal-info-highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    padding: 12px 20px;
    background: var(--cb-glass-bg);
    border: 1px solid var(--cb-glass-border);
    border-radius: 12px;
    color: var(--cb-text-muted);
    font-size: 0.95rem;
    backdrop-filter: blur(var(--cb-glass-blur));
}

.portal-info-highlight i {
    color: var(--cb-primary);
    font-size: 1.1rem;
}

/* Features list */
.portal-features-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.portal-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.portal-feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(54, 168, 255, 0.1);
    border-radius: 12px;
    color: var(--cb-primary);
    font-size: 1.2rem;
}

.portal-features-list li strong {
    display: block;
    font-weight: 600;
    color: var(--cb-text);
    margin-bottom: 2px;
}

.portal-features-list li span {
    font-size: 0.9rem;
    color: var(--cb-text-muted);
}

/* Free badge */
.portal-free-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 1.25rem;
    padding: 8px 16px;
    background: rgba(25, 135, 84, 0.08);
    border: 1px solid rgba(25, 135, 84, 0.18);
    border-radius: 50px;
    color: #198754;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Auth card */
.portal-auth-card {
    padding: 2rem !important;
}

.portal-auth-card .tab-content {
    min-height: 300px;
}

.portal-auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--cb-text);
}

/* Auth tabs */
.portal-auth-tabs {
    background: var(--cb-glass-bg);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid var(--cb-glass-border);
}

.portal-auth-tabs .nav-item {
    flex: 1;
}

.portal-auth-tabs .nav-link,
.portal-auth-tabs .nav-link:not(.active) {
    width: 100%;
    text-align: center;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155 !important;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
}

.portal-auth-tabs .nav-link.active {
    background: var(--cb-primary);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(54, 168, 255, 0.3);
}

.portal-auth-tabs .nav-link:not(.active):hover {
    color: var(--cb-text);
    background: rgba(54, 168, 255, 0.05);
}

/* Form inputs */
.portal-input-group .input-group-text {
    background: var(--cb-glass-bg);
    border: 1px solid var(--cb-glass-border);
    color: var(--cb-text-muted);
    border-right: none;
}

.portal-input-group .form-control {
    background: var(--cb-glass-bg);
    border: 1px solid var(--cb-glass-border);
    color: var(--cb-text);
    border-left: none;
    padding: 0.625rem 0.75rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-input-group {
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.portal-input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(54, 168, 255, 0.15);
    border-radius: 8px;
}

.portal-input-group .form-control:focus {
    background: var(--cb-glass-bg);
    border-color: var(--cb-primary);
    box-shadow: none;
    color: var(--cb-text);
}

.portal-input-group:focus-within .input-group-text {
    border-color: var(--cb-primary);
}

.portal-input-group .input-group-text + .form-control {
    border-left: none;
}

.portal-input-group .form-control::placeholder {
    color: var(--cb-text-muted);
    opacity: 0.5;
}

.portal-toggle-pw {
    background: var(--cb-glass-bg);
    border: 1px solid var(--cb-glass-border);
    border-left: none;
    color: var(--cb-text-muted);
}

.portal-toggle-pw:hover {
    color: var(--cb-primary);
    background: var(--cb-glass-bg);
    border-color: var(--cb-glass-border);
}

.portal-input-group .form-label {
    color: var(--cb-text);
}

/* Submit button */
.portal-btn-submit {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    border-radius: 10px;
}

/* Magic link popis */
.portal-magic-desc {
    font-size: 0.9rem;
    color: var(--cb-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Auth footer */
.portal-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cb-glass-border);
}

.portal-auth-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--cb-text-muted);
}

.portal-auth-footer a {
    color: var(--cb-primary);
    text-decoration: none;
    font-weight: 500;
}

.portal-auth-footer a:hover {
    text-decoration: underline;
}

/* Cookie consent */
.portal-cookie-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    animation: cookieFadeIn 0.3s ease;
}

@keyframes cookieFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.portal-cookie-overlay.portal-cookie-hide {
    animation: cookieFadeOut 0.35s ease forwards;
}

@keyframes cookieFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.portal-cookie-box {
    background: var(--cb-bg-alt, #fff);
    border: 1px solid var(--cb-glass-border);
    border-radius: 20px;
    padding: 32px 28px 24px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.portal-cookie-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.portal-cookie-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cb-text);
    margin-bottom: 8px;
}

.portal-cookie-text {
    font-size: 0.82rem;
    color: var(--cb-text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.portal-cookie-text a {
    color: var(--cb-primary);
    text-decoration: underline;
}

.portal-cookie-accept {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: var(--cb-primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.portal-cookie-accept:hover {
    background: var(--cb-primary-hover, #2196f3);
    transform: translateY(-1px);
}

.portal-cookie-accept:active {
    transform: translateY(0);
}

.portal-cookie-decline {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    border: none;
    background: none;
    color: var(--cb-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.15s ease;
}

.portal-cookie-decline:hover {
    color: var(--cb-text);
}

.portal-cookie-box-thanks {
    animation: cookiePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cookiePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.portal-cookie-thanks {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.portal-cookie-thanks-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    animation: cookieCheckPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cookieCheckPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.portal-cookie-thanks-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cb-text);
}

/* Portál tlačítko v navbar */
/* Nav icon buttons (EN, portál, theme) */
.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-icon-btn .fi {
    font-size: 1.15rem;
}

.nav-icon-btn.portal-nav-btn {
    color: var(--cb-primary);
}

.nav-icon-btn.portal-nav-btn:hover {
    background: rgba(54, 168, 255, 0.15);
    color: var(--cb-primary-light);
}

/* Nav phone button */
.nav-phone-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: var(--cb-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-phone-btn:hover {
    background: var(--cb-primary-dark);
    color: #fff;
}

.nav-phone-btn i {
    font-size: 0.75rem;
}

.portal-nav-mobile {
    color: var(--cb-primary) !important;
    font-weight: 500;
}

/* Dashboard */
.portal-dashboard-page {
    min-height: 100vh;
    padding-top: 80px;
    background: var(--cb-bg);
}

@media (max-width: 767.98px) {
    .portal-dashboard-page {
        padding-top: 70px;
    }
}

.portal-dashboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cb-text);
}

.portal-welcome {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--cb-glass-border);
}

.portal-welcome-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.portal-welcome-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .portal-welcome-row {
        flex-direction: column;
        align-items: stretch;
    }
    .portal-welcome-actions {
        justify-content: space-between;
        margin-top: 4px;
    }
    .portal-welcome-actions .portal-dash-btn-profile {
        margin-left: auto;
    }
    .portal-dashboard-title {
        font-size: 1.4rem;
    }
}

/* Dashboard buttons */
.portal-dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.portal-dash-btn-primary {
    background: var(--cb-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(54, 168, 255, 0.25);
}

.portal-dash-btn-primary:hover {
    background: #2590e0;
    color: #fff;
    box-shadow: 0 4px 14px rgba(54, 168, 255, 0.35);
    transform: translateY(-1px);
}

.portal-dash-btn-primary i {
    font-size: 1rem;
    font-weight: 700;
}

.portal-dash-btn-logout {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    background: rgba(0,0,0,0.03);
    color: var(--cb-text-muted);
    border: 1px solid var(--cb-glass-border);
}

.portal-dash-btn-logout:hover {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

.portal-dash-btn-logout i {
    font-size: 0.95rem;
}

.portal-dash-btn-profile {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--cb-glass-border);
    color: var(--cb-text-muted);
}

.portal-dash-btn-profile:hover {
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
}

.portal-dash-btn-profile i {
    font-size: 0.95rem;
}

/* Portal features strip */
.portal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

@media (max-width: 575.98px) {
    .portal-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        background: var(--cb-glass-bg);
        border: 1px solid var(--cb-glass-border);
        border-radius: 10px;
        padding: 10px;
    }
}

.portal-feature {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: var(--cb-text-muted);
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .portal-feature {
        font-size: 0.75rem;
        white-space: normal;
        gap: 4px;
    }
}

.portal-feature > i {
    font-size: 0.82rem;
    color: var(--cb-primary);
    opacity: 0.65;
}

.portal-feature-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: none;
    color: var(--cb-text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.portal-feature-help:hover,
.portal-feature-help.active {
    opacity: 1;
    color: var(--cb-primary);
}

/* Tooltip bubble */
.portal-feature-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 280px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--cb-text-secondary);
    white-space: normal;
    z-index: 100;
    opacity: 0;
    transform: translateY(-4px);
    animation: featureTooltipIn 0.15s ease forwards;
}

.portal-feature-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    transform: rotate(45deg);
}

@keyframes featureTooltipIn {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
    .portal-feature-tooltip {
        left: -20px;
        width: 250px;
    }
}

/* Vehicle cards */
.portal-vehicle-card {
    padding: 0 !important;
    overflow: hidden;
    position: relative;
}

.portal-vehicle-accent {
    height: 4px;
    width: 100%;
    border-radius: 12px 12px 0 0;
}

.portal-vehicle-card-body {
    padding: 1.25rem;
}

.portal-vehicle-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.portal-vehicle-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.portal-vehicle-header h5 {
    color: var(--cb-text);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.portal-vehicle-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.portal-vehicle-plate {
    display: inline-block;
    padding: 1px 8px;
    background: rgba(54, 168, 255, 0.1);
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cb-primary);
    letter-spacing: 0.5px;
}

.portal-vehicle-year {
    font-size: 0.78rem;
    color: var(--cb-text-muted);
    font-weight: 500;
}

.portal-vehicle-icon-wrap {
    position: relative;
    flex-shrink: 0;
}

.portal-vehicle-status-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--cb-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Vehicle avatar picker */
.portal-vav-option {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px solid var(--cb-glass-border);
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.portal-vav-option:hover {
    border-color: var(--cb-primary);
    background: rgba(54, 168, 255, 0.05);
}

.portal-vav-option.active {
    border-color: var(--cb-primary);
    background: rgba(54, 168, 255, 0.1);
    transform: scale(1.1);
}

.portal-vehicle-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--cb-glass-border);
    flex-shrink: 0;
}

.portal-vehicle-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portal-vehicle-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-top: 1px solid var(--cb-glass-border);
}

.portal-vehicle-detail .label {
    font-size: 0.85rem;
    color: var(--cb-text-muted);
    font-weight: 500;
}

.portal-vehicle-detail .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cb-text);
}

/* Form labels */
.portal-auth-page .form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cb-text);
    margin-bottom: 0.375rem;
}

.portal-auth-page .form-check-label {
    color: var(--cb-text-muted);
}

.portal-auth-page .form-check-label a {
    color: var(--cb-primary);
    text-decoration: none;
}

.portal-auth-page .form-check-label a:hover {
    text-decoration: underline;
}

.portal-auth-page .form-check-input {
    background-color: var(--cb-glass-bg);
    border-color: var(--cb-glass-border);
}

.portal-auth-page .form-check-input:checked {
    background-color: var(--cb-primary);
    border-color: var(--cb-primary);
}

/* Alerts */
.portal-auth-page .alert,
.portal-dashboard-page .alert {
    border-radius: 10px;
    font-size: 0.9rem;
}

/* Autocomplete dropdown */
.portal-autocomplete {
    position: relative;
}

.portal-autocomplete-arrow {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.portal-autocomplete-dropdown.open ~ .portal-input-group .portal-autocomplete-arrow i {
    transform: rotate(180deg);
}

/* Inline autocomplete (drawer) — no input-group, arrow floats inside */
.portal-ac-inline .form-control {
    padding-right: 56px;
}

.portal-ac-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(108, 117, 125, 0.08);
    color: var(--cb-text-muted);
    font-size: 0.65rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.2s ease;
}

.portal-ac-arrow:hover {
    background: rgba(54, 168, 255, 0.12);
    color: var(--cb-primary);
}

.portal-ac-inline .portal-autocomplete-dropdown.open ~ .portal-ac-arrow i {
    transform: rotate(180deg);
}

.portal-ac-inline .portal-autocomplete-clear {
    right: 34px;
}

/* Custom select wrapper — consistent arrow with autocomplete */
.portal-select-wrap {
    position: relative;
}

.portal-select-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px !important;
    cursor: pointer;
}

.portal-select-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(108, 117, 125, 0.08);
    color: var(--cb-text-muted);
    font-size: 0.65rem;
    pointer-events: none;
}

/* Clear button */
.portal-autocomplete-clear {
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: var(--cb-glass-border);
    color: var(--cb-text-muted);
    font-size: 0.65rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    padding: 0;
    line-height: 1;
}

.portal-autocomplete-clear:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.portal-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1060;
    display: none;
    max-height: 240px;
    overflow-y: auto;
    margin-top: 4px;
    background: var(--cb-bg-alt);
    border: 1px solid var(--cb-glass-border);
    border-radius: 10px;
    box-shadow: var(--cb-shadow-strong);
    backdrop-filter: blur(20px);
    padding: 4px;
}

.portal-autocomplete-dropdown.open {
    display: block;
    animation: portalDropdownIn 0.15s ease;
}

@keyframes portalDropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.portal-ac-item {
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--cb-text);
    transition: background 0.1s ease;
}

.portal-ac-item:hover,
.portal-ac-item.highlighted {
    background: rgba(54, 168, 255, 0.1);
    color: var(--cb-primary);
}

.portal-ac-item mark {
    background: rgba(54, 168, 255, 0.2);
    color: var(--cb-primary);
    border-radius: 2px;
    padding: 0 1px;
}

.portal-ac-empty {
    padding: 12px 14px;
    font-size: 0.85rem;
    color: var(--cb-text-muted);
    text-align: center;
}

/* Scrollbar pro dropdown */
.portal-autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.portal-autocomplete-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.portal-autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: rgba(54, 168, 255, 0.2);
    border-radius: 3px;
}

.portal-autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(54, 168, 255, 0.4);
}

/* Back link */
.portal-back-link {
    color: var(--cb-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.portal-back-link:hover {
    color: var(--cb-primary);
}

/* Clickable vehicle cards */
.portal-vehicle-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.portal-dashboard-page .glass-card:hover,
.portal-vehicle-clickable:hover {
    transform: none;
    border-color: var(--cb-card-hover-border);
}

.portal-vehicle-footer {
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--cb-glass-border);
    text-align: right;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--cb-primary);
}

/* Vehicle card meta row (counts + cost) */
.portal-vehicle-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--cb-glass-border);
    font-size: 0.78rem;
    color: var(--cb-text-muted);
}

.portal-vehicle-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.portal-vehicle-meta-item i {
    font-size: 0.65rem;
    opacity: 0.6;
}

.portal-vehicle-meta-text {
    font-size: 0.75rem;
    color: var(--cb-text-muted);
}

/* Dashboard stats row */
.portal-dash-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.portal-dash-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--cb-glass-bg);
    backdrop-filter: blur(var(--cb-glass-blur));
    border: 1px solid var(--cb-glass-border);
    border-radius: 12px;
    flex: 1;
    min-width: 140px;
}

.portal-dash-stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(54, 168, 255, 0.1);
    border-radius: 10px;
    font-size: 1.1rem;
    color: var(--cb-primary);
}

.portal-dash-stat-alert .portal-dash-stat-icon {
    background: rgba(255, 193, 7, 0.12);
    color: #b8860b;
}

[data-theme="dark"] .portal-dash-stat-alert .portal-dash-stat-icon {
    color: #ffc107;
}

.portal-dash-stat-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cb-text);
    line-height: 1.2;
}

.portal-dash-stat-label {
    font-size: 0.75rem;
    color: var(--cb-text-muted);
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .portal-dash-stats {
        gap: 0;
        background: var(--cb-glass-bg);
        border: 1px solid var(--cb-glass-border);
        border-radius: 12px;
        overflow: hidden;
        flex-wrap: nowrap;
    }
    .portal-dash-stat {
        padding: 10px 8px;
        min-width: 0;
        flex: 1;
        border: none;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    .portal-dash-stat:not(:last-child) {
        border-right: 1px solid var(--cb-glass-border);
    }
    .portal-dash-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        margin: 0 auto;
    }
    .portal-dash-stat-val {
        font-size: 1rem;
    }
    .portal-dash-stat-label {
        font-size: 0.68rem;
    }
}

/* Drag & drop handle */
.portal-drag-handle {
    position: absolute;
    top: 8px;
    right: 10px;
    cursor: grab;
    color: var(--cb-text-muted);
    opacity: 0;
    font-size: 1.1rem;
    padding: 4px;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.portal-vehicle-card {
    position: relative;
}

.portal-vehicle-card:hover .portal-drag-handle {
    opacity: 0.4;
}

.portal-drag-handle:hover {
    opacity: 0.8 !important;
}

.portal-drag-handle:active {
    cursor: grabbing;
}

.portal-drag-ghost {
    opacity: 0.35;
}

.portal-drag-chosen > a > .portal-vehicle-card {
    box-shadow: 0 8px 30px rgba(54, 168, 255, 0.2);
    border-color: var(--cb-primary) !important;
}

.portal-drag-active {
    cursor: grabbing !important;
}

/* Alert cards (dashboard warnings) */
.portal-alert-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-alert-card:hover {
    transform: translateX(4px);
}

.portal-alert-danger {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.portal-alert-warning {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.25);
    color: #b8860b;
}

[data-theme="dark"] .portal-alert-warning {
    color: #ffc107;
}

/* Vehicle detail page */
/* Vehicle detail header */
.portal-vdetail-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.portal-vdetail-icon-wrap {
    position: relative;
    flex-shrink: 0;
}

.portal-vdetail-info {
    flex: 1;
    min-width: 0;
}

.portal-vdetail-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cb-text);
    margin: 0;
    line-height: 1.3;
}

.portal-vdetail-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.portal-vdetail-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    align-self: flex-start;
}

@media (max-width: 575.98px) {
    .portal-vdetail-name {
        font-size: 1.15rem;
    }
    .portal-vdetail-actions {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 767.98px) {
    .portal-dashboard-page [data-vehicle-id] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .portal-vehicle-card-body {
        padding: 1rem;
    }
}

.portal-vehicle-icon-lg {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(54, 168, 255, 0.1);
    border-radius: 14px;
    font-size: 1.5rem;
    color: var(--cb-primary);
}

/* VIN copy button */
.portal-vin-copy {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    padding: 2px 6px;
    margin-left: -6px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--cb-text-muted);
    white-space: nowrap;
    font-size: min(0.8rem, 3.2vw);
    letter-spacing: 0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.portal-vin-copy:hover {
    background: rgba(54, 168, 255, 0.08);
    color: var(--cb-primary);
}

.portal-vin-copy-icon {
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.portal-vin-copy:hover .portal-vin-copy-icon {
    opacity: 0.7;
}

.portal-vin-copy.copied {
    color: #198754;
}

.portal-copy-toast {
    position: absolute;
    left: 50%;
    top: -28px;
    transform: translateX(-50%) translateY(4px);
    background: #198754;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.portal-copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.portal-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cb-text);
}

.portal-section-title i {
    color: var(--cb-primary);
}

/* Term rows */
.portal-term-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cb-glass-border);
}

.portal-term-row:last-child {
    border-bottom: none;
}

.portal-term-label {
    font-size: 0.9rem;
    color: var(--cb-text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-term-label i {
    color: var(--cb-primary);
}

.portal-term-value {
    text-align: right;
}

.portal-term-ok {
    font-weight: 600;
    color: #198754;
}

.portal-term-warning {
    font-weight: 600;
    color: #b8860b;
}

[data-theme="dark"] .portal-term-warning {
    color: #ffc107;
}

.portal-term-danger {
    font-weight: 600;
    color: #dc3545;
}

/* ============================================
   PORTAL - Timeline (vehicle history)
   ============================================ */
.portal-timeline {
    position: relative;
    padding-left: 28px;
}

.portal-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--cb-glass-border);
}

.portal-timeline-year {
    position: relative;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cb-text);
    background: var(--cb-bg);
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    border: 1px solid var(--cb-glass-border);
    margin-bottom: 0.75rem;
    margin-left: -8px;
    z-index: 1;
}

.portal-timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
}

.portal-timeline-item:last-child {
    padding-bottom: 0;
}

.portal-timeline-dot {
    position: absolute;
    left: -28px;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    z-index: 1;
}

.portal-timeline-service .portal-timeline-dot {
    background: var(--cb-primary);
    color: #fff;
}

.portal-timeline-diy .portal-timeline-dot {
    background: #198754;
    color: #fff;
}

.portal-timeline-milestone .portal-timeline-dot {
    background: var(--cb-bg);
    border: 2px solid var(--cb-glass-border);
    color: var(--cb-text-muted);
}

.portal-timeline-content {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: var(--cb-bg);
    border: 1px solid var(--cb-glass-border);
}

.portal-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.portal-timeline-header strong {
    font-size: 0.88rem;
    color: var(--cb-text);
}

.portal-timeline-date {
    font-size: 0.78rem;
    color: var(--cb-text-muted);
    white-space: nowrap;
}

.portal-timeline-desc {
    font-size: 0.82rem;
    color: var(--cb-text-muted);
    margin: 0.25rem 0 0;
    line-height: 1.5;
}

.portal-timeline-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 575.98px) {
    .portal-tl-attachments-inline {
        margin-left: 0 !important;
        width: 100%;
        margin-top: 4px;
    }
    .portal-tl-attachment-thumb {
        width: 44px;
        height: 44px;
        border-radius: 6px;
    }
}

.portal-timeline-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.portal-timeline-badge-service {
    background: rgba(54, 168, 255, 0.1);
    color: var(--cb-primary);
}

.portal-timeline-badge-diy {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.portal-timeline-badge-milestone {
    background: rgba(108, 117, 125, 0.1);
    color: var(--cb-text-muted);
}

/* Timeline cost summary */
.portal-cost-summary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.portal-cost-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

.portal-cost-pill i {
    font-size: 0.7rem;
}

.portal-cost-pill-total {
    background: rgba(54, 168, 255, 0.1);
    color: var(--cb-primary);
    font-weight: 600;
}

.portal-cost-pill-material {
    background: rgba(108, 117, 125, 0.08);
    color: var(--cb-text-muted);
}

.portal-cost-pill-labor {
    background: rgba(108, 117, 125, 0.08);
    color: var(--cb-text-muted);
}

.portal-cost-divider {
    width: 1px;
    height: 18px;
    background: var(--cb-glass-border);
}

/* Timeline action icons (edit/delete) */
.portal-tl-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: none;
    color: var(--cb-text-muted);
    font-size: 0.72rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0;
}

.portal-timeline-content:hover .portal-tl-action {
    opacity: 0.6;
}

.portal-tl-action:hover {
    opacity: 1 !important;
    background: rgba(54, 168, 255, 0.1);
    color: var(--cb-primary);
}

.portal-tl-action-del:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Timeline show more */
.portal-tl-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    border: 1px dashed var(--cb-glass-border);
    border-radius: 10px;
    background: none;
    color: var(--cb-text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.portal-tl-show-more:hover {
    background: rgba(54, 168, 255, 0.05);
    color: var(--cb-primary);
    border-color: var(--cb-primary);
}

/* ===========================================
   PROFILE PAGE
   =========================================== */

/* Profile avatar large */
.portal-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

/* Avatar grid */
.portal-avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
}

.portal-avatar-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 4px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.portal-avatar-option:hover {
    background: rgba(54, 168, 255, 0.05);
}

.portal-avatar-option.active {
    border-color: var(--cb-primary);
    background: rgba(54, 168, 255, 0.06);
}

.portal-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.portal-avatar-label {
    font-size: 0.65rem;
    color: var(--cb-text-muted);
    font-weight: 500;
    text-align: center;
}

/* Notify days badge */
.portal-notify-days-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(54, 168, 255, 0.1);
    color: var(--cb-primary);
    font-weight: 600;
    font-size: 0.88rem;
    min-width: 70px;
    justify-content: center;
}

/* Theme options */
.portal-theme-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portal-theme-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 2px solid var(--cb-glass-border);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--cb-text);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.portal-theme-option:hover {
    background: rgba(54, 168, 255, 0.04);
}

.portal-theme-option.active {
    border-color: var(--cb-primary);
    background: rgba(54, 168, 255, 0.06);
    color: var(--cb-primary);
}

.portal-theme-option i {
    font-size: 1.1rem;
}

/* Danger button */
.portal-btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    cursor: pointer;
    transition: background 0.15s ease;
}

.portal-btn-danger:hover {
    background: #ef4444;
    color: #fff;
}

.portal-btn-danger:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.portal-btn-danger:disabled:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

/* Form range */
.portal-card .form-range::-webkit-slider-thumb {
    background: var(--cb-primary);
}

.portal-card .form-range::-webkit-slider-runnable-track {
    background: var(--cb-glass-border);
}

/* ===========================================
   THOUGHT BUBBLE (dashboard easter egg)
   =========================================== */
.portal-thought-bubble {
    position: absolute;
    top: -55px;
    left: 16px;
    background: var(--cb-bg);
    border: 1px solid var(--cb-glass-border);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 0.82rem;
    font-style: italic;
    color: var(--cb-text);
    max-width: 250px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
    opacity: 0;
    transform: translateY(8px) scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    line-height: 1.4;
}

.portal-thought-bubble.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Thought dots leading down to car icon */
.portal-thought-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 28px;
    width: 0;
    height: 0;
    display: flex;
    gap: 6px;
}

/* Three thought circles descending from bubble to car */
.portal-thought-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--cb-bg);
    border: 1px solid var(--cb-glass-border);
}

.portal-thought-dot:nth-child(2) {
    width: 10px;
    height: 10px;
    bottom: -16px;
    left: 22px;
}

.portal-thought-dot:nth-child(3) {
    width: 6px;
    height: 6px;
    bottom: -26px;
    left: 16px;
}

/* ===========================================
   SPEED EASTER EGG (200+ km/h)
   =========================================== */
.portal-speed-egg {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.portal-speed-egg.active {
    display: inline-flex;
    animation: speedDrive 0.6s ease-out;
}

@keyframes speedDrive {
    0% { opacity: 0; transform: translateX(-60px); }
    60% { transform: translateX(5px); }
    100% { opacity: 1; transform: translateX(0); }
}

.portal-speed-car {
    font-size: 1.1rem;
    position: relative;
    animation: speedShake 0.15s infinite alternate;
}

@keyframes speedShake {
    from { transform: translateY(-1px) rotate(-1deg); }
    to { transform: translateY(1px) rotate(1deg); }
}

.portal-speed-flames {
    position: absolute;
    left: -10px;
    top: 1px;
    font-size: 0.7rem;
    animation: flameFlicker 0.2s infinite alternate;
}

@keyframes flameFlicker {
    from { opacity: 0.7; transform: scale(0.9) translateX(2px); }
    to { opacity: 1; transform: scale(1.1) translateX(-1px); }
}

.portal-speed-bubble {
    background: var(--cb-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    position: relative;
    animation: bubblePop 0.4s ease 0.3s both;
}

.portal-speed-bubble::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--cb-primary);
}

@keyframes bubblePop {
    0% { opacity: 0; transform: scale(0.5); }
    70% { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* ===========================================
   RETIRED VEHICLES
   =========================================== */
.portal-retired-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--cb-text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px dashed var(--cb-glass-border);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.portal-retired-link:hover {
    color: var(--cb-text);
    border-color: var(--cb-text-muted);
    background: var(--cb-glass-bg);
}

.portal-retired-card {
    position: relative;
    background: var(--cb-glass-bg) !important;
    filter: saturate(0.3);
    transition: filter 0.3s ease;
}

.portal-retired-card:hover {
    filter: saturate(0.6);
}

.portal-retired-name {
    color: var(--cb-text-muted);
    font-size: 1.05rem;
}

.portal-retired-since {
    font-size: 0.78rem;
    color: var(--cb-text-muted);
    margin-bottom: 0;
    opacity: 0.7;
}

.portal-retired-restore {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.portal-retired-restore:hover {
    background: rgba(25, 135, 84, 0.2);
    border-color: #198754;
    color: #198754;
}

.portal-retired-scrap {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.15);
    border-radius: 8px;
    font-size: 0.8rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.portal-retired-scrap:hover {
    background: rgba(220, 53, 69, 0.18);
    border-color: #dc3545;
}

/* ===========================================
   RETIRE / SCRAP MODAL
   =========================================== */
.portal-retire-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.portal-retire-overlay.active {
    display: block;
    opacity: 1;
}

.portal-retire-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--cb-bg);
    border: 1px solid var(--cb-glass-border);
    border-radius: 18px;
    padding: 28px 24px;
    z-index: 1051;
    width: 90%;
    max-width: 420px;
    box-shadow: var(--cb-shadow-strong);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.portal-retire-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.portal-retire-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1.5px solid var(--cb-glass-border);
    border-radius: 12px;
    background: var(--cb-glass-bg);
    color: var(--cb-text);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.portal-retire-option:hover {
    transform: translateY(-1px);
}

.portal-retire-option-retire:hover {
    border-color: #198754;
    background: rgba(25, 135, 84, 0.06);
}

.portal-retire-option-scrap:hover {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.06);
}

.portal-retire-option-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.portal-retire-option strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.portal-retire-option p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--cb-text-muted);
    line-height: 1.3;
}

.portal-retire-cancel {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 8px;
    background: none;
    border: none;
    color: var(--cb-text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.15s ease;
}

.portal-retire-cancel:hover {
    color: var(--cb-text);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

.portal-scrap-warning {
    font-size: 0.78rem;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    line-height: 1.4;
}

/* ===========================================
   VIN LOOKUP
   =========================================== */
.portal-vin-lookup {
    padding: 0;
    overflow: hidden;
    border: 1px dashed var(--cb-glass-border);
    background: rgba(54, 168, 255, 0.02);
}

.portal-vin-lookup-header {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--cb-primary);
    border-bottom: 1px solid rgba(54, 168, 255, 0.1);
    background: rgba(54, 168, 255, 0.04);
}

.portal-vin-lookup-body {
    padding: 16px 20px;
}

.portal-vin-lookup .input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.portal-vin-lookup .form-control {
    border: 1px solid var(--cb-glass-border);
    padding: 10px 14px;
    font-size: 0.95rem;
    border-right: none;
}

.portal-vin-lookup .form-control:focus {
    border-color: var(--cb-primary);
    box-shadow: none;
}

.portal-vin-lookup .btn {
    border-radius: 0 10px 10px 0;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.portal-vin-hint {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--cb-text-muted);
    opacity: 0.7;
}

@media (max-width: 575.98px) {
    .portal-vin-lookup .input-group {
        flex-direction: column;
        box-shadow: none;
    }
    .portal-vin-lookup .form-control {
        border: 1px solid var(--cb-glass-border) !important;
        border-radius: 10px 10px 0 0 !important;
        text-align: center;
        padding: 12px 14px;
        font-size: 1rem;
        width: 100%;
    }
    .portal-vin-lookup .btn {
        border-radius: 0 0 10px 10px !important;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 11px 18px;
    }
}

.portal-vin-result {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
}

.portal-vin-result-success {
    background: rgba(25, 135, 84, 0.08);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.15);
}

.portal-vin-result-error {
    background: rgba(220, 53, 69, 0.06);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.12);
}

/* VIN filled field highlight */
.portal-vin-filled.portal-vin-highlight {
    animation: vinHighlight 2.5s ease;
}

@keyframes vinHighlight {
    0%   { box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.3); background: rgba(25, 135, 84, 0.05); }
    70%  { box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.3); background: rgba(25, 135, 84, 0.05); }
    100% { box-shadow: none; background: transparent; }
}

/* VIN field with inline button (drawer) */
.portal-vin-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.portal-vin-field-wrap input {
    padding-right: 100px;
}

.portal-vin-field-btn {
    position: absolute;
    right: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    background: var(--cb-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}

.portal-vin-field-btn:hover {
    background: #2590e0;
    transform: scale(1.02);
}

.portal-vin-field-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.portal-vin-field-btn .spinner-border {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

/* VIN Preview Modal */
.portal-vin-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1060;
    backdrop-filter: blur(2px);
}

.portal-vin-modal-backdrop.open { display: block; }

.portal-vin-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 480px;
    background: var(--cb-glass-bg);
    border: 1px solid var(--cb-glass-border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    z-index: 1061;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.portal-vin-modal.open {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.portal-vin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--cb-glass-border);
}

.portal-vin-modal-header h6 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
}

.portal-vin-modal-close {
    background: none;
    border: none;
    color: var(--cb-text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.portal-vin-modal-close:hover {
    background: rgba(0,0,0,0.05);
}

.portal-vin-modal-body {
    padding: 16px 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.portal-vin-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--cb-glass-border);
}

/* VIN Changes Table */
.portal-vin-changes-table {
    width: 100%;
    font-size: 0.82rem;
    border-collapse: separate;
    border-spacing: 0 4px;
}

.portal-vin-changes-table thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cb-text-muted);
    font-weight: 600;
    padding: 0 8px 6px;
}

.portal-vin-changes-table tbody tr {
    border-radius: 8px;
}

.portal-vin-row-changed {
    background: rgba(54, 168, 255, 0.06);
}

.portal-vin-row-same {
    opacity: 0.5;
}

.portal-vin-cell-label {
    padding: 8px;
    font-weight: 600;
    color: var(--cb-text-secondary);
    white-space: nowrap;
}

.portal-vin-cell-current {
    padding: 8px;
    color: var(--cb-text-muted);
}

.portal-vin-cell-arrow {
    padding: 4px;
    text-align: center;
    color: var(--cb-primary);
    font-size: 0.75rem;
}

.portal-vin-cell-new {
    padding: 8px;
    color: var(--cb-text-primary);
}

.portal-vin-cell-check {
    padding: 4px 8px;
    text-align: center;
}

.portal-vin-cell-check .form-check-input {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.portal-vin-no-changes {
    text-align: center;
    padding: 12px;
    font-size: 0.85rem;
    color: #198754;
}

/* Service timeline (legacy, keep for compat) */
.portal-service-timeline {
    position: relative;
    padding-left: 20px;
}

.portal-service-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--cb-glass-border);
}

.portal-service-item {
    position: relative;
    padding-bottom: 1.25rem;
}

.portal-service-item:last-child {
    padding-bottom: 0;
}

.portal-service-dot {
    position: absolute;
    left: -17px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cb-primary);
    border: 2px solid var(--cb-bg);
    box-shadow: 0 0 0 2px var(--cb-primary);
}

.portal-service-content strong {
    display: block;
    font-size: 0.95rem;
    color: var(--cb-text);
}

.portal-service-date {
    font-size: 0.8rem;
    color: var(--cb-text-muted);
}

.portal-service-desc {
    font-size: 0.85rem;
    color: var(--cb-text-muted);
    margin: 0.25rem 0 0;
    line-height: 1.5;
}

/* ============================================
   PORTAL - Edit sekce
   ============================================ */
.portal-edit-section {
    margin-bottom: 1.25rem;
}

.portal-edit-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--cb-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-edit-section-title i {
    color: var(--cb-primary);
}

.portal-edit-section-desc {
    font-size: 0.85rem;
    color: var(--cb-text-muted);
    margin-bottom: 1rem;
}

.portal-textarea {
    background: var(--cb-input-bg);
    border: 1px solid var(--cb-glass-border);
    color: var(--cb-text);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.portal-textarea:focus {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px rgba(54, 168, 255, 0.15);
    outline: none;
}

/* Select v portal-input-group */
.portal-input-group .form-select {
    background-color: var(--cb-input-bg);
    border: none;
    color: var(--cb-text);
    font-size: 0.95rem;
    box-shadow: none;
}

.portal-input-group .form-select:focus {
    box-shadow: none;
}

/* ============================================
   PORTAL - Notify toggle (iOS-style switch)
   ============================================ */
.portal-term-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.portal-term-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Toggle wrapper */
.portal-notify-toggle {
    position: relative;
    cursor: pointer;
    display: inline-block;
    user-select: none;
    margin: 0;
    flex-shrink: 0;
}

.portal-notify-toggle input[type="checkbox"] {
    display: none;
}

/* Track (pill) — OFF state: šedý */
.portal-notify-track {
    position: relative;
    display: block;
    width: 58px;
    height: 28px;
    border-radius: 14px;
    background: #b0b0b0;
    cursor: pointer;
    transition: background-color 0.4s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .portal-notify-track {
    background: #555;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Thumb (white circle via ::before) */
.portal-notify-track::before {
    content: "";
    position: absolute;
    left: 3px;
    bottom: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

/* Labels */
.portal-notify-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.portal-notify-on {
    left: 7px;
    color: #fff;
    opacity: 0;
}

.portal-notify-off {
    right: 6px;
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

/* Thumb element (keep for DOM but hide - using ::before instead) */
.portal-notify-thumb {
    display: none;
}

/* === Checked = ON (zelený) === */
.portal-notify-toggle input[type="checkbox"]:checked + .portal-notify-track {
    background: #198754;
}

[data-theme="dark"] .portal-notify-toggle input[type="checkbox"]:checked + .portal-notify-track {
    background: #20a86a;
}

.portal-notify-toggle input[type="checkbox"]:checked + .portal-notify-track::before {
    transform: translateX(30px);
}

.portal-notify-toggle input[type="checkbox"]:checked + .portal-notify-track .portal-notify-on {
    opacity: 1;
}

.portal-notify-toggle input[type="checkbox"]:checked + .portal-notify-track .portal-notify-off {
    opacity: 0;
}

/* Disabled — datum nevyplněno */
.portal-notify-toggle.disabled {
    cursor: not-allowed;
    opacity: 0.35;
    pointer-events: none;
}

/* Hover */
.portal-notify-toggle:hover .portal-notify-track::before {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 1px rgba(0, 0, 0, 0.15);
}

/* Active press — thumb stretches */
.portal-notify-toggle:active .portal-notify-track::before {
    width: 26px;
}

.portal-notify-toggle input[type="checkbox"]:checked + .portal-notify-track:active::before {
    transform: translateX(26px);
    width: 26px;
}

/* Vehicle action buttons (edit, delete) */
.portal-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.portal-action-edit {
    background: rgba(54, 168, 255, 0.1);
    color: var(--cb-primary);
}

.portal-action-edit:hover {
    background: var(--cb-primary);
    color: #fff;
}

.portal-action-delete {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.portal-action-delete:hover {
    background: #dc3545;
    color: #fff;
}

/* ============================================
   EDIT DRAWER — slide-in panel
   ============================================ */
.portal-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.portal-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.portal-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 480px;
    max-width: 100%;
    z-index: 1050;
    background: var(--cb-bg);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portal-drawer.open {
    transform: translateX(0);
}

.portal-drawer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--cb-glass-border);
    background: var(--cb-glass-bg);
    backdrop-filter: blur(var(--cb-glass-blur));
    flex-shrink: 0;
}

.portal-drawer-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(108, 117, 125, 0.08);
    border-radius: 10px;
    color: var(--cb-text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.portal-drawer-back:hover {
    background: rgba(108, 117, 125, 0.15);
}

.portal-drawer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cb-text);
    margin: 0;
}

.portal-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portal-drawer-section {
    background: var(--cb-glass-bg);
    border: 1px solid var(--cb-glass-border);
    border-radius: 12px;
    padding: 16px;
    overflow: visible;
}

.portal-drawer-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cb-text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.portal-drawer-section-title i {
    color: var(--cb-primary);
}

.portal-drawer-section .form-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--cb-text-muted);
    margin-bottom: 2px;
}

.portal-drawer-section .form-control-sm {
    background: var(--cb-bg);
    border-color: var(--cb-glass-border);
    color: var(--cb-text);
    font-size: 0.85rem;
}

.portal-drawer-section .form-select-sm {
    background-color: var(--cb-bg);
    border-color: var(--cb-glass-border);
    color: var(--cb-text);
    font-size: 0.85rem;
}

.portal-drawer-section .form-control-sm:focus,
.portal-drawer-section .form-select-sm:focus {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 2px rgba(54, 168, 255, 0.15);
}

.portal-drawer-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--cb-glass-border);
    background: var(--cb-glass-bg);
    backdrop-filter: blur(var(--cb-glass-blur));
    flex-shrink: 0;
}

/* Drawer field highlight animation */
.portal-drawer-highlight {
    border-color: var(--cb-primary) !important;
    box-shadow: 0 0 0 3px rgba(54, 168, 255, 0.2) !important;
    animation: drawerHighlight 2.5s ease;
}

@keyframes drawerHighlight {
    0%   { box-shadow: 0 0 0 3px rgba(54, 168, 255, 0.35); }
    70%  { box-shadow: 0 0 0 3px rgba(54, 168, 255, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(54, 168, 255, 0); }
}

.portal-drawer-error {
    display: none;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    color: #dc3545;
    font-size: 0.82rem;
    font-weight: 500;
}

/* Toggle for drawer — scale to match form-control-sm (31px) */
.portal-notify-toggle-sm {
    display: inline-flex;
    align-items: center;
    height: 31px;
}

.portal-notify-toggle-sm .portal-notify-track {
    transform: scale(0.85);
    transform-origin: right center;
}

@media (max-width: 575.98px) {
    .portal-drawer {
        width: 100%;
    }
}

/* Vehicle status dot (next to title) */
.portal-status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.portal-status-ok {
    background: #198754;
    box-shadow: 0 0 6px rgba(25, 135, 84, 0.5);
}

.portal-status-warning {
    background: #e6a817;
    box-shadow: 0 0 6px rgba(230, 168, 23, 0.5);
    animation: pulse-warning 2s ease-in-out infinite;
}

.portal-status-danger {
    background: #dc3545;
    box-shadow: 0 0 6px rgba(220, 53, 69, 0.5);
    animation: pulse-danger 1.5s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { box-shadow: 0 0 4px rgba(230, 168, 23, 0.4); }
    50% { box-shadow: 0 0 10px rgba(230, 168, 23, 0.7); }
}

@keyframes pulse-danger {
    0%, 100% { box-shadow: 0 0 4px rgba(220, 53, 69, 0.4); }
    50% { box-shadow: 0 0 12px rgba(220, 53, 69, 0.8); }
}

/* Vehicle status bar (below header card) */
.portal-status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.portal-status-bar:last-of-type {
    margin-bottom: 1.25rem;
}

.portal-status-bar i {
    font-size: 1rem;
    flex-shrink: 0;
}

.portal-status-bar-ok {
    background: rgba(25, 135, 84, 0.08);
    border: 1px solid rgba(25, 135, 84, 0.2);
    color: #198754;
}

.portal-status-bar-warning {
    background: rgba(230, 168, 23, 0.08);
    border: 1px solid rgba(230, 168, 23, 0.25);
    color: #b8860b;
}

[data-theme="dark"] .portal-status-bar-warning {
    color: #ffc107;
}

.portal-status-bar-danger {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.portal-status-bar-none {
    background: rgba(108, 117, 125, 0.06);
    border: 1px solid rgba(108, 117, 125, 0.15);
    color: var(--cb-text-muted);
}

.portal-status-bar-none a {
    color: var(--cb-primary);
    font-weight: 600;
    text-decoration: none;
}

.portal-status-bar-none a:hover {
    text-decoration: underline;
}

.portal-status-none {
    background: #adb5bd;
    box-shadow: 0 0 4px rgba(173, 181, 189, 0.4);
}

/* Tech details dropdown (vehicle detail) */
.portal-tech-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--cb-glass-border);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cb-text-muted);
    user-select: none;
    transition: color 0.2s;
}

.portal-tech-toggle:hover {
    color: var(--cb-primary);
}

.portal-tech-arrow {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.portal-tech-toggle.open .portal-tech-arrow {
    transform: rotate(180deg);
}

.portal-tech-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.portal-tech-details.open {
    max-height: 200px;
}

.portal-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 0.5rem;
}

.portal-tech-item {
    flex: 0 0 50%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.8rem;
}

.portal-tech-item:nth-child(odd) {
    padding-right: 1rem;
}

.portal-tech-item:nth-child(even) {
    padding-left: 1rem;
}

.portal-tech-label {
    color: var(--cb-text-muted);
}

.portal-tech-label i {
    color: var(--cb-primary);
    font-size: 0.75rem;
    margin-right: 4px;
}

.portal-tech-val {
    font-weight: 500;
    color: var(--cb-text);
}

@media (max-width: 576px) {
    .portal-tech-item {
        flex: 0 0 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Term "Nastavit" link */
.portal-term-set-link {
    color: var(--cb-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.portal-term-set-link:hover {
    color: var(--cb-primary-dark);
    text-decoration: underline;
}

/* Date clear button */
.portal-date-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    color: #999;
    border: none;
    background: transparent;
    font-size: 0.75rem;
    transition: color 0.2s;
    cursor: pointer;
}

.portal-date-clear:hover {
    color: #dc3545;
}

/* Form labels on dashboard pages */
.portal-dashboard-page .form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cb-text);
    margin-bottom: 0.375rem;
}

/* Edit vehicle sections */
.portal-edit-section {
    margin-bottom: 1.25rem;
}

.portal-edit-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cb-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portal-edit-section-title i {
    color: var(--cb-primary);
    font-size: 1.2rem;
}

.portal-edit-section-desc {
    font-size: 0.85rem;
    color: var(--cb-text-muted);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.portal-textarea {
    background: var(--cb-glass-bg);
    border: 1px solid var(--cb-glass-border);
    color: var(--cb-text);
    border-radius: 0.5rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.portal-textarea:focus {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px rgba(54, 168, 255, 0.15);
    background: var(--cb-glass-bg);
    color: var(--cb-text);
}

.portal-input-group .form-select {
    background-color: var(--cb-bg-alt);
    border: none;
    color: var(--cb-text);
}

.portal-input-group .form-select:focus {
    box-shadow: none;
}

/* Responsive */
@media (max-width: 991.98px) {
    .portal-auth-page {
        padding-top: 70px;
    }

    .portal-auth-card {
        padding: 1.5rem !important;
    }

    .portal-info-title {
        font-size: 2rem;
    }

    .portal-vehicle-icon-lg {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}

/* ---- Profile: Avatar picker ---- */
.portal-avatar-pick {
    cursor: pointer;
}

.portal-avatar-pick:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.portal-avatar-pick.active {
    transform: scale(1.2) !important;
    box-shadow: 0 0 0 3px var(--cb-primary), 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Avatar success animation */
.avatar-success-check {
    display: inline-block;
}

.avatar-check-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: avatarCircleDraw 0.6s ease forwards;
}

.avatar-check-mark {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: avatarCheckDraw 0.4s 0.4s ease forwards;
}

@keyframes avatarCircleDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes avatarCheckDraw {
    to { stroke-dashoffset: 0; }
}

/* Profile auto-save check animation */
@keyframes profileCheckCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes profileCheckMark {
    to { stroke-dashoffset: 0; }
}

/* ---- Profile: Theme radio visual feedback ---- */
.portal-theme-radio:checked + div {
    border-color: var(--cb-primary) !important;
    background: rgba(54, 168, 255, 0.08) !important;
}

.portal-theme-radio + div:hover {
    border-color: var(--cb-primary) !important;
}

/* ============================================
   VEHICLE TYPE SELECTOR
   ============================================ */
.portal-vehicle-type-selector {
    display: flex;
    gap: 8px;
}

.portal-vtype-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px solid var(--cb-glass-border);
    background: var(--cb-glass-bg);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--cb-text-muted);
    transition: all 0.2s ease;
    user-select: none;
}

.portal-vtype-option:hover {
    border-color: var(--cb-primary);
    color: var(--cb-text);
}

.portal-vtype-option.active {
    border-color: var(--cb-primary);
    background: rgba(54, 168, 255, 0.1);
    color: var(--cb-primary);
    font-weight: 600;
}

.portal-vtype-option i {
    font-size: 1.1rem;
}

/* ============================================
   UPLOAD AREA
   ============================================ */
.portal-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px;
    border: 2px dashed var(--cb-glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    text-align: center;
}

.portal-upload-area:hover,
.portal-upload-area.dragover {
    border-color: var(--cb-primary);
    background: rgba(54, 168, 255, 0.04);
}

.portal-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--cb-glass-bg);
    border: 1px solid var(--cb-glass-border);
    font-size: 0.78rem;
    margin-bottom: 4px;
}

.portal-file-item i {
    color: var(--cb-primary);
    font-size: 0.9rem;
}

.portal-file-item .file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--cb-text);
}

.portal-file-item .file-size {
    color: var(--cb-text-muted);
    font-size: 0.7rem;
    white-space: nowrap;
}

.portal-file-item .file-remove {
    background: none;
    border: none;
    color: var(--cb-text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1;
    transition: color 0.15s ease;
}

.portal-file-item .file-remove:hover {
    color: #ef4444;
}

/* Existing attachments in edit mode */
.portal-attachment-thumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--cb-glass-bg);
    border: 1px solid var(--cb-glass-border);
    font-size: 0.75rem;
    margin: 0 4px 4px 0;
    text-decoration: none;
    color: var(--cb-text);
    transition: border-color 0.15s ease;
}

.portal-attachment-thumb:hover {
    border-color: var(--cb-primary);
    color: var(--cb-primary);
}

.portal-attachment-thumb i {
    font-size: 0.85rem;
}

/* Timeline attachment row */
/* Přílohy v timeline — inline v meta řádku, vpravo */
.portal-tl-attachments-inline {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
}

/* Thumbnail příloh */
.portal-tl-attachment-thumb {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--cb-glass-border);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-tl-attachment-thumb:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.portal-tl-attachment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-tl-pdf-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.06);
    color: #ef4444;
}

.portal-tl-pdf-thumb i {
    font-size: 1.2rem;
}

.portal-tl-pdf-thumb span {
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 1px;
}


/* Starý textový styl (fallback) */
.portal-tl-attachment {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(54, 168, 255, 0.06);
    font-size: 0.7rem;
    text-decoration: none;
    color: var(--cb-primary);
    transition: background 0.15s ease;
}

.portal-tl-attachment:hover {
    background: rgba(54, 168, 255, 0.12);
    color: var(--cb-primary);
}

.portal-tl-attachment i {
    font-size: 0.65rem;
}

/* Drawer přílohy */
.portal-attachment-thumb {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(54, 168, 255, 0.06);
    font-size: 0.75rem;
    text-decoration: none;
    color: var(--cb-primary);
    transition: background 0.15s ease;
}

.portal-attachment-thumb:hover {
    background: rgba(54, 168, 255, 0.12);
    color: var(--cb-primary);
}
