/* ===== AdBlock varování - plné překrytí obrazovky ===== */
#adblock-warning {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.85) !important;
    box-sizing: border-box !important;
}

/* ===== Notice Banner (Bulldogo style) ===== */
.notice-banner {
  position: relative;
  width: 100%;
  border-radius: 16px;
  padding: 16px 44px 16px 20px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  overflow: visible;
  color: #0b0b0b;
  background: linear-gradient(90deg, #FFA62B 0%, #FCD34D 100%); /* default info (oranžovo-žlutá) */
}
.notice-banner .notice-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.notice-banner .notice-title {
  font-weight: 800;
  font-size: clamp(16px, 1.9vw, 22px);
  line-height: 1.2;
  color: #0b0b0b;
}
.notice-banner .notice-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0b0b0b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.notice-banner .notice-close:hover { opacity: 0.8; }
.notice-banner .notice-hero {
  position: absolute;
  top: -40px;
  left: 12px;
  pointer-events: none;
}
.notice-banner .notice-hero img {
  width: clamp(60px, 10vw, 92px);
  height: auto;
  display: block;
}
.notice-banner.closing {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}

/* Varianty */
.notice-success {
  background: linear-gradient(90deg, #FFA62B 0%, #22C55E 100%); /* oranžovo-zelená */
}
.notice-error {
  background: linear-gradient(90deg, #FFA62B 0%, #EF4444 100%); /* oranžovo-červená */
}
.notice-info {
  background: linear-gradient(90deg, #FFA62B 0%, #FCD34D 100%); /* oranžovo-žlutá */
}
/* ===== Instagram-like chat (desktop layout, responsive) ===== */
.ig-chat { display: grid; grid-template-columns: 320px 1fr 320px; height: calc(100vh - 40px); background: #fff; border-radius: 16px; box-shadow: 0 20px 40px rgba(17,24,39,0.08); overflow: hidden; }
.ig-sidebar { border-right: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.ig-sidebar-right { border-right: 0; border-left: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.ig-sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; flex-shrink: 0; background: white; position: sticky; top: 0; z-index: 10; }
.ig-icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff8eb; color: #f77c00; border: 1px solid #ffe0b2; }
.ig-icon-btn:hover { background: #fff3de; }
.ig-sidebar-search { display: flex; align-items: center; gap: 8px; padding: 8px 14px; flex-shrink: 0; background: white; position: sticky; top: 0; z-index: 9; border-bottom: 1px solid rgba(0,0,0,0.06); }
.ig-sidebar-search input { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; outline: none; }
.ig-conversations { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 4px; min-height: 0; }
.ig-conv { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; padding: 10px 12px; align-items: center; border-radius: 12px; cursor: pointer; }
.ig-conv:hover { background: #fff8eb; }
.ig-conv.active { background: #fff1db; }
.ig-conv .ig-avatar { width: 44px; height: 44px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; color: #6b7280; }
.ig-conv .ig-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* Pravý panel – karty inzerátů v úzkém sloupci */
.ig-sidebar-right .ig-conversations { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 4px; min-height: 0; }
.ig-sidebar-right .ad-card { margin: 10px; }
.ig-sidebar-right .ad-card .ad-thumb img { height: 140px; object-fit: cover; }
.ig-sidebar-right .ad-card .ad-actions { margin-top: 10px; }
.ig-conv .ig-title { font-weight: 700; color: #111827; }
.ig-conv .ig-last { font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-conv .ig-time { font-size: 12px; color: #9ca3af; }

.ig-main { display: flex; flex-direction: column; min-width: 0; height: 100%; position: relative; overflow: hidden; }
.ig-main-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(0,0,0,0.06); flex-shrink: 0; background: white; position: sticky; top: 0; z-index: 10; }
.ig-back-btn { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: #fff8eb; color: #f77c00; border: 1px solid #ffe0b2; }
.ig-user { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ig-user:hover { opacity: 0.92; }
.ig-user:focus { outline: none; }
.ig-user:focus-visible { outline: 2px solid rgba(247, 124, 0, 0.35); outline-offset: 3px; border-radius: 12px; }
.ig-user .ig-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff8eb; display: flex; align-items: center; justify-content: center; color: #f59e0b; border: 1px solid #ffe0b2; overflow: hidden; }
.ig-user .ig-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.ig-user-name { font-weight: 800; color: #111827; }
.ig-user-status { font-size: 12px; color: #6b7280; }
.ig-actions { display: flex; align-items: center; gap: 8px; }

.ig-subject { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; margin: 10px auto 0 16px; border: 1px solid rgba(0,0,0,0.08); border-radius: 999px; background: #ffffff; box-shadow: 0 6px 12px rgba(17,24,39,0.06); color: #111827; }
.ig-subject i { color: #f77c00; }

.ig-messages { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 16px; background: radial-gradient(900px 360px at 80% -10%, rgba(253,240,2,0.10), rgba(255,255,255,0) 60%); min-height: 0; }
.ig-empty { margin: 24px; color: #6b7280; }
.ig-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; text-align: center; padding: 40px 20px; }
.ig-empty-icon { margin-bottom: 16px; }
.ig-row { display: grid; grid-template-columns: 40px 1fr; gap: 10px; margin-bottom: 10px; }
.ig-row.mine { grid-template-columns: 1fr 40px; }
.ig-row .ig-bubble { justify-self: start; }
.ig-row .ig-avatar { justify-self: start; width: 40px; height: 40px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; color: #6b7280; overflow: hidden; }
.ig-row .ig-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.ig-row.mine .ig-bubble { order: 1; justify-self: end; background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%) !important; color: white !important; }
.ig-row.mine .ig-avatar { order: 2; justify-self: end; }
.ig-messages .ig-row:not(.mine) .ig-bubble { background: #fff1db !important; border: 1px solid #ffd89a !important; color: #111827 !important; }
.ig-bubble { background: #fff8eb; border: 1px solid #ffe0b2; color: #111827; border-radius: 20px; padding: 10px 14px; max-width: 70%; position: relative; }
.ig-bubble .ig-meta { font-size: 11px; opacity: .7; margin-top: 4px; }
.ig-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 6px; }
.ig-images img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; }

.ig-input { border-top: 1px solid rgba(0,0,0,0.06); padding: 8px 12px; flex-shrink: 0; background: white; position: sticky; bottom: 0; z-index: 10; overflow: visible; }
.ig-file-preview { display: none; flex-wrap: wrap; gap: 12px; padding: 12px; background: #f9fafb; border-radius: 8px; margin-bottom: 8px; overflow: visible; max-height: none; }
.ig-file-preview-item { position: relative; display: inline-block; }
.ig-file-preview-item img { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; border: 2px solid #e5e7eb; display: block; }
.ig-file-remove { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: #ef4444; color: white; border: 2px solid white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; padding: 0; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.ig-file-remove:hover { background: #dc2626; }
.ig-input-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; overflow: visible; }
.ig-input-row input[type="text"] { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; outline: none; overflow: hidden; resize: none; }
.ig-input-row input[type="text"]:focus { border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.15); }
.ig-attach { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; background: #fff8eb; border-radius: 10px; color: #f77c00; cursor: pointer; border: 1px solid #ffe0b2; }
.ig-attach:hover { background: #fff3de; }
.ig-input-row .btn-cta-primary { 
    width: 38px; 
    height: 38px; 
    padding: 0; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 10px; 
    min-width: 38px;
}
.ig-input-row .btn-cta-primary i { margin: 0; }

.ig-login-prompt { display: flex; align-items: center; gap: 10px; justify-content: center; border-top: 1px solid rgba(0,0,0,0.06); background: #fff8eb; padding: 12px; }
.ig-login-actions { display: flex; gap: 8px; }

@media (max-width: 900px) {
  .ig-chat { grid-template-columns: 1fr; height: calc(100vh - 20px); border-radius: 12px; }
  .ig-sidebar { display: none; }
  .ig-sidebar-right { display: none; }
  .ig-main-header .ig-back-btn { display: inline-flex; }
  .ig-bubble { max-width: 100%; }
  .ig-images img { height: 100px; }
}
/* Promo section - Updated 2025-01-26 */
.promo-section {
    padding: 40px 0;
    background: #ffffff; /* sjednocení s ostatními sekcemi */
}
.promo-card {
    position: relative;
    border-radius: 20px;
    padding: 24px 26px;
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    /* sladění s kartou v about sekci */
    background:
        radial-gradient(circle at 20% 80%, rgba(253, 240, 2, 0.28) 0%, rgba(253, 240, 2, 0.00) 55%),
        radial-gradient(circle at 80% 20%, rgba(247, 124, 0, 0.28) 0%, rgba(247, 124, 0, 0.00) 55%),
        linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.15) 40%, rgba(255,255,255,0.08) 70%, rgba(255,255,255,0.28) 100%);
}
.promo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.45) 0%,
        rgba(255,255,255,0.15) 40%,
        rgba(0,0,0,0.05) 70%,
        rgba(0,0,0,0.10) 100%);
    pointer-events: none;
    z-index: 0;
}
.promo-card > * { position: relative; z-index: 1; }
.promo-container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    gap: 24px;
    text-align: center;
}
.promo-illustration {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 12px rgba(17,24,39,0.08));
}
.promo-text {
    line-height: 1.15;
    color: #111827; /* základní textová barva webu */
    text-align: center;
    width: 100%;
}
.promo-title {
    font-size: clamp(26px, 2.8vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #111827;
    margin: 0 0 10px 0;
}
.promo-accent {
    background: linear-gradient(135deg, #ff6500 0%, #f99c03 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.promo-subtitle {
    font-size: clamp(18px, 2.0vw, 30px);
    font-weight: 600;
    line-height: 1.25;
    color: #111827;
    margin: 6px 0 0 0; /* lehce níže pod nadpis */
}

/* Benefity a CTA pro promo sekci (originální vzhled) */
.promo-benefits { display: none; }
.promo-cta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch; /* Zajistí stejnou výšku tlačítek */
}

/* CTA fade efekt jako pilulka (bez bubliny) */
.fade-like-pill { transition: opacity .22s ease, transform .22s ease; }
.fade-like-pill.out { opacity: 0; transform: translateY(-4px); }
.promo-cta .btn-cta-secondary {
    background: #111827;
    color: #ffffff;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Zajistit správné centrování pro všechny elementy uvnitř tlačítek */
.btn-cta-primary,
.btn-cta-secondary {
    white-space: nowrap; /* Zabraň zalomení textu */
}

.btn-cta-primary i,
.btn-cta-secondary i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-cta-primary span,
.btn-cta-secondary span {
    display: inline-block;
    text-align: center;
}

/* Rotující benefit vedle CTA (pilulka) */
.promo-rotate-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 12px rgba(17,24,39,0.06);
    color: #111827;
    transition: opacity .22s ease, transform .22s ease;
}
.promo-rotate-inline i { color: #f77c00; }
.promo-rotate-inline.out { opacity: 0; transform: translateY(-4px); }

@media (max-width: 800px) {
    .promo-rotate-inline { width: 100%; justify-content: center; }
}

/* --- Úkol 1 dokončen --- */
.promo-rotate {
    font-weight: 800;
}

/* Features Section: Co u nás najdete */
.features-section {
    padding: 60px 0;
    background: #ffffff; /* bílé pozadí */
}

.features-banner {
    position: relative;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border-radius: 20px;
    padding: 50px 40px;
    margin-bottom: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(247, 124, 0, 0.3);
}

.features-banner-title {
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.features-banner-subtitle {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
    line-height: 1.1;
}

/* Overlay bulldog image positioned at edge of the features banner */
.features-banner-overlay-dog {
    position: absolute;
    top: -28px;
    left: 228px;
    transform: translate(-66.6667%, -66.6667%);
    width: 320px;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.features-intro {
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.features-intro p {
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

.features-intro p strong {
    font-weight: 700;
    color: #111827;
}

.features-section-title {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 50px 0;
    letter-spacing: 0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ff6500;
    border-radius: 12px;
    background: transparent; /* bez pozadí */
}

.feature-icon i {
    font-size: 32px;
    color: #ff6500;
}

.feature-title {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.feature-description {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

/* Responsive design pro features sekci */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .features-section {
        padding: 40px 0;
    }
    
    .features-banner {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .features-intro {
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .features-section-title {
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon i {
        font-size: 28px;
    }
}
.promo-rotate-wrap {
    position: relative;
    display: inline-block;
    height: 1.3em; /* více místa pro horní/dolní dotahy, JS nastaví přesnou px výšku */
    overflow: hidden;
    vertical-align: baseline;
    white-space: nowrap; /* bez zalomení během animace */
    --baseline-adjust: 2px; /* jemné posunutí dolů lze ladit zde */
    transition: width 200ms ease; /* plynulá změna šířky obalu */
}
.promo-rotate-word {
    position: absolute;
    left: 0;
    top: 0; /* skutečná top pozice je dopočtena v JS, tohle je default */
    display: block;
    font-weight: 800;
    will-change: transform, opacity;
}
.promo-rotate-word.anim-out {
    animation: promoSlideUpOut .45s ease forwards;
}
.promo-rotate-word.anim-in {
    animation: promoSlideUpIn .45s ease forwards;
}

@keyframes promoSlideUpOut {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}
@keyframes promoSlideUpIn {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.promo-slash { opacity: .8; }

@media (max-width: 900px) {
    .promo-container {
        grid-template-columns: 120px 1fr;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .promo-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .promo-card { padding: 18px; border-radius: 18px; }
    .promo-illustration {
        margin: 0 auto;
        max-width: 180px;
    }
}

/* ===== Reusable Page Hero (obdélník jako na domovské stránce) ===== */
.page-hero {
    padding: 36px 0 22px;
    background: #ffffff;
    margin-top: 1.5rem;
}
.page-hero .page-hero-card {
    position: relative;
    border-radius: 22px;
    padding: 28px 34px;
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.18) 0%, rgba(253, 240, 2, 0.12) 100%),
                radial-gradient(1200px 400px at 20% 0%, rgba(253, 240, 2, 0.18), rgba(255, 255, 255, 0) 60%);
    /* bez oddělovací čáry/stínu pod kartou */
    box-shadow: none;
    overflow: hidden;
}

/* Na PC: page-hero-card široký od kraje do kraje, ale zaoblený a s odsazením */
@media (min-width: 769px) {
    .page-hero {
        padding: 36px 1.5rem 22px;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .page-hero .container {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .page-hero .page-hero-card {
        width: 100%;
        max-width: 100%;
        border-radius: 22px;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Obsah uvnitř zůstane kompaktní a vycentrovaný */
    .page-hero .page-hero-inner {
        max-width: 1600px;
        margin: 0 auto;
        padding: 0 2rem;
    }
}
.page-hero .page-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(80% 60% at 85% 30%, rgba(255, 138, 0, 0.18), rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}
.page-hero .page-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 14px;
    text-align: center;
}
.page-hero .page-hero-title {
    font-size: clamp(28px, 3.4vw, 46px);
    font-weight: 900;
    color: #0f172a;
    margin: 0;
}
.page-hero .page-hero-title i {
    display: none;
}
.page-hero .page-hero-subtitle {
    font-size: clamp(16px, 1.8vw, 22px);
    color: #111827;
    margin: 4px 0 0;
    opacity: 0.9;
}

/* schovat akcentní čárku u titulku uvnitř page-hero */
.page-hero .title-accent { display: none; }

@media (max-width: 768px) {
    .page-hero { padding: 24px 0 14px; }
    .page-hero .page-hero-card { padding: 22px; border-radius: 18px; }
}

/* Ads Grid */
/* Anti-AdBlock: Zajistit zobrazení sekce služeb */
.ads-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 56px 0 72px;
    background: #ffffff;
    text-align: center; /* Vycentrovat obsah */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important; /* Změněno z hidden na visible - zabrání uřezání karet */
}

/* Zajistit dostatečný prostor pod inzeráty na stránce "Mé inzeráty" - i na mobilu */
@media (max-width: 768px) {
    #myAdsGrid.ads-grid {
        margin-bottom: 60px !important; /* Prostor pod inzeráty na mobilu */
    }
    
    .ads-section:has(#myAdsGrid) {
        padding-bottom: 80px !important; /* Zvýšené padding-bottom na mobilu */
    }
}

/* Zajistit správné formátování containeru v ads-section na PC */
@media (min-width: 769px) {
    .ads-section {
        padding-bottom: 120px !important;
    }
    
    /* Pro stránku "Mé inzeráty" zajistit dostatečný prostor pod gridem */
    .ads-section:has(#myAdsGrid) {
        padding-bottom: 120px !important;
    }
    
    .ads-section .container {
        max-width: 1600px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 2rem !important;
        box-sizing: border-box !important;
        overflow: visible !important; /* Změněno z hidden na visible - zabrání uřezání karet */
    }
}

/* Kontejner pro tlačítko "Zobrazit více inzerátů" */
.ads-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
    margin-bottom: 0;
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Přidat mezeru za tlačítko na PC pro plynulý fade efekt */
@media (min-width: 769px) {
    .ads-more-container {
        margin-bottom: 80px;
    }
}

/* Tlačítko "Zobrazit více inzerátů" - stejný design jako inzeráty */
.btn-more-ads {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    background: white !important;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    position: relative;
    overflow: visible;
    min-width: 240px;
}

.btn-more-ads:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(247, 124, 0, 0.2);
    border: 2px solid #f77c00;
    color: #111827;
}

.btn-more-ads:active {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(247, 124, 0, 0.25);
}

.btn-more-ads i {
    font-size: 1rem;
    color: #f77c00;
    transition: transform 0.3s ease, color 0.3s ease;
}

.btn-more-ads:hover i {
    transform: translateX(4px);
    color: #f77c00;
}

/* Responzivní design pro tlačítko */
@media (max-width: 768px) {
    .ads-more-container {
        margin-top: 32px;
        padding: 0 1rem;
    }
    
    .btn-more-ads {
        padding: 16px 28px;
        font-size: 1rem;
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .ads-more-container {
        margin-top: 24px;
        padding: 0 1rem;
    }
    
    .btn-more-ads {
        padding: 14px 24px;
        font-size: 0.95rem;
        gap: 10px;
    }
}

/* White Divider */
.white-divider {
    width: 100%;
    height: 80px;
    background: #ffffff;
}

/* About section - design per mock, keep site colors */
.about {
    padding: 56px 0 72px;
    background: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 32px;
    align-items: center;
    /* Bright orange → gold gradient inside the section card */
    background:
        radial-gradient(circle at 20% 80%, rgba(253, 240, 2, 0.28) 0%, rgba(253, 240, 2, 0.00) 55%),
        radial-gradient(circle at 80% 20%, rgba(247, 124, 0, 0.28) 0%, rgba(247, 124, 0, 0.00) 55%),
        linear-gradient(135deg, rgba(247, 124, 0, 0.22) 0%, rgba(253, 240, 2, 0.22) 100%);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.10),
                inset 0 1px 0 rgba(255,255,255,0.65),
                inset 0 -1px 0 rgba(0,0,0,0.10);
    border: 1px solid rgba(255,255,255,0.6);
    position: relative;
    overflow: visible;
    isolation: isolate;
    margin-top: 2cm;
}

/* watermark removed */

.about-content::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.45) 0%,
        rgba(255,255,255,0.15) 40%,
        rgba(0,0,0,0.05) 70%,
        rgba(0,0,0,0.10) 100%
    );
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

.about-content > * { position: relative; z-index: 1; }

.about-image {
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}
.about-team-photo { width: 75%; height: 180px; object-fit: cover; display: block; margin-left: auto; margin-right: auto; border-radius: 0; box-shadow: none; -webkit-mask-image: radial-gradient(120% 100% at 50% 50%, #000 70%, rgba(0,0,0,0) 100%); mask-image: radial-gradient(120% 100% at 50% 50%, #000 70%, rgba(0,0,0,0) 100%); }

/* Overlay bulldog image positioned at top-left edge of the about card */
.about-overlay-dog {
    position: absolute;
    top: -28px;
    left: 228px;
    transform: translate(-66.6667%, -66.6667%);
    width: 320px;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.about-text { grid-column: 1 / -1; text-align: center; }
.about-text h2 .title-text { font-size: 1.9rem; }
.about-text p { color: #374151; line-height: 1.65; }
.about .btn-primary { padding: 10px 18px; border-radius: 10px; display: inline-block; background-color: #fe6b00; color: #ffffff; }

@media (max-width: 900px) {
    .about-content { grid-template-columns: 1fr; }
    .about-team-photo { height: 200px; }
}

/* Circulation (Cirkulace inzerátu) */
.circulation {
    padding: 72px 0 88px;
    background: #ffffff;
}

.circulation-content {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 40px;
    align-items: center;
}


.circulation-text p {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.circulation-visual { display: flex; justify-content: center; }

.circulation-ring {
    position: relative;
    width: 500px;
    height: 500px;
}

.circulation-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    opacity: 1;
    filter: drop-shadow(0 12px 30px rgba(247, 124, 0, 0.25));
    animation: slowSpin 28s linear infinite;
    transform-origin: center center;
    transform: translate(calc(-50% - 0.5cm), -50%);
    z-index: 2;
    pointer-events: none;
}

.circulation-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    width: 62%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0,0,0,0.18);
    border: 1px solid rgba(0,0,0,0.06);
    z-index: 1;
}

.circulation-card img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.circulation-card-caption {
    padding: 10px 12px;
    font-weight: 700;
    color: #111827;
    background: #ffffff;
}

@keyframes slowSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 1020px) {
    .circulation-content { grid-template-columns: 1fr; }
    .circulation-ring { width: 420px; height: 420px; }
    .circulation-card img { height: 200px; }
}

/* CTA Connect block */
.cta-connect { padding: 0 0 88px; background: #ffffff; }
.cta-card {
    position: relative;
    padding: 48px 36px;
    text-align: center;
    border-radius: 20px;
    /* Same background as about section */
    background:
        radial-gradient(circle at 20% 80%, rgba(253, 240, 2, 0.28) 0%, rgba(253, 240, 2, 0.00) 55%),
        radial-gradient(circle at 80% 20%, rgba(247, 124, 0, 0.28) 0%, rgba(247, 124, 0, 0.00) 55%),
        linear-gradient(135deg, rgba(247, 124, 0, 0.22) 0%, rgba(253, 240, 2, 0.22) 100%),
        #ffffff;
    box-shadow: 0 16px 48px rgba(0,0,0,0.08), 0 18px 60px rgba(247, 124, 0, 0.18);
}
.cta-title {
    font-size: 2.4rem;
    line-height: 1.2;
    text-align: center;
    color: #111827;
    margin-bottom: 18px;
    font-weight: 800;
}
.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}
.cta-card .services-title { font-size: 2rem; }
.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Vycentrovat obsah horizontálně */
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    min-height: 48px; /* Zajistí stejnou minimální výšku */
    box-sizing: border-box;
    text-align: center; /* Zajistit centrování textu */
}
.btn-cta-primary { color: #111827; background: #ffffff; box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08); }
.btn-cta-primary i { color: #ffffff; }
.btn-cta-secondary { color: #111827; background: #ffffff; box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08); }
.btn-cta-secondary i { color: #111827; }

@media (max-width: 640px) {
    .cta-title { font-size: 1.8rem; }
}

/* Anti-AdBlock: Zajistit zobrazení elementů s "ad" v názvu */
.ads-section,
.ads-grid,
.ad-card,
.ad-body,
.ad-thumb,
.ad-title,
.ad-price,
.ad-location,
.ad-meta,
.ad-actions,
.ad-badge-top,
.ad-flames,
[class*="ad-"],
[id*="ad-"],
[class*="ads-"],
[id*="ads-"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Zajistit konzistentní formátování pro všechny lokace */
.ad-location {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== UNIVERZÁLNÍ ŠABLONA PRO VŠECHNY INZERÁTY ===== */
/* CSS Grid s auto-fill: karty mají konzistentní velikost bez ohledu na počet */

/* Desktop: přesně 4 sloupce na řádek */
@media (min-width: 1200px) {
    #servicesGrid.ads-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px !important;
        max-width: 1600px !important;
        margin: 0 auto !important;
        width: 100% !important;
        justify-items: start !important;
        overflow: visible !important; /* Zajistit, aby se karty neřezaly */
    }
    
    #servicesGrid.ads-grid > .ad-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Tablet: auto-fill vytvoří 2-3 sloupce, minimálně 280px na kartu */
@media (min-width: 768px) and (max-width: 1199px) {
    #servicesGrid.ads-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 24px !important;
        max-width: 1600px !important;
        margin: 0 auto !important;
        width: 100% !important;
        justify-items: start !important;
        overflow: visible !important; /* Zajistit, aby se karty neřezaly */
    }
    
    #servicesGrid.ads-grid > .ad-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Mobil: 2 sloupce vedle sebe */
@media (max-width: 767px) {
    #servicesGrid.ads-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        max-width: 1600px !important;
        margin: 0 auto !important;
        width: 100% !important;
        padding: 0 1rem !important;
        box-sizing: border-box !important;
        overflow: visible !important; /* Zajistit, aby se karty neřezaly */
    }
    
    #servicesGrid.ads-grid > .ad-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Základní grid pro ostatní stránky */
.ads-grid:not(#servicesGrid) {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    width: 100% !important;
    overflow: visible !important; /* Zajistit, aby se karty neřezaly */
}

.ads-grid:not(#servicesGrid) > .ad-card {
    grid-column: span 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Zajistit, že loading zabere všechny sloupce */
.ads-grid > .loading-services {
    grid-column: 1 / -1 !important;
}

/* Na hlavní stránce zmenšit grid, aby inzeráty nebyly až u kraje */
.ads-grid[data-limit] {
    max-width: 1400px;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Homepage: přesně 4 sloupce na řádek */
@media (min-width: 1200px) {
    #servicesGrid.ads-grid[data-limit] {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.ad-card {
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
    overflow: visible !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border: 1px solid #f0f0f0 !important;
    box-sizing: border-box !important;
    display: flex !important; /* Flexbox pro stejnou výšku */
    flex-direction: column !important; /* Vertikální uspořádání */
    min-height: auto !important; /* Minimální výška podle obsahu */
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: left !important;
    padding: 0 0 20px 0 !important; /* Padding-bottom pro tlačítka akcí */
    float: none !important;
    clear: both !important;
    /* Zabraň změně velikosti při filtrování, ale povol overflow pro tlačítka */
    contain: none !important; /* Změněno z layout style na none - umožní zobrazení tlačítek */
    will-change: auto !important; /* Změněno z transform na auto - zabrání problikávání při scrollování */
    backface-visibility: hidden !important; /* Lepší rendering na mobilních zařízeních */
    -webkit-backface-visibility: hidden !important; /* Safari fallback */
    transform: translateZ(0) !important; /* Hardware acceleration pro plynulejší rendering */
    -webkit-transform: translateZ(0) !important; /* Safari fallback */
}

/* Šířka pro ostatní stránky (ne servicesGrid) */
.ads-grid:not(#servicesGrid) .ad-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(247, 124, 0, 0.2);
    border: 2px solid #f77c00;
}

/* Selectable ad cards (Topování – výběr inzerátu) */
.ad-card.selectable { cursor: pointer; }
.ad-card.selectable.selected {
    border: 2px solid #ffd700 !important;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.25);
}
.ad-card.is-top:hover { 
    transform: none !important;
    box-shadow: 0 8px 28px rgba(255, 138, 0, 0.6), 0 0 0 2px rgba(255, 138, 0, 0.4), inset 0 0 0 1px rgba(255, 138, 0, 0.1) !important;
}

.ad-thumb { 
    width: 100% !important; 
    aspect-ratio: 4 / 3 !important; /* FIXNÍ poměr stran - stejný všude */
    height: auto !important; /* Automatická výška podle aspect-ratio */
    min-width: 100% !important;
    background: white !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden !important; /* Obrázky musí být ořezané */
    position: relative !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    /* Zajistit fixní velikost - kontejner má vždy stejnou velikost */
    box-sizing: border-box !important;
    /* Zajistit fixní velikost i během načítání - použít padding-bottom jako fallback */
    padding-bottom: 75% !important; /* 3/4 = 75% pro aspect-ratio 4:3 */
    height: 0 !important;
    border-radius: 15px 15px 0 0 !important; /* Zaoblené rohy nahoře */
}

/* Zajistit, aby aspect-ratio mělo přednost, ale padding-bottom zajistí velikost během načítání */
@supports (aspect-ratio: 4 / 3) {
    .ad-thumb {
        padding-bottom: 0 !important;
        height: auto !important;
    }
}
.ad-thumb img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    object-position: center !important; /* Vycentrovat obrázek */
    display: block !important; 
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 0; /* Odstranit zaoblené rohy pro mobilní zařízení */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    /* Optimalizace pro plynulé načítání a zabránění problikávání */
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    will-change: auto !important; /* Změněno z opacity na auto - zabrání problikávání */
    transition: opacity 0.2s ease !important; /* Plynulý přechod při načítání */
}

/* Zajistit, že načtené obrázky jsou viditelné bez problikávání */
.ad-thumb img.loaded {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Oranžový loading spinner pro načítající se obrázky */
.ad-thumb:has(img:not(.loaded))::before {
    content: '\f110'; /* FontAwesome spinner ikona */
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 3rem !important;
    color: #f77c00 !important;
    animation: spin 1s linear infinite !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Skrýt spinner po načtení obrázku */
.ad-thumb:has(img.loaded)::before {
    display: none !important;
}

.ad-body {
    display: flex !important; /* Flexbox pro rozložení obsahu */
    flex-direction: column !important; /* Vertikální uspořádání */
    flex: 1 !important; /* Vyplní zbývající prostor v kartě */
    visibility: visible !important;
    opacity: 1 !important; 
    padding: 12px 14px 100px !important; /* Zvýšený padding-bottom pro tlačítka akcí */
    position: relative;
    text-align: left !important; /* Zarovnání textů vlevo */
    overflow: visible !important; /* Umožnit stínům tlačítek vyčnívat */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    width: 100% !important; /* Zajistit plnou šířku */
    max-width: 100% !important; /* Zajistit, aby nepřesahovalo */
    min-width: 0 !important; /* Zajistit, aby flex/grid správně fungoval */
    box-sizing: border-box !important; /* Zahrnout padding a border do šířky */
    margin: 0 !important; /* Odstranit všechny marginy */
    /* Zajistit, aby stíny tlačítek nebyly ořezané */
    min-height: 150px !important; /* Minimální výška pro zobrazení obsahu */
}

/* Zajistit, aby se karty inzerátů nikdy neřezaly - pro všechny velikosti obrazovek */
.ads-section,
.ads-section .container,
.ads-section .container > *,
.ads-grid,
#servicesGrid.ads-grid,
#myAdsGrid.ads-grid {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Zajistit, aby tlačítka akcí byly vždy viditelná */
.ad-card .ad-actions {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

/* Na větších monitorech zajistit větší padding pro tlačítka */
@media (min-width: 1400px) {
    .ad-body {
        padding-bottom: 110px !important; /* Ještě větší padding na velkých monitorech */
    }
    
    .ad-card {
        padding-bottom: 25px !important; /* Větší padding na kartě */
    }
}
.ad-title { 
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 0 6px 0; 
    font-size: 1rem; 
    color: #111827; 
    text-align: left; /* Zarovnání vlevo */
}
.ad-meta { 
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 0.85rem; 
    color: #6b7280; 
    text-align: left; /* Zarovnání vlevo */
}
.ad-price {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: left; /* Zarovnání vlevo */
}
.ad-location {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: left !important; /* Zarovnání vlevo */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    hyphens: auto !important;
    max-width: 100% !important;
    width: 100% !important; /* Zajistit plnou šířku */
    min-width: 0 !important; /* Zajistit, aby flex/grid správně fungoval */
    box-sizing: border-box !important; /* Zahrnout padding a border do šířky */
    margin: 0 !important; /* Odstranit všechny marginy */
    padding: 0 !important; /* Odstranit všechny paddingy */
}

/* Top badge */
.ad-badge-top {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff8a00, #ff6b35);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 18px rgba(255, 138, 0, 0.4);
    z-index: 10;
}
.ad-badge-top i { 
    color: #fff; 
    font-size: 0.8rem;
}

/* Top ads with rotating glow */
.ad-card.is-top { 
    overflow: hidden !important; 
    position: relative !important;
    background: #fff !important;
    border-radius: 13px !important;
    border: 3px solid #ff8a00 !important;
    box-shadow: 0 0 0 3px #ff8a00 !important;
}

.ad-card.is-top .ad-body {
    background: #fff !important;
    border-radius: 0 0 13px 13px !important;
    margin: 0 !important;
    padding: 12px 14px 16px !important;
}

.ad-card.is-top .ad-thumb {
    background: #fff !important;
    border-radius: 10px 10px 0 0 !important;
    overflow: hidden !important;
    aspect-ratio: 4 / 3 !important; /* FIXNÍ poměr stran - stejný všude */
    height: auto !important;
    width: 100% !important;
}

.ad-card.is-top .ad-thumb img {
    border-radius: 10px 10px 0 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Odstraněny animace - pouze rámeček a badge */
.ad-card.is-top::before,
.ad-card.is-top::after {
    display: none !important;
}

@keyframes permanentGlow {
    0%, 100% { 
        opacity: 0.8;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.008);
    }
}

@keyframes permanentShimmer {
    0% { 
        background-position: 0% 50%; 
        opacity: 0.6;
    }
    50% { 
        background-position: 100% 50%; 
        opacity: 0.8;
    }
    100% { 
        background-position: 0% 50%; 
        opacity: 0.6;
    }
}

@keyframes borderLightMove {
    0% { 
        background-position: -100% 0;
    }
    100% { 
        background-position: 200% 0;
    }
}

@keyframes diagonalSilverStripe {
    0% { 
        transform: translateX(100%);
    }
    100% { 
        transform: translateX(-100%);
    }
}

@media (max-width: 1400px) { .ads-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1200px) { .ads-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .ads-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ads-grid { grid-template-columns: 1fr !important; gap: 1rem !important; } }

/* Top Ads Page Styles */
.top-ads-hero {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 50%, #ff6b35 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
}

.services-hero {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 50%, #ff6b35 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
}

.my-ads-hero {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 50%, #ff6b35 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
}

.services-hero::before,
.my-ads-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000 200" preserveAspectRatio="none"><g class="wave-layer l1"><path fill="rgba(255,255,255,0.1)" d="M0,80 C160,30 320,110 480,70 C640,30 800,120 960,85 C1120,50 1280,110 1440,75 C1600,40 1760,95 1920,60 L2000,60 L2000,0 L0,0 Z"></path></g></svg>');
    background-size: cover;
    background-position: bottom;
}

.services-hero .hero-title,
.my-ads-hero .hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #ffffff;
    background: linear-gradient(45deg, #ffffff, #f5f5f5, #ffffff, #e8e8e8, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.services-hero .hero-title::after,
.my-ads-hero .hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s ease-in-out infinite;
    pointer-events: none;
}

.services-hero .hero-subtitle,
.my-ads-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
    text-align: center;
}

.services-hero .hero-title i,
.my-ads-hero .hero-title i {
    color: #ffd700;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.top-ads-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000 200" preserveAspectRatio="none"><g class="wave-layer l1"><path fill="rgba(255,255,255,0.1)" d="M0,80 C160,30 320,110 480,70 C640,30 800,120 960,85 C1120,50 1280,110 1440,75 C1600,40 1760,95 1920,60 L2000,60 L2000,0 L0,0 Z"></path></g></svg>');
    background-size: cover;
    background-position: bottom;
}

.top-ads-hero .hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #ffffff;
    background: linear-gradient(45deg, #ffffff, #f5f5f5, #ffffff, #e8e8e8, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.top-ads-hero .hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.top-ads-hero .hero-title i {
    color: #ffd700;
    animation: flameFlicker 2s ease-in-out infinite;
}

@keyframes flameFlicker {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% { 
        transform: scale(1.1) rotate(-2deg);
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.05) rotate(1deg);
        opacity: 0.95;
    }
    75% { 
        transform: scale(1.08) rotate(-1deg);
        opacity: 0.9;
    }
}

.top-ads-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.top-ads-pricing {
    padding: 80px 0 120px 0; /* Zvýšen padding-bottom, aby bylo místo pro success sekci */
    background: #ffffff; /* čisté bílé pozadí za kartami */
    position: relative;
    z-index: 1;
}

/* Fixní bílé pole jako oddělovač mezi balíčky/topováním a footerem - zabraňuje překrývání */
.packages-footer-spacer {
    width: 100%;
    height: 120px;
    background: #ffffff;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Responsive - na mobilu menší výška */
@media (max-width: 768px) {
    .packages-footer-spacer {
        height: 80px;
    }
    
    .top-ads-pricing {
        padding: 60px 0;
    }
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px; /* menší mezera pod nadpisem Ceník topování */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch; /* všechny karty mají stejnou výšku v řádku */
}

/* Když je po filtrování vidět jen 1 balíček, ať není přehnaně široký */
.pricing-grid.single-plan {
    grid-template-columns: 1fr;
    max-width: 620px;
}

.pricing-card {
    background:
        linear-gradient(135deg, rgba(247, 124, 0, 0.18) 0%, rgba(253, 240, 2, 0.12) 100%),
        radial-gradient(1200px 400px at 20% 0%, rgba(253, 240, 2, 0.18), rgba(255, 255, 255, 0) 60%);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(0,0,0,0.06);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border-color: #ffd700;
    /* odstraněn scale, aby se tlačítka zarovnala napříč kartami */
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a202c;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.pricing-card .pricing-header {
    text-align: center;
    margin-bottom: 30px;
    min-height: 240px; /* více prostoru kvůli badge „Ušetříte …“ a dlouhým periodám */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pricing-price .period {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.pricing-price .price {
    font-size: 3rem;
    font-weight: 700;
    color: #1a202c;
}

.pricing-price .currency {
    font-size: 1.2rem;
    color: #6b7280;
}

.pricing-savings {
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.pricing-features {
    flex: 1; /* vyplní zbytek, tlačítko k spodní hraně */
}

.pricing-features ul {
    list-style: none;
    margin: 0 0 30px; /* sjednocené odsazení nahoře/dole */
    padding: 0;
    display: grid;           /* stejné vertikální rozestupy napříč kartami */
    row-gap: 12px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;               /* řídí grid row-gap */
    color: #4a5568;
}

.pricing-features i {
    color: #10b981;
    font-size: 1.1rem;
    flex: 0 0 22px;          /* fixní šířka pro ikonu, zarovná text do stejné kolony */
    text-align: center;
    line-height: 1.2;
    margin-top: 2px;         /* jemné srovnání s textem na více řádků */
}

.btn-pricing {
    width: 100%;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto; /* odtlačí tlačítko dolů, srovná baseline napříč kartami */
}

.btn-pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.4);
}

/* Ad Selection Styles */
.ad-selection {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #fff9e6 100%);
}

.selection-header {
    text-align: center;
    margin-bottom: 50px;
}

.ads-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.ad-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-item:hover {
    border-color: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.2);
}

.ad-item.selected {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fff9e6, #fffbf0);
}

.ad-item h3 {
    margin-bottom: 10px;
    color: #1a202c;
}

.ad-item p {
    color: #6b7280;
    font-size: 0.9rem;
}

.ad-item.pre-selected {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fff9e6, #fffbf0);
    position: relative;
}

.pre-selected-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.no-ads-message {
    margin: 4rem auto;
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.1) 0%, rgba(253, 240, 2, 0.1) 100%);
    border: 2px solid rgba(247, 124, 0, 0.2);
    box-shadow: 0 4px 20px rgba(247, 124, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    max-width: 600px;
    width: 100%;
}

/* Zajistit, aby zpráva byla na středu, když je v ads-grid */
.ads-grid:has(.no-ads-message),
#adsList:has(.no-ads-message) {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 400px;
    width: 100%;
}

/* Fallback pro prohlížeče bez podpory :has() */
#adsList .no-ads-message {
    grid-column: 1 / -1;
    justify-self: center;
    align-self: center;
}

.no-ads-message-icon {
    margin-bottom: 0.5rem;
}

.no-ads-message-icon i {
    font-size: 3rem;
    color: #f77c00;
    opacity: 0.8;
}

.no-ads-message-content {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.no-ads-message-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.75rem 0;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.no-ads-message-text {
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 1.25rem 0;
    line-height: 1.5;
    text-align: center;
}

.no-ads-message .btn-bulldogo {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1rem;
}

.no-ads-message .btn-bulldogo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 124, 0, 0.4);
}

.no-ads-message .btn-bulldogo i {
    color: white;
    font-size: 1rem;
}

/* Responzivní styly pro no-ads-message */
@media (max-width: 768px) {
    .no-ads-message {
        margin: 2rem 1rem;
        padding: 1.5rem;
        border-radius: 12px;
        gap: 0.75rem;
    }
    
    .no-ads-message-icon i {
        font-size: 2.5rem;
    }
    
    .no-ads-message-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .no-ads-message-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .no-ads-message .btn-bulldogo {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    #adsList:has(.no-ads-message) {
        min-height: 300px;
    }
}

.selection-actions {
    text-align: center;
}

/* Redirect Animation Overlay */
#redirect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

#redirect-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.redirect-animation-content {
    text-align: center;
    color: white;
    animation: fadeInUp 0.5s ease-out;
}

.redirect-spinner {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #ff6a00;
    animation: spin 1s linear infinite;
}

.redirect-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.redirect-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Payment Section Styles */
.payment-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff9e6 0%, #ffeaa7 100%);
}

.payment-header {
    text-align: center;
    margin-bottom: 50px;
}

.payment-summary {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Topování: jen shrnutí + tlačítko (bez volby způsobu platby) */
.payment-summary.single {
    grid-template-columns: 1fr;
    max-width: 720px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.summary-card h3 {
    margin-bottom: 20px;
    color: #1a202c;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item.total {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a202c;
    border-top: none;
    border-bottom: none;
    padding-top: 20px;
    margin-top: 20px;
}

.payment-methods h3 {
    margin-bottom: 20px;
    color: #1a202c;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #ff8c00;
}

.payment-option input[type="radio"] {
    margin-right: 15px;
}

.payment-option input[type="radio"]:checked + .option-content {
    color: #ff8c00;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.payment-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Success Section Styles */
.success-section {
    padding: 4rem 0;
    margin-top: 80px; /* Mezera nad success sekcí, aby nepresahovala přes balíčky */
    background: #ffffff;
    text-align: center;
    position: relative;
    z-index: 1;
}

.success-content {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.success-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(253, 240, 2, 0.15) 0%, rgba(253, 240, 2, 0.00) 55%),
        radial-gradient(circle at 80% 20%, rgba(247, 124, 0, 0.15) 0%, rgba(247, 124, 0, 0.00) 55%);
    pointer-events: none;
    z-index: 0;
}

.success-content > * {
    position: relative;
    z-index: 1;
}

.success-icon {
    font-size: 4.5rem;
    color: #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
    animation: successIconPulse 2s ease-in-out infinite;
}

@keyframes successIconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(34, 197, 94, 0.3);
    }
}

.success-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.success-message {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: #6b7280;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
}

.success-actions .btn-primary {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
}

.success-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 124, 0, 0.4);
    filter: brightness(1.05);
}

.success-actions .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
}

.success-actions .btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.success-actions .btn-secondary:hover {
    background: #f9fafb;
    border-color: #f77c00;
    color: #f77c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.15);
}

.success-actions .btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.success-actions .btn i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .success-section {
        padding: 2rem 0;
        margin-top: 60px; /* Mezera nad success sekcí na mobilu */
    }
    
    .success-content {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        margin: 0 1rem;
    }
    
    .success-icon {
        width: 100px;
        height: 100px;
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
    
    .success-title {
        font-size: 2rem;
    }
    
    .success-message {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .success-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Nová sekce pro tlačítka - vlastní okno jako ostatní sekce (desktop i mobil) */
.ad-create-actions-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 24px;
    padding: 0;
}

/* Na desktopu - v aside pod náhledem */
@media (min-width: 1025px) {
    .ad-create-aside .ad-create-actions-section {
        margin-top: 24px;
        width: 100%;
    }
    
    .ad-create-aside .ad-create-actions-section .ad-create-card {
        width: 100%;
        max-width: 100%;
    }
}

.ad-create-actions-section .ad-create-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ad-create-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.ad-create-actions .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ad-create-actions .btn-primary {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
}

.ad-create-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.3);
}

.ad-create-actions .btn-outline {
    background: #fff;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.ad-create-actions .btn-outline:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

/* Responsive */
@media (max-width: 768px) {
    /* CREATE-AD STRÁNKA - kompletní řešení pro mobil */
    /* Container pro create-ad stránku - padding pro zarovnání */
    body .main-content .container:has(.ad-create-layout),
    .main-content .container:has(.ad-create-layout) {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Ad create layout - správné zarovnání na mobilu, kompaktní */
    body .main-content .container .ad-create-layout,
    .main-content .container .ad-create-layout,
    .ad-create-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0.875rem !important;
        padding-right: 0.875rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 12px !important;
        overflow: hidden !important;
    }
    
    /* Aside - přepis inline CSS z HTML */
    body .main-content .container .ad-create-layout .ad-create-aside,
    .main-content .container .ad-create-layout .ad-create-aside,
    .ad-create-layout .ad-create-aside,
    .ad-create-aside {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* Ad create card - správné zarovnání na mobilu, kompaktní */
    body .main-content .container .ad-create-layout .ad-create-aside .ad-create-card,
    .main-content .container .ad-create-layout .ad-create-aside .ad-create-card,
    .ad-create-layout .ad-create-aside .ad-create-card,
    .ad-create-aside .ad-create-card,
    .ad-create-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 14px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* Ad preview - flexbox layout pro správné umístění tlačítek */
    body .main-content .container .ad-create-layout .ad-create-aside .ad-create-card .ad-preview,
    .main-content .container .ad-create-layout .ad-create-aside .ad-create-card .ad-preview,
    .ad-create-layout .ad-create-aside .ad-create-card .ad-preview,
    .ad-create-aside .ad-create-card .ad-preview,
    .ad-create-aside .ad-preview {
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        gap: 12px !important;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        max-width: 280px !important;
        width: 280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .top-ads-pricing .pricing-grid,
    section.top-ads-pricing .pricing-grid {
        max-width: 280px !important;
        width: 280px !important;
    }
    
    .top-ads-pricing .container,
    section.top-ads-pricing .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }
    
    .payment-summary {
        grid-template-columns: 1fr;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .success-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Chat Login Prompt Styles */
.login-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.login-prompt-content {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}

.login-icon {
    font-size: 4rem;
    color: #ff8c00;
    margin-bottom: 20px;
}

.login-prompt h2 {
    color: #1a202c;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.login-prompt p {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-actions .btn {
    width: 100%;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.login-actions .btn-primary {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: white;
    border: none;
}

.login-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
}

.login-actions .btn-secondary {
    background: #f8fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.login-actions .btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}
/* Reset a základní styly */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100% !important;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Zajistit, že na desktopu není fixed position problém */
@media (min-width: 769px) {
    html {
        position: static;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height pro mobilní prohlížeče */
    overflow-x: hidden !important;
    position: relative;
    -webkit-overflow-scrolling: touch;
    -webkit-appearance: none;
}

.container {
    max-width: 1600px; /* Zvětšit max-width pro lepší zarovnání */
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Vycentrovat obsah */
}

/* Rozšíření containeru na stránce uživatelů přes celou obrazovku - upraveno aby se vešlo */
body:has(.users-container) .main-content .container,
.main-content:has(.users-container) .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 1.5rem !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

body:has(.users-container) .users-container,
.main-content:has(.users-container) .users-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Mobilní optimalizace pro container */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 70px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #2c3e50;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(247, 124, 0, 0.1);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

.sidebar:hover {
    width: 280px;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar.expanded {
    transform: translateX(0);
}

/* Sidebar Header with Logo */
.sidebar-header {
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* Zarovnat na střed když je sidebar zavřený */
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0.5rem;
    min-height: 80px;
}

.sidebar:hover .sidebar-header {
    padding: 1rem 1.5rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.header-buttons {
    display: none;
    gap: 0.5rem;
    align-items: center;
}

.sidebar:hover .header-buttons {
    display: flex;
}

.logo {
    flex: 1;
    display: flex;
    justify-content: center; /* Logo vycentrované když je sidebar zúžený */
    align-items: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.1rem;
    width: 100%;
}

/* Zajistit, že logo je vycentrované když je sidebar zavřený */
.sidebar:not(:hover) .logo {
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.sidebar:not(:hover) .logo-icon {
    margin: 0 auto !important;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-10px);
    width: 0;
    overflow: hidden;
}

.sidebar:hover .logo-text {
    opacity: 1;
    transform: translateX(0) scale(1);
    width: auto;
    transition-delay: 0.1s;
    overflow: visible;
}

/* Ensure B icon shows when collapsed and sits left of text when expanded */
.logo-icon { order: 1; }
.logo-text { order: 2; }
.sidebar:hover .logo { 
    justify-content: flex-start; /* Logo zarovnané vlevo při hover */
    align-items: center; 
    gap: 0.1rem;
}
.sidebar:hover .logo-icon { opacity: 1; }
.logo-icon { opacity: 1; } /* Ikona vždy viditelná */

.logo-bull {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.2rem;
}

.logo-dogo {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logo icon for collapsed state */
.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
    transform: translateX(0);
    flex-shrink: 0;
}

.sidebar:hover .logo-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(247, 124, 0, 0.2);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2c3e50;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dark-mode-toggle:hover {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
}

.dark-mode-toggle i {
    font-size: 1rem;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(247, 124, 0, 0.2);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2c3e50;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
}

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

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* Navigation Section */
.navigation-section {
    padding: 1rem 0;
    flex: 1;
    text-align: left; /* Zarovnání doleva */
}

.nav-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 1.5rem 1rem;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover .nav-section-title {
    opacity: 1;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    justify-content: center; /* Ikony vycentrované když je sidebar zúžený */
    border-radius: 8px;
    margin: 0.2rem 1rem;
    min-height: 48px;
    box-sizing: border-box;
}

.sidebar:not(:hover) .nav-link {
    padding: 0.8rem 0.5rem !important; /* Menší padding když je sidebar zúžený */
    justify-content: center !important; /* Ikony vycentrované */
    margin: 0.2rem 0.5rem !important; /* Menší margin */
}

.sidebar:hover .nav-link {
    padding: 0.8rem 1.5rem;
    justify-content: space-between; /* Text vlevo, ikona vpravo při hover */
    margin: 0.2rem 1rem;
}

.nav-link:hover {
    background: rgba(247, 124, 0, 0.1);
    border-left-color: #f77c00;
    transform: translateX(2px);
}

.nav-link:active {
    opacity: 1;
    transform: none;
    background: rgba(247, 124, 0, 0.1);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.15) 0%, rgba(253, 240, 2, 0.15) 100%);
    border-left-color: #f77c00;
    color: #f77c00;
}

.nav-icon {
    width: 24px;
    margin-left: 0;
    font-size: 1.2rem;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center; /* Ikony vycentrované když je sidebar zúžený */
    flex-shrink: 0;
    opacity: 1; /* Ikona vždy viditelná */
    order: 1; /* Ikona uprostřed když je sidebar zúžený */
    color: #6c757d;
}

.sidebar:not(:hover) .nav-icon {
    margin-left: 0 !important;
    order: 1 !important; /* Ikona uprostřed */
    width: 24px !important; /* Pevná šířka ikony */
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    display: flex !important;
    flex-shrink: 0 !important;
}

.sidebar:hover .nav-icon {
    margin-left: 0.8rem; /* Ikona vpravo při hover */
    opacity: 1;
    order: 2; /* Ikona vpravo při hover */
    color: #6c757d; /* Pevná barva ikony, bez gradientu */
    width: auto;
    justify-content: flex-start;
    transition: margin-left 0.3s ease, opacity 0.3s ease;
}

.nav-link.active .nav-icon {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 1;
}

.nav-text {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease;
    white-space: nowrap;
    order: 1; /* Text vlevo */
    transform: translateX(-15px);
    width: 0;
    overflow: hidden;
    text-align: left !important; /* Zarovnání doleva */
    color: #2c3e50 !important; /* Pevná barva textu, bez animace */
}
.sidebar:hover .nav-text {
    opacity: 1;
    transform: translateX(0);
    width: auto;
    transition-delay: 0.1s;
    overflow: visible;
    text-align: left !important; /* Zarovnání doleva */
    color: #2c3e50 !important; /* Pevná barva textu, bez animace */
}

/* Admin Section */
.admin-section {
    padding: 1rem 0.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 1rem;
    display: none;
}

.sidebar:hover .admin-section {
    padding: 1rem 1.5rem;
}

.admin-section .nav-section-title {
    color: #ffd700;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
}

.sidebar:hover .admin-section .nav-section-title {
    justify-content: flex-start;
}

.admin-section .nav-section-title::before {
    content: '🔒';
    font-size: 1.2rem;
    display: inline-block;
}

.sidebar:not(:hover) .admin-section .nav-section-title {
    font-size: 0;
    width: auto;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: none;
    justify-content: center;
}

.sidebar:not(:hover) .admin-section .nav-section-title::before {
    font-size: 1.5rem;
    content: '🔒';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.admin-section .nav-link {
    color: #1f2937 !important;
    transition: all 0.3s ease;
    background: rgba(255, 215, 0, 0.08);
    border-left: 3px solid #ffd700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar:not(:hover) .admin-section .nav-link {
    justify-content: center;
    padding: 0.8rem 0.5rem;
    gap: 0;
}

.sidebar:hover .admin-section .nav-link {
    justify-content: space-between;
    padding-left: 0.5rem;
    gap: 0.75rem;
}

.admin-section .nav-link:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(3px);
}

.admin-section .nav-link .nav-icon {
    color: #ffd700 !important;
    opacity: 1 !important;
    background: transparent;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #ffd700 !important;
    background-clip: unset;
    order: 2;
    margin-left: 0;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    display: inline-block !important;
    visibility: visible !important;
}

.sidebar:not(:hover) .admin-section .nav-link .nav-icon {
    margin-left: 0;
    order: 2;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

.sidebar:hover .admin-section .nav-link .nav-icon {
    margin-left: 0.8rem;
    order: 2;
}

.admin-section .nav-link:hover .nav-icon {
    color: #ffd700;
    opacity: 1;
    transform: scale(1.1);
}

.admin-section .nav-text {
    transition: all 0.3s ease;
    white-space: nowrap;
    order: 1;
    color: #1f2937 !important;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar:not(:hover) .admin-section .nav-text {
    opacity: 0 !important;
    transform: translateX(-15px) !important;
    width: 0 !important;
    overflow: hidden !important;
}

.sidebar:hover .admin-section .nav-text {
    opacity: 1 !important;
    transform: translateX(0) !important;
    width: auto !important;
    overflow: visible !important;
}

/* Auth Section */
.auth-section {
    padding: 1rem 0.5rem;
    border-top: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar:hover .auth-section {
    padding: 1rem 1.5rem;
}

/* Na mobilních zařízeních - respektovat inline style display */
@media (max-width: 768px) {
    .auth-section[style*="display: none"] {
        display: none !important;
    }
    
    .user-profile-section[style*="display: none"] {
        display: none !important;
    }
}

.btn-login {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(247, 124, 0, 0.2);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #2c3e50;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center; /* Vycentrovat ikonu když je sidebar zúžený */
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 48px;
    box-sizing: border-box;
}

.btn-login i {
    font-size: 1.1rem;
    flex-shrink: 0;
    opacity: 1;
    order: 2; /* Ikona napravo */
}

.btn-login span {
    order: 1; /* Text vlevo */
    opacity: 0;
    width: 0;
    transform: translateX(-15px);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover .btn-login {
    padding: 0.8rem 1rem;
    justify-content: space-between; /* Text vlevo, ikona vpravo při hover */
}

.sidebar:hover .btn-login span {
    opacity: 1;
    width: auto;
    transform: translateX(0);
    transition-delay: 0.1s;
    overflow: visible;
}

.sidebar:hover .btn-login i {
    opacity: 1;
}

.btn-login:hover {
    background: rgba(247, 124, 0, 0.1);
    border-color: #f77c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.2);
}

/* Button labels are now handled individually in their respective classes */

/* Keep nav icons strictly centered in collapsed state */
/* Odstraněno - navigační položky mají text vlevo a ikonu vpravo i bez hover */

/* Admin ikony musí být vždy viditelné */
.sidebar:not(:hover) .admin-section .nav-link .nav-icon {
    margin-left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

.btn-register {
    width: 100%;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center; /* Vycentrovat ikonu když je sidebar zúžený */
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
    min-height: 48px;
    box-sizing: border-box;
}

.btn-register i {
    font-size: 1.1rem;
    flex-shrink: 0;
    opacity: 1;
    order: 2; /* Ikona napravo */
}

.btn-register span {
    order: 1; /* Text vlevo */
    opacity: 0;
    width: 0;
    transform: translateX(-15px);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover .btn-register {
    padding: 0.8rem 1rem;
    justify-content: space-between; /* Text vlevo, ikona vpravo při hover */
}

.sidebar:hover .btn-register span {
    opacity: 1;
    width: auto;
    transform: translateX(0);
    transition-delay: 0.1s;
    overflow: visible;
}

.sidebar:hover .btn-register i {
    opacity: 1;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 124, 0, 0.4);
}

.btn-profile {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(247, 124, 0, 0.2);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #2c3e50;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center; /* Vycentrovat ikonu když je sidebar zúžený */
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 48px;
    box-sizing: border-box;
}

.btn-profile i {
    font-size: 1.1rem;
    opacity: 1;
    order: 2; /* Ikona napravo */
    flex-shrink: 0;
}

.btn-profile span {
    order: 1; /* Text vlevo */
    opacity: 0;
    width: 0;
    transform: translateX(-15px);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover .btn-profile {
    justify-content: space-between; /* Text vlevo, ikona vpravo při hover */
}

.sidebar:hover .btn-profile span {
    opacity: 1;
    width: auto;
    transform: translateX(0);
    transition-delay: 0.1s;
    overflow: visible;
}

/* Profilovka v kruhu */
#sidebarUserAvatar {
    display: inline-flex !important;
    margin-left: 8px;
    vertical-align: middle;
    flex-shrink: 0;
    order: 2; /* Profilovka napravo */
    transition: margin 0.3s ease, order 0.3s ease !important; /* Pouze základní přechody */
}

#sidebarUserAvatar > span {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: width 0.3s ease, height 0.3s ease !important; /* Pouze rozměry */
}

#sidebarUserAvatarImg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
    transition: none !important; /* Žádné animace pro obrázek */
}

.btn-profile:hover {
    background: rgba(247, 124, 0, 0.1);
    border-color: #f77c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.2);
}

.btn-profile:hover {
    background: rgba(247, 124, 0, 0.05);
    transform: translateY(-1px);
}

/* Odznak plánu vedle tlačítka Profil */
.btn-profile .user-badge { display: inline-flex; align-items: center; margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.btn-profile .badge-business { background: #111827; color: #ffffff; }
.btn-profile .badge-hobby { background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%); color: white; }
.btn-profile .badge-unknown { background: #e5e7eb; color: #374151; }
.sidebar:not(:hover) .btn-profile .user-badge { display: none; }

/* Profilovka viditelná i když je sidebar zavřený - KOMPLETNÍ OPRAVA */
.sidebar:not(:hover) .btn-profile {
    justify-content: center !important; /* Vycentrovat profilovku */
    align-items: center !important;
    gap: 0 !important;
    padding: 0.5rem !important; /* Rovnoměrný padding pro vycentrování */
    overflow: hidden !important; /* Skrýt přetečení */
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important; /* Pouze základní přechody, ne layout */
    position: relative !important;
}

.sidebar:not(:hover) #sidebarUserAvatar {
    display: flex !important; /* Změnit z inline-flex na flex pro lepší kontrolu */
    margin: 0 !important; /* Odstranit všechny margin */
    padding: 0 !important; /* Odstranit všechny padding */
    order: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 36px !important; /* Zmenšit na 36px aby se vešla do tlačítka */
    height: 36px !important;
    flex-shrink: 0 !important;
    position: static !important; /* Změnit z relative na static */
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    transition: none !important; /* Zakázat všechny animace */
    align-items: center !important;
    justify-content: center !important;
}

.sidebar:not(:hover) #sidebarUserAvatar > span {
    display: flex !important; /* Změnit z inline-flex na flex */
    width: 36px !important; /* Zmenšit na 36px */
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 50% !important;
    overflow: hidden !important; /* Skrýt přetečení */
    transition: none !important; /* Zakázat animace */
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}

.sidebar:not(:hover) #sidebarUserAvatarImg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    transition: none !important; /* Zakázat animace */
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
}

.sidebar:not(:hover) .btn-profile i {
    display: none !important; /* Skrýt ikonu když je sidebar zavřený, zobrazit jen profilovku */
    transition: none !important;
}

.sidebar:not(:hover) .btn-profile span {
    display: none !important; /* Skrýt text když je sidebar zavřený */
    transition: none !important;
}

.btn-logout {
    width: 100%;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #dc3545;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center; /* Vycentrovat ikonu když je sidebar zúžený */
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 48px;
    box-sizing: border-box;
}

.btn-logout i {
    font-size: 1.1rem;
    opacity: 1;
    order: 2; /* Ikona napravo */
    flex-shrink: 0;
}

.btn-logout span {
    order: 1; /* Text vlevo */
    opacity: 0;
    width: 0;
    transform: translateX(-15px);
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover .btn-logout {
    justify-content: space-between; /* Text vlevo, ikona vpravo při hover */
}

.sidebar:hover .btn-logout span {
    opacity: 1;
    width: auto;
    transform: translateX(0);
    transition-delay: 0.1s;
    overflow: visible;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Odstraněno - texty jsou nyní vždy viditelné */

/* User Profile Section */
.user-profile-section {
    padding: 1rem 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar:hover .user-profile-section {
    padding: 1rem 1.5rem;
}

.user-profile-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(247, 124, 0, 0.2);
    border-radius: 8px;
    padding: 0.8rem 0.5rem;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar:hover .user-profile-card {
    padding: 0.8rem;
    justify-content: space-between;
}

.user-profile-card:hover {
    background: rgba(247, 124, 0, 0.1);
    border-color: #f77c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    opacity: 0.9;
    order: 2;
}

.sidebar:hover .user-avatar {
    opacity: 1;
}

.user-info {
    flex: 1;
    min-width: 0;
    order: 1;
}

.user-email {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.2rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.user-profile-card.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* User Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 1.5rem;
    right: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.user-profile-card.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
}

.user-dropdown-header i {
    font-size: 2rem;
    color: white;
}

.user-info-text {
    flex: 1;
}

.user-display-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.user-dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-weight: 600;
    margin: 0.5rem 0;
}

.user-balance i {
    font-size: 1.1rem;
    color: white;
}

.balance-amount {
    font-size: 1rem;
    font-weight: 700;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.8rem 1rem;
    background: none;
    border: none;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
    text-decoration: none;
}

.user-dropdown-item:hover {
    background: #f8f9fa;
    color: #f77c00;
}

.user-dropdown-item i {
    width: 16px;
    color: #666;
    transition: color 0.2s ease;
}

.user-dropdown-item:hover i {
    color: #f77c00;
}

/* Sidebar Toggle Button (when collapsed) */
.sidebar-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #1A1D29;
    color: white;
    border: none;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle-btn:hover {
    background: #2A2D39;
    transform: scale(1.05);
}

.sidebar-toggle-btn.show {
    display: flex;
}

/* Main Content Layout */
.main-content {
    margin-left: 70px;
    min-height: 100vh;
    background: #ffffff; /* sjednocené bílé pozadí, žádné „oříznuté" okraje */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(100% - 70px);
    max-width: calc(100% - 70px);
    box-sizing: border-box;
    overflow-x: hidden;
}

.main-content.sidebar-collapsed {
    margin-left: 0;
}

/* Dark Mode Styles */
body.dark-mode {
    background: #1A1D29;
    color: #fff;
}

body.dark-mode .main-content {
    background: #1A1D29;
}

/* Chat layout: zachovej sidebar, ale hlavní obsah vyplní výšku */
body.chat-page .sidebar { display: block; }
body.chat-page .mobile-menu-btn, body.chat-page .sidebar-toggle-btn { display: none; }
body.chat-page .main-content { margin-left: 70px; min-height: 100vh; }
body.chat-page.sidebar-collapsed .main-content { margin-left: 0; }
/* Chat musí dosáhnout až dolů – nepoužívat odečty (ty dělaly prázdný pás dole) */
body.chat-page .ig-chat { 
    height: 100vh; 
    height: 100dvh; 
    display: grid !important;
    grid-template-columns: 320px 1fr 320px !important;
    width: 100% !important;
}

/* Zajistit viditelnost všech tří sloupců na desktopu */
@media (min-width: 901px) {
    body.chat-page .ig-sidebar {
        display: flex !important;
    }
    body.chat-page .ig-main {
        display: flex !important;
    }
    body.chat-page .ig-sidebar-right {
        display: flex !important;
    }
}

@media (max-width: 900px) {
  body.chat-page .ig-chat { 
      grid-template-columns: 1fr !important;
      height: 100vh; 
      height: 100dvh; 
  }
  
  /* Na mobilu: zobrazit levý sloupec (konverzace) na začátku */
  body.chat-page .ig-sidebar { 
      display: flex !important; 
  }
  
  /* Na mobilu: vždy skrýt pravý sloupec (inzeráty) */
  body.chat-page .ig-sidebar-right { 
      display: none !important; 
  }
  
  /* Na mobilu: skrýt chat (střední sloupec) pokud není vybrána konverzace */
  body.chat-page .ig-main { 
      display: none !important; 
  }
  
  /* Na mobilu: zobrazit chat když je vybrána konverzace */
  body.chat-page.chat-active .ig-main { 
      display: flex !important; 
  }
  
  /* Na mobilu: skrýt levý sloupec když je vybrána konverzace */
  body.chat-page.chat-active .ig-sidebar { 
      display: none !important; 
  }
  
  /* Tlačítko zpět - zobrazit na mobilu */
  body.chat-page .ig-back-btn {
      display: inline-flex !important;
  }
}
body.chat-page .instagram-chat-container { height: 100vh; width: 100%; position: relative; display: flex; }
body.chat-page .chat-main,
body.chat-page .chat-active,
body.chat-page .messages-container,
body.chat-page .message-input-container {
    width: 100%;
    max-width: none;
}
body.chat-page .pinned-ad-content,
body.chat-page .chat-header-active,
body.chat-page .message-input-wrapper {
    max-width: none;
    width: 100%;
}

body.dark-mode .hero {
    background: transparent;
}

body.dark-mode .services {
    background: #1A1D29;
}

body.dark-mode .about {
    background: linear-gradient(135deg, #2A2D39 0%, #3A3D49 100%);
}

body.dark-mode .contact {
    background: #1A1D29;
}

body.dark-mode .service-card,
body.dark-mode .ad-card {
    background: #2A2D39;
    border-color: #3A3D49;
    color: #fff;
}

body.dark-mode .service-card h3,
body.dark-mode .ad-card h3 {
    color: #fff;
}

body.dark-mode .service-card p,
body.dark-mode .ad-card p {
    color: #ccc;
}

body.dark-mode .contact-form {
    background: #2A2D39;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #1A1D29;
    border-color: #3A3D49;
    color: #fff;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #f77c00;
}

body.dark-mode .footer {
    background: #0A0D19;
}

/* Hero Section */
:root {
    --wave-color: 252, 188, 5;          /* RGB bez #, barva z obrázku */
    --wave-opacity: 0.18;
    --wave-height: 240px;
    --fade-strength: 70%;
    --speed-1: 36s;
    --speed-2: 54s;
    --speed-3: 72s;
}

.hero {
    color: #2c3e50;
    padding: 6rem 0;
    min-height: 90vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content:"";
    position:absolute; 
    inset:0;
    background:
        radial-gradient(40% 30% at 20% 0%, rgba(var(--wave-color), .07), transparent 70%),
        radial-gradient(30% 25% at 80% 5%, rgba(var(--wave-color), .05), transparent 60%),
        linear-gradient(to bottom, rgba(0,0,0,.02), transparent 25%);
    pointer-events:none;
    z-index:0;
}

.top-wave {
    position: absolute;
    inset: 0 0 auto 0;
    height: var(--wave-height);
    pointer-events: none;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0) var(--fade-strength));
            mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0) var(--fade-strength));
}

.top-wave svg { 
    width: 200%; 
    height: 100%; 
    display:block; 
}

.wave-layer { 
    transform: translateX(0) translateY(0); 
    animation: randomWaveMotion var(--speed-1) ease-in-out infinite; 
}

.wave-layer.l2 { 
    animation-duration: var(--speed-2); 
    opacity: .8; 
    animation-delay: -1.2s;
    animation-name: randomWaveMotion2;
}

.wave-layer.l3 { 
    animation-duration: var(--speed-3); 
    opacity: .6; 
    animation-delay: -2.1s;
    animation-name: randomWaveMotion3;
}

@keyframes randomWaveMotion { 
    0% { 
        transform: translateX(0) translateY(0); 
    }
    15% { 
        transform: translateX(-8%) translateY(-12px); 
    }
    30% { 
        transform: translateX(-15%) translateY(4px); 
    }
    45% { 
        transform: translateX(-22%) translateY(-18px); 
    }
    60% { 
        transform: translateX(-28%) translateY(8px); 
    }
    75% { 
        transform: translateX(-35%) translateY(-6px); 
    }
    90% { 
        transform: translateX(-42%) translateY(14px); 
    }
    100% { 
        transform: translateX(-50%) translateY(0); 
    } 
}

@keyframes randomWaveMotion2 { 
    0% { 
        transform: translateX(0) translateY(0); 
    }
    12% { 
        transform: translateX(-6%) translateY(9px); 
    }
    28% { 
        transform: translateX(-14%) translateY(-15px); 
    }
    40% { 
        transform: translateX(-20%) translateY(3px); 
    }
    55% { 
        transform: translateX(-26%) translateY(-11px); 
    }
    70% { 
        transform: translateX(-32%) translateY(7px); 
    }
    85% { 
        transform: translateX(-38%) translateY(-9px); 
    }
    100% { 
        transform: translateX(-50%) translateY(0); 
    } 
}

@keyframes randomWaveMotion3 { 
    0% { 
        transform: translateX(0) translateY(0); 
    }
    18% { 
        transform: translateX(-10%) translateY(-7px); 
    }
    35% { 
        transform: translateX(-18%) translateY(13px); 
    }
    50% { 
        transform: translateX(-25%) translateY(-4px); 
    }
    65% { 
        transform: translateX(-31%) translateY(10px); 
    }
    80% { 
        transform: translateX(-37%) translateY(-8px); 
    }
    95% { 
        transform: translateX(-43%) translateY(5px); 
    }
    100% { 
        transform: translateX(-50%) translateY(0); 
    } 
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Canvas/WebGL aurora overlay positioned at top only; softly blends to white */
.aurora-layer {
    position: absolute;
    inset: 0 0 25%; /* cover from very top; we'll fade-in using mask to avoid a hard line */
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(120% 70% at 50% 0%,
        rgba(255, 252, 235, 1.00) 0%,     /* pure light white */
        rgba(255, 245, 210, 0.85) 25%,    /* soft gold */
        rgba(255, 240, 190, 0.70) 45%,    /* pale gold */
        rgba(255, 255, 255, 1.00) 70%);   /* clean white (no grey) */
    mix-blend-mode: screen;
}

.hero-content {
    z-index: 3;
    position: relative;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero-brand {
    margin-bottom: 3rem;
}

/* Hero Logo (no glass, no blur) */
.hero-logo {
    display: block;
    width: 220px;
    height: auto;
    margin-bottom: 1rem;
    background: none;
    border: none;
    box-shadow: none;
    filter: none;
    position: relative;
    z-index: 2;
}
/* Spotlight effect for hero logo */
.hero-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('spotlight.svg') no-repeat center;
    background-size: contain;
    opacity: 0;
    animation: spotlightSweep 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes spotlightSweep {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(5deg);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    text-align: center;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transform: translateY(-6px);
    background-size: 200% 200%;
    animation: heroShine 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
    display: inline-block;
    transform-origin: center center;
    white-space: nowrap;
}

.hero-title::after {
    display: none;
}

.hero-slogan {
    font-size: 1.4rem;
    font-style: italic;
    color: #6c757d;
    font-weight: 500;
}

@keyframes heroShine {
    0% {
        background-position: 0% 50%;
        filter: drop-shadow(0 2px 6px rgba(247, 124, 0, 0.15));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 4px 14px rgba(253, 240, 2, 0.25));
    }
    100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 2px 6px rgba(247, 124, 0, 0.15));
    }
}


@keyframes heroShineMobile {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-search {
    margin-top: 2rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-btn {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
    font-size: 1.1rem;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 124, 0, 0.4);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(247, 124, 0, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #000000; /* Černá barva textu */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Select ve vyhledávači (hlavní stránka) – vzhled sladěn s textovým polem */
select.search-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: rgba(255, 255, 255, 0.9);
    padding-right: 2.5rem; /* místo pro šipku */
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23f77c00' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><path d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    cursor: pointer;
    color: #000000; /* Černá barva textu */
}

select.search-input option {
    color: #000000; /* Černá barva pro option elementy */
    background-color: #ffffff;
}

select.search-input::-ms-expand { /* skrytí defaultní šipky v IE/Edge */
    display: none;
}

.search-input:focus {
    outline: none;
    border-color: #f77c00;
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.2);
}

.btn-create-ad {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-create-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 124, 0, 0.4);
}

/* Tlačítko btn-create-ad v no-services-actions - moderní design bez ikony */
.no-services-actions .btn-create-ad {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.no-services-actions .btn-create-ad::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 60px at 20% 10%, rgba(255,255,255,0.25), rgba(255,255,255,0) 55%);
    pointer-events: none;
}

.no-services-actions .btn-create-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 124, 0, 0.4);
    filter: brightness(1.05);
}

.no-services-actions .btn-create-ad:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
}

@media (max-width: 768px) {
    .no-services-actions .btn-create-ad {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Bulldog Image */
.bulldog-image {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

/* Subtle ground shadow under the bulldog logo to simulate standing */
.bulldog-image::after {
    content: "";
    position: absolute;
    bottom: -2%;
    left: 50%;
    transform: translateX(-50%);
    width: 72%;
    height: 12%;
    background: radial-gradient(50% 50% at 50% 50%,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(0, 0, 0, 0.14) 45%,
        rgba(0, 0, 0, 0.00) 72%);
    filter: blur(14px);
    z-index: 1; /* between bubbles (0) and logo (2) */
    pointer-events: none;
}

.bulldog-image .hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2; /* above bubbles */
    margin: 0 auto;
    display: block;
}

.bulldog-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.bulldog-photo:hover {
    transform: none;
    box-shadow: none;
}

/* Tool Bubbles */
.tool-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* behind logo */
}

.tool-bubble {
    position: absolute;
    width: 72px;
    height: 72px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: bubbleLaunch 12.8s ease-out infinite;
}

.bubble-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

.tool-bubble i {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2;
    font-size: 1.8rem;
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.bubble-1 { animation-delay: 0s; }
.bubble-2 { animation-delay: 0.25s; }
.bubble-3 { animation-delay: 0.5s; }
.bubble-4 { animation-delay: 0.75s; }
.bubble-5 { animation-delay: 1s; }
.bubble-6 { animation-delay: 1.25s; }
.bubble-7 { animation-delay: 1.5s; }
.bubble-8 { animation-delay: 1.75s; }
.bubble-9 { animation-delay: 2s; }
.bubble-10 { animation-delay: 2.25s; }
.bubble-11 { animation-delay: 2.5s; }
.bubble-12 { animation-delay: 2.75s; }

/* Bubble launch from center with directional travel and pop */
@keyframes bubbleLaunch {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0;
    }
    10% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    80% {
        /* travel handled per-bubble via CSS variables */
        transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(1.05);
        opacity: 1;
    }
    90% {
        transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(0.6);
        opacity: 0.9;
        filter: blur(0.5px);
    }
    100% {
        transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(1.2);
        opacity: 0;
        filter: blur(1.5px);
    }
}

/* Direction presets from center */
.bubble-dir-up    { --dx: 0px;    --dy: -300px; }
.bubble-dir-down  { --dx: 0px;    --dy:  300px; }
.bubble-dir-left  { --dx: -220px; --dy: 0px; }
.bubble-dir-right { --dx:  300px; --dy: 0px; }
.bubble-dir-up-left    { --dx: -170px; --dy: -170px; }
.bubble-dir-up-right   { --dx:  240px; --dy: -240px; }
.bubble-dir-down-left  { --dx: -170px; --dy:  170px; }
.bubble-dir-down-right { --dx:  240px; --dy:  240px; }

/* Pop visual tweak on background image */
.tool-bubble.pop .bubble-bg {
    animation: bubblePop 12.8s ease-out infinite;
}

@keyframes bubblePop {
    0%, 75% { transform: scale(1); opacity: 1; }
    85% { transform: scale(1.2); opacity: 0.9; }
    92% { transform: scale(0.7); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background-color: #ffd700;
    color: #333;
}

.btn-primary:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #333;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.hero-placeholder i {
    font-size: 5rem;
    color: #ffd700;
}

/* Services Section - Modern Design */
.services {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}


/* Services Title */
.services-title {
    position: relative;
    display: inline-block;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: titleGlow 3s ease-in-out infinite;
}

/* Darker text gradient specifically for the About section title */
.about .services-title {
    background: linear-gradient(135deg, #ff6500 0%, #f99c03 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Same darker text gradient for CTA section title */
.cta-card .services-title {
    background: linear-gradient(135deg, #ff6500 0%, #f99c03 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Match accent line under the about title to the darker gradient */
.about .title-accent {
    background: linear-gradient(135deg, #ff6500 0%, #f99c03 100%);
}

/* Same accent line for CTA section */
.cta-card .title-accent {
    background: linear-gradient(135deg, #ff6500 0%, #f99c03 100%);
}

.title-accent {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border-radius: 2px;
    animation: accentPulse 2s ease-in-out infinite;
}

.services-subtitle {
    font-size: 1.3rem;
    color: #6c757d;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    width: 100%;
}

/* Service Card */
.service-card {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(247, 124, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
    min-height: 200px;
    max-height: 250px;
}

.service-card:nth-child(odd) {
    animation-delay: -2s;
}

.service-card:nth-child(even) {
    animation-delay: -4s;
}

.service-card-inner {
    position: relative;
    padding: 1.2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(247, 124, 0, 0.2);
    border: 2px solid rgba(247, 124, 0, 0.3);
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.1) 0%, rgba(253, 240, 2, 0.1) 100%);
    z-index: 10;
    position: relative;
}

/* Service Icon */
.service-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    position: relative;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.3);
}

.service-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.2) 0%, rgba(253, 240, 2, 0.2) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: iconBgPulse 3s ease-in-out infinite;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(247, 124, 0, 0.4);
}

.service-card:hover .service-icon-bg {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.6;
}

/* Service Content */
.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.6rem;
    transition: all 0.3s ease;
}


/* Service Tags */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 0;
    overflow: hidden;
}

.service-card:hover .service-tags {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    overflow: visible;
}

.service-tag {
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.1) 0%, rgba(253, 240, 2, 0.1) 100%);
    color: #f77c00;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(247, 124, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(15px) scale(0.8);
    animation: none;
}

.service-card:hover .service-tag {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: tagPopIn 0.5s ease-out forwards;
}

.service-tag:nth-child(1) { transition-delay: 0.1s; }
.service-tag:nth-child(2) { transition-delay: 0.2s; }
.service-tag:nth-child(3) { transition-delay: 0.3s; }
.service-tag:nth-child(4) { transition-delay: 0.4s; }

.service-tag:hover {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.3);
}

/* Hover Effect */
.service-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.2) 0%, rgba(253, 240, 2, 0.2) 100%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    border-radius: 20px;
    pointer-events: none;
}

.service-card:hover .service-hover-effect {
    opacity: 1;
}


/* Animations */
@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(247, 124, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(253, 240, 2, 0.5));
    }
}

@keyframes accentPulse {
    0%, 100% {
        transform: scaleX(1);
        opacity: 0.8;
    }
    50% {
        transform: scaleX(1.1);
        opacity: 1;
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

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

@keyframes iconBgPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

@keyframes tagFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-2px);
    }
}

@keyframes tagPopIn {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.8);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Service Card - Special Design */
.service-card-premium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
    border: 2px solid #FFD700;
    position: relative;
    overflow: visible;
    animation: premiumGlow 4s ease-in-out infinite;
}

.service-card-premium::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF8C00, #FFD700);
    border-radius: 22px;
    z-index: -1;
    animation: premiumBorder 3s linear infinite;
}

.service-card-premium .service-icon {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: premiumIconPulse 2s ease-in-out infinite;
}

.service-card-premium .service-icon-bg {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 140, 0, 0.3) 100%);
    animation: premiumIconBg 3s ease-in-out infinite;
}

.service-card-premium .service-title {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premiumTitleShine 3s ease-in-out infinite;
}

.service-card-premium .service-tag {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 140, 0, 0.2) 100%);
    color: #FF8C00;
    border: 1px solid rgba(255, 215, 0, 0.4);
    animation: premiumTagFloat 4s ease-in-out infinite;
}
.service-card-premium .service-tag:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.service-card-premium:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.3);
}

/* Premium Badge */
.premium-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: premiumBadgePulse 2s ease-in-out infinite;
    z-index: 10;
}

.premium-badge i {
    font-size: 0.9rem;
    animation: crownRotate 3s ease-in-out infinite;
}

/* Premium Animations */
@keyframes premiumGlow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
    }
}

@keyframes premiumBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes premiumIconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }
}

@keyframes premiumIconBg {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

@keyframes premiumTitleShine {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
}

@keyframes premiumTagFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes premiumBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    }
}

@keyframes crownRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .services-title {
        font-size: 2.5rem;
    }
    
    .service-card-inner {
        padding: 1.5rem;
    }
    
    .service-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
    
    .premium-badge {
        top: -5px;
        right: -5px;
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* Featured Section */
.featured-section {
    padding: 4rem 0;
    background: #ffffff;
}

/* Featured TOP demo card */
.featured-service {
    margin-top: 1.5rem;
}

.featured-service .featured-ad {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.featured-service .featured-ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.featured-service .featured-badge.top {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1f2937;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.featured-service .featured-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2937;
}

.featured-service .featured-ad-content {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.25rem;
    align-items: center;
}

.featured-service .featured-ad-image {
    width: 160px;
    height: 120px;
    border-radius: 14px;
    background: #ffffff; /* odstraněno oranžové pozadí */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    font-size: 2rem;
}

/* vypnutí shimmer animace pro ukázku */
.featured-service .featured-ad-image::before { display: none !important; }

.featured-service .featured-ad-info h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.25rem;
    color: #111827;
}

.featured-service .featured-ad-info p {
    margin: 0 0 0.8rem 0;
    color: #6b7280;
}

.featured-service .featured-ad-meta {
    display: flex;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.featured-service .featured-ad-meta i {
    color: #f59e0b;
}

@media (max-width: 768px) {
    .featured-service .featured-ad-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .featured-service .featured-ad-image {
        margin: 0 auto;
    }
}

/* Animated orange ring border for TOP ad */
/* removed animated ring border */

.featured-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.featured-section .section-header p {
    font-size: 1.2rem;
    color: #6c757d;
}

/* Featured Ad Section */
.featured-ad-section {
    margin: 3rem 0;
    padding: 2rem 0;
}

.featured-ad-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.featured-ad-section .section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.featured-ad-section .section-header p {
    font-size: 1rem;
    color: #6c757d;
}

/* Featured Service Card */
.featured-service {
    position: relative;
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.featured-service .service-icon {
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.8) 0%, rgba(253, 240, 2, 0.9) 100%);
    box-shadow: 0 8px 25px rgba(247, 124, 0, 0.3);
}

.featured-service .service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.9) 0%, rgba(253, 240, 2, 0.8) 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
}

.featured-service .service-price {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f77c00;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.featured-service:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(253, 240, 2, 0.8) 0%, rgba(247, 124, 0, 0.6) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

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

.service-list li {
    padding: 0.3rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.service-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #fdf002;
    font-weight: bold;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: #f77c00;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-team-photo {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffb347 0%, #ffd194 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f77c00;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-counter {
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.2;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.error {
    color: #ef4444;
}

/* Price inline row - kompaktní zobrazení */
.price-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.price-inline .radio-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.price-inline .radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
}

.price-inline .radio-group input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.price-inline .inputs {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.price-inline .inputs input {
    width: auto;
    min-width: 120px;
    flex: 0 0 auto;
}

.pill-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.pill-group label {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: #374151;
    background: #fff;
}

.pill-group input[type="radio"] {
    display: none;
}

.pill-group label span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.pill-group input[type="radio"]:checked + span {
    color: #111827;
    font-weight: 600;
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
    background: #fff;
}

/* Kompaktní form-group pro edit modal */
#editServiceModal .service-form .form-group {
    margin-bottom: 1rem;
}

#editServiceModal .service-form .form-label {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

#editServiceModal .service-form .char-counter {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    line-height: 1.2;
}

#editServiceModal .service-form .price-inline {
    gap: 0.6rem;
    margin-top: 0.4rem;
}

#editServiceModal .service-form .price-inline .radio-group {
    gap: 0.6rem;
}

#editServiceModal .service-form .price-inline .radio-group label {
    font-size: 0.85rem;
    line-height: 1.3;
}

#editServiceModal .service-form .price-inline .inputs {
    gap: 0.6rem;
}

#editServiceModal .service-form .pill-group {
    gap: 0.4rem;
    margin-top: 0.25rem;
}

#editServiceModal .service-form .pill-group label span {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    line-height: 1.2;
}

/* Kompaktní mezery mezi sekcemi */
#editServiceModal .service-form .form-group + .form-group {
    margin-top: 0.75rem;
}

/* ===== FOOTER - KOMPLETNÍ PŘEPRACOVÁNÍ ===== */
footer.footer,
.footer {
    background: #ffffff;
    color: #1f2937;
    padding: 2.5rem 0 1rem;
    border-top: 1px solid #e5e7eb;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

footer.footer .container,
.footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

/* Footer na stránkách detailu (ad-detail, profile-detail) - zarovnat stejně jako main-content */
/* Použít stejné CSS jako .main-content - PŘEPISUJE VŠECHNY DALŠÍ PRAVIDLA */
body:has(.ad-detail-content) .footer,
body:has(.profile-detail-main) .footer,
body:has(.ad-detail-content) footer.footer,
body:has(.profile-detail-main) footer.footer,
.ad-detail-content ~ .footer,
.profile-detail-main ~ .footer {
    margin-left: 70px !important;
    min-height: auto !important;
    background: #ffffff !important;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: calc(100% - 70px) !important;
    max-width: calc(100% - 70px) !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 2.5rem !important;
    padding-bottom: 1rem !important;
}

body:has(.ad-detail-content) .footer .container,
body:has(.profile-detail-main) .footer .container,
.ad-detail-content ~ .footer .container,
.profile-detail-main ~ .footer .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Footer na detail stránkách při collapsed sidebar */
body.sidebar-collapsed:has(.ad-detail-content) .footer,
body.sidebar-collapsed:has(.profile-detail-main) .footer,
body.sidebar-collapsed:has(.ad-detail-content) footer.footer,
body.sidebar-collapsed:has(.profile-detail-main) footer.footer {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Footer na mobilu - stejně jako main-content (bez margin-left) */
/* Stejné CSS jako na hlavní stránce - bez odsazení od kraje */
@media (max-width: 768px) {
    /* Footer samotný - stejně jako na hlavní stránce */
    body:has(.ad-detail-content) .footer,
    body:has(.profile-detail-main) .footer,
    body:has(.ad-detail-content) footer.footer,
    body:has(.profile-detail-main) footer.footer,
    .ad-detail-content ~ .footer,
    .profile-detail-main ~ .footer {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 2.5rem !important;
        padding-bottom: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Footer container - lehké odsazení obsahu od kraje (bílé pozadí zůstává od kraje) */
    body:has(.ad-detail-content) .footer .container,
    body:has(.profile-detail-main) .footer .container,
    .ad-detail-content ~ .footer .container,
    .profile-detail-main ~ .footer .container,
    footer.footer .container,
    .footer .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Přepsat všechna desktopová pravidla pro footer na mobilu - důležité kvůli pravidlům na řádcích 18005 a 18028 */
    body:has(.ad-detail-content) footer.footer,
    body:has(.profile-detail-main) footer.footer {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    
    body:has(.ad-detail-content) footer.footer .container,
    body:has(.profile-detail-main) footer.footer .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

footer.footer .footer-content,
.footer .footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

footer.footer .footer-section,
.footer .footer-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* PC - 4 sloupce vedle sebe */
@media screen and (min-width: 769px) {
    footer.footer .footer-content,
    .footer .footer-content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 2.5rem !important;
    }
    
    footer.footer .footer-section,
    .footer .footer-section {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 0% !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
    }
}

@media screen and (min-width: 1024px) {
    footer.footer .footer-content,
    .footer .footer-content {
        gap: 3rem !important;
    }
}

.footer-section h3 {
    margin-bottom: 0.875rem;
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-section p {
    color: #4b5563;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #f77c00;
}

.footer-section p i {
    margin-right: 0.5rem;
    color: #6b7280;
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0.25rem 0;
}

/* Profile Page Styles */
.profile-stats-section {
    padding: 2rem 0;
    background: white;
    margin-bottom: 2rem;
}

.profile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.profile-info {
    flex: 1;
    text-align: left;
}


.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.profile-role {
    font-size: 1.2rem;
    color: #bdc3c7;
    margin: 0 0 1rem 0;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #95a5a6;
    font-size: 1rem;
}

.profile-location i {
    color: #f77c00;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: flex-start;
}

.btn-share, .btn-edit-profile {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-share {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-edit-profile {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    border: none;
}

.btn-share:hover, .btn-edit-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 1px solid #e9ecef;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(247, 124, 0, 0.2);
    border-color: #f77c00;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #f77c00;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #f77c00;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.3);
}

.stat-content {
    flex: 1;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.1rem;
    text-align: center;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.2;
    font-weight: 500;
    text-align: center;
}

.tab-navigation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    padding: 0;
    border-bottom: none;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #d1d5db;
    background: white;
    color: #4b5563;
    font-weight: 600;
    cursor: pointer;
    border-radius: 14px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}
.tab-btn:hover {
    border-color: #f77c00;
    background: #ffffff;
    color: #f77c00;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(247, 124, 0, 0.25), 0 0 0 2px rgba(247, 124, 0, 0.15);
}

.tab-btn:active {
    transform: none;
    color: inherit;
}
.tab-btn.active {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white !important;
    border-color: #f77c00;
}

.tab-btn.active:hover {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white !important;
}

.tab-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(253, 240, 2, 0.45), 0 6px 16px rgba(0, 0, 0, 0.18);
}

.tab-btn:active {
    color: inherit !important;
    transform: none;
}

/* Zvýraznění akčních pilulek v manage sekcích (balíček / topování) */
.manage-actions .btn {
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.manage-actions .btn-secondary {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 20px rgba(247, 124, 0, 0.25);
}
.manage-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #e66a00 0%, #fdf002 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(247, 124, 0, 0.3);
    transform: translateY(-2px);
}
.manage-actions .btn-primary {
    border-radius: 9999px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 20px rgba(247, 124, 0, 0.25);
}

.manage-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.manage-plan {
    margin-top: 20px;
}

.plan-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.plan-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.plan-info-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.plan-info-item strong {
    color: #212529;
    font-size: 1rem;
    font-weight: 700;
}

/* profile-plan.html: stránka má jen jeden sloupec → vycentrovat obsah */
body.profile-plan-page .profile-content {
    grid-template-columns: 1fr;
    max-width: 1100px;
    margin: 0 auto;
}

body.profile-plan-page .plan-info {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.profile-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    text-align: left;
}

.content-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: left;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title i {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.chart-placeholder {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 3rem;
    text-align: left;
    color: #7f8c8d;
    border: 2px dashed #bdc3c7;
}

.chart-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
    display: block;
    text-align: left;
}

.activity-list {
    display: flex;
        flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-item:hover {
    background: #ecf0f1;
    transform: translateX(5px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.activity-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.activity-time {
    color: #95a5a6;
    font-size: 0.8rem;
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-item:hover {
    background: #ecf0f1;
    transform: translateX(5px);
}

.achievement-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.achievement-text {
    font-weight: 600;
    color: #2c3e50;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.quick-action-btn {
    padding: 1rem;
    border: 2px solid #ecf0f1;
    background: white;
    border-radius: 10px;
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.quick-action-btn:hover {
    border-color: #f77c00;
    background: rgba(247, 124, 0, 0.05);
    transform: translateY(-2px);
}

.quick-action-btn i {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

/* Services Page Styles */
.services-content {
    text-align: center;
}

.services-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.services-header .services-title {
    margin: 0;
    font-size: 2rem;
}

.btn-add-service {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(247, 124, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-add-service i {
    font-size: 0.95rem;
}

.btn-add-service:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 35px rgba(247, 124, 0, 0.45);
    filter: brightness(1.05);
}

/* Ratings Page Styles */
.ratings-content {
    text-align: left;
}

.ratings-summary {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.overall-rating {
    text-align: center;
    flex-shrink: 0;
}

.rating-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.rating-stars {
    font-size: 1.5rem;
    color: #f77c00;
    margin-bottom: 0.5rem;
}

.rating-count {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.rating-breakdown {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.rating-bar span:first-child {
    width: 60px;
    font-size: 0.9rem;
    color: #2c3e50;
}

.bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    transition: width 0.3s ease;
}

.rating-bar span:last-child {
    width: 40px;
    text-align: right;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.reviews-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #f77c00;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.review-card:hover {
    box-shadow: 0 4px 16px rgba(247, 124, 0, 0.12);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.reviewer-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(247, 124, 0, 0.2);
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.reviewer-details h4 {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-date {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
}

.review-rating {
    flex-shrink: 0;
    margin-left: 8px;
}

.review-rating .stars {
    color: #f77c00;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 1px;
}

.review-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.review-content p {
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
    margin: 0;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== MODERNÍ DESIGN RECENZÍ ===== */
.reviews-list,
.reviews-list-container .reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.reviews-list-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .reviews-list,
    .reviews-list-container .reviews-list {
        grid-template-columns: 1fr;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Zajistit, aby kontejner recenzí nebyl oříznutý */
    #userReviewsSection,
    #userReviewsSection .user-other-ads {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Zajistit, aby okna recenzí byla vždy celá viditelná */
    .review-card-modern,
    .review-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

.review-card-modern {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.review-card-modern:hover {
    box-shadow: 0 4px 20px rgba(247, 124, 0, 0.15);
    transform: translateY(-2px);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.reviewer-info-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.reviewer-avatar-modern {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(247, 124, 0, 0.25);
    flex-shrink: 0;
}

.reviewer-details-modern {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reviewer-name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

.review-date-modern {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

.review-rating-modern {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.stars-container {
    display: flex;
    gap: 2px;
    font-size: 18px;
    line-height: 1;
}

.stars-filled {
    color: #f77c00;
    letter-spacing: 2px;
}

.stars-empty {
    color: #d1d5db;
    letter-spacing: 2px;
}

.review-card-content {
    padding-top: 4px;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    word-wrap: break-word;
}

/* Responsive design pro recenze */
@media (max-width: 768px) {
    .review-card-modern {
        padding: 20px;
        border-radius: 12px;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .review-card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .reviewer-info-modern {
        width: 100%;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    
    .review-rating-modern {
        align-self: flex-start;
    }
    
    .reviewer-avatar-modern {
        width: 44px;
        height: 44px;
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .reviewer-name {
        font-size: 15px;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .review-text {
        font-size: 14px;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }
    
    .reviewer-details-modern {
        min-width: 0 !important;
        flex: 1 !important;
        max-width: 100% !important;
    }
}

.review-service {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.review-text {
    color: #7f8c8d;
    line-height: 1.5;
    margin: 0;
}

/* Settings Page Styles */
.settings-content {
    text-align: left;
}

.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.settings-section.danger-zone {
    border: 2px solid #e74c3c;
}

.settings-title {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.settings-title i {
    color: #f77c00;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #f77c00;
}

.form-input, .form-textarea {
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #f77c00;
    box-shadow: 0 0 0 3px rgba(247, 124, 0, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #f77c00;
}

.btn-save {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
}

/* Avatar photo actions – make buttons same width */
.profile-photo-actions {
    max-width: 520px;
    width: 100%;
}

.profile-photo-actions .btn-save {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
    min-height: 52px;
    color: white !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.profile-photo-actions .btn-save i {
    color: white !important;
    font-size: 1rem !important;
}

/* Tlačítko Odebrat - stejný design, ale s jiným pozadím */
.profile-photo-actions #btnRemoveProfilePhoto {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    color: #6b7280 !important;
}

.profile-photo-actions #btnRemoveProfilePhoto i {
    color: #6b7280 !important;
}

.profile-photo-actions #btnRemoveProfilePhoto:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-photo-actions #btnRemoveProfilePhoto:hover i {
    color: #374151 !important;
}

/* No Plan Notice - design ladící se zbytkem webu */
.no-plan-notice {
    margin-top: 1.5rem;
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.1) 0%, rgba(253, 240, 2, 0.1) 100%);
    border: 2px solid rgba(247, 124, 0, 0.2);
    box-shadow: 0 4px 20px rgba(247, 124, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.no-plan-notice-icon {
    margin-bottom: 0.5rem;
}

.no-plan-notice-icon i {
    font-size: 3rem;
    color: #f77c00;
    opacity: 0.8;
}

.no-plan-notice-content {
    width: 100%;
}

.no-plan-notice-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.75rem 0;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-plan-notice-text {
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 1.25rem 0;
    line-height: 1.5;
}

.no-plan-notice .btn-bulldogo {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.no-plan-notice .btn-bulldogo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 124, 0, 0.4);
}

.no-plan-notice .btn-bulldogo i {
    color: white;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 124, 0, 0.3);
}

.danger-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-danger {
    padding: 0.8rem 1.5rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 100%;
        z-index: 2000;
    }
    
    .sidebar:hover {
        width: 100%;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle-btn {
        display: none !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        justify-items: center !important;
        align-items: center !important;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem) !important;
        line-height: 1.1 !important;
        letter-spacing: 0.03em !important;
        font-weight: 900 !important;
        text-shadow: 0 4px 20px rgba(247, 124, 0, 0.3) !important;
        filter: drop-shadow(0 4px 12px rgba(247, 124, 0, 0.2)) drop-shadow(0 2px 4px rgba(247, 124, 0, 0.15)) !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    .hero-slogan {
        font-size: 1.2rem;
    }

    .search-input-group {
        flex-direction: column;
        gap: 1rem;
    }

    .search-input {
        width: 100%;
    }

    .hero-visual {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    .bulldog-image {
        width: 300px !important;
        height: 300px !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
    }

    .tool-bubble {
        width: 60px;
        height: 60px;
        left: 50%;
    }
    
    .tool-bubble i {
        font-size: 1.4rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0 !important;
        padding: 0 !important;
        display: block;
        line-height: 1;
        width: auto;
        height: auto;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem) !important;
        line-height: 1.1 !important;
        letter-spacing: 0.03em !important;
        font-weight: 900 !important;
        text-shadow: 0 4px 20px rgba(247, 124, 0, 0.3) !important;
        filter: drop-shadow(0 4px 12px rgba(247, 124, 0, 0.2)) drop-shadow(0 2px 4px rgba(247, 124, 0, 0.15)) !important;
        white-space: nowrap !important;
    }
    
    /* Profile responsive */
    .profile-header {
        min-height: auto !important;
        padding: 1.5rem 1rem !important;
    }
    
    .profile-header-content {
        flex-direction: column !important;
        gap: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .profile-info {
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .profile-name {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        text-align: center !important;
        word-break: break-word !important;
    }
    
    .profile-role {
        text-align: center !important;
        font-size: clamp(0.9rem, 3vw, 1.1rem) !important;
    }
    
    .profile-location {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .profile-actions {
        flex-direction: column !important;
        justify-content: center !important;
        width: 100% !important;
        align-self: center !important;
        gap: 0.75rem !important;
    }
    
    .profile-actions .btn {
        width: 100% !important;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        margin-top: 1.5rem !important;
        width: 100% !important;
        padding: 0 0.5rem !important;
    }
    
    .stat-card {
        padding: 1rem 0.75rem !important;
        gap: 0.5rem !important;
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        margin: 0 auto !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
        text-align: center !important;
    }
    
    .profile-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
        width: 100% !important;
    }
    
    .content-section {
        width: 100% !important;
        padding: 1.5rem 1rem !important;
        margin-bottom: 1.5rem !important;
        box-sizing: border-box !important;
    }
    
    .profile-stats-section {
        padding: 1.5rem 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    /* Services responsive */
    .services-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .featured-service .service-badge {
        top: 0.8rem;
        right: 0.8rem;
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .featured-service .service-price {
        bottom: 0.8rem;
        right: 0.8rem;
        font-size: 1.2rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Ratings responsive */
    .ratings-summary {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .rating-breakdown {
        width: 100%;
    }
    
    .review-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    /* Settings responsive */
    .settings-form {
        gap: 1rem;
    }
    
    .danger-actions {
        flex-direction: column;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile menu button */
    .mobile-menu-btn {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 3000;
        background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%) !important;
        color: white !important;
        border: none;
        border-radius: 12px;
        width: 56px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(247, 124, 0, 0.4);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn:hover {
        background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%) !important;
        box-shadow: 0 6px 25px rgba(247, 124, 0, 0.5);
        transform: translateY(-1px);
    }
    
    .mobile-menu-btn:active {
        background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%) !important;
        transform: scale(0.95);
        box-shadow: 0 2px 10px rgba(247, 124, 0, 0.3);
    }
}

/* Hide mobile menu button on desktop */
/* Desktop styles - reset mobile overrides for ads-grid */
@media (min-width: 769px) {
    /* Reset ads-grid pro desktop - POUZE pro ostatní stránky, ne servicesGrid */
    .ads-grid:not(#servicesGrid) {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px !important;
        max-width: 1600px !important;
        align-items: stretch !important;
        display: grid !important;
        justify-content: start !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    /* Reset ad-card pro desktop - POUZE pro ostatní stránky, ne servicesGrid */
    .ads-grid:not(#servicesGrid) .ad-card {
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        grid-column: span 1 !important;
    }
    
    .ad-card .ad-thumb {
        width: 100% !important;
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
    }
    
    .ad-card .ad-thumb img {
        border-radius: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .ad-card .ad-body {
        padding: 12px 14px 80px !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: left !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    .ad-card {
        overflow: visible !important; /* Zajistit, aby stín tlačítek nebyl oříznutý */
    }
    
    .ad-card .ad-thumb {
        overflow: hidden !important; /* Zachovat overflow pro obrázky */
    }
    
    /* Pro topované inzeráty: menší padding dole, protože tlačítka jsou pod lokací */
    .ad-card.is-top .ad-body {
        padding-bottom: 20px !important;
    }
    
    .ad-card .ad-meta {
        font-size: 0.85rem !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        order: initial !important;
        display: block !important;
    }
    
    .ad-card .ad-meta::before {
        display: none !important;
    }
    
    .ad-card .ad-meta span:first-child,
    .ad-card .ad-meta span:first-child::after {
        display: inline !important;
    }
    
    .ad-card .ad-meta span:last-child {
        display: inline !important;
    }
    
    .ad-card .ad-title {
        font-size: 1rem !important;
        line-height: initial !important;
        margin-bottom: 6px !important;
        display: block !important;
        -webkit-line-clamp: initial !important;
        -webkit-box-orient: initial !important;
        overflow: visible !important;
        order: initial !important;
    }
    
    .ad-card .ad-price {
        font-size: initial !important;
        font-weight: initial !important;
        color: #f77c00 !important;
        margin-bottom: 0 !important;
        order: initial !important;
    }
    
    .ad-card .ad-location {
        font-size: 0.85rem !important;
        color: #6b7280 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        order: initial !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        hyphens: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        line-height: 1.4 !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }
    
    .ad-card .ad-actions {
        position: absolute !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    /* Pro topované inzeráty: tlačítka absolutně pozicovaná, ale více dole než u normálních */
    .ad-card.is-top .ad-actions {
        position: absolute !important;
        bottom: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .ad-card.is-top .ad-body {
        padding-bottom: 80px !important;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
}

/* Desktop responsive breakpoints */
@media (min-width: 769px) and (max-width: 1400px) {
    .ads-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .ads-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 769px) and (max-width: 820px) {
    .ads-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Sidebar overlay animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    animation: fadeIn 0.3s ease;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Animace */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3) {
    animation-delay: 0.2s;
}

.service-card:nth-child(4) {
    animation-delay: 0.3s;
}

.service-card:nth-child(5) {
    animation-delay: 0.4s;
}

.service-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Auth Styles */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: #333;
}

/* Chat full-width enforcement */
#chatMain,
/* Odstraněno - bude uděláno od nuly */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: white;
    font-weight: 500;
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.user-icon {
    font-size: 1.5rem;
    color: white;
}

.user-name {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: white;
    transition: transform 0.3s ease;
}

.user-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f77c00 0%, #5c2710 100%);
    color: white;
}

.user-dropdown-header i {
    font-size: 2rem;
    color: white;
}

.user-info-text {
    flex: 1;
}

.user-display-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.user-email {
    font-size: 0.85rem;
    opacity: 0.9;
}

.user-dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.8rem 1rem;
    background: none;
    border: none;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
    text-decoration: none;
}

.user-dropdown-item:hover {
    background: #f8f9fa;
    color: #f77c00;
}

.user-dropdown-item i {
    width: 16px;
    color: #666;
    transition: color 0.2s ease;
}

.user-dropdown-item:hover i {
    color: #f77c00;
}

.user-dropdown-item.active {
    background: #f0f0f0;
    color: #f77c00;
    font-weight: 600;
}

.user-dropdown-item.active i {
    color: #f77c00;
}

/* User Balance Styles */
.user-balance {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-weight: 600;
    margin: 0.5rem 0;
}

.user-balance i {
    font-size: 1.1rem;
    color: white;
}

.balance-amount {
    font-size: 1rem;
    font-weight: 700;
}

/* Modal Styles */
.top-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8a00 0%, #ffa500 40%, #ff6b35 60%, #ff8a00 100%);
    background-size: 200% 200%;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(255, 138, 0, 0.4);
    animation: orangeShine 2.4s linear infinite, orangeGlowPulse 1.6s ease-in-out infinite alternate;
}

.top-badge i {
    font-size: 0.85rem;
}

/* Orange shimmer + glow animation */
@keyframes orangeShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes orangeGlowPulse {
    0% { box-shadow: 0 6px 18px rgba(255, 138, 0, 0.4), 0 0 12px rgba(255, 165, 0, 0.25); }
    100% { box-shadow: 0 8px 24px rgba(255, 138, 0, 0.6), 0 0 24px rgba(255, 165, 0, 0.5); }
}


/* TOP service highlight */
.service-item.top {
    position: relative !important;
    border: 3px solid #ff8a00 !important;
    background: #fff !important;
    overflow: hidden !important;
    box-shadow: 0 0 0 3px #ff8a00 !important;
}

.service-item.top .service-content {
    background: #fff !important;
    border-radius: 0 0 13px 13px !important;
    margin: 0 !important;
}

.service-item.top {
    background: #fff !important;
}

.service-item.top .service-images {
    background: #fff !important;
    border-radius: 10px 10px 0 0 !important;
    overflow: hidden !important;
}

.service-item.top .service-images img {
    border-radius: 10px 10px 0 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Odstraněny animace - pouze rámeček a badge */
.service-item.top::before,
.service-item.top::after {
    display: none !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    width: 100vw;
    height: 100%;
    height: 100vh;
    height: 100dvh; /* Pro mobilní zařízení s safe-area */
	background: radial-gradient(1200px 600px at 70% 10%, rgba(247,124,0,0.18), transparent 60%), rgba(0,0,0,0.55);
	backdrop-filter: blur(8px) saturate(110%);
    overflow: hidden; /* Zakázat scroll celé stránky */
    padding: 20px;
    box-sizing: border-box;
    margin: 0;
}

/* Speciální overlay pro balíček - tmavší pozadí */
#packageRequiredOverlay {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px) !important;
}

/* Když je modal zobrazený, použít flexbox pro vycentrování */
.modal[style*="display: flex"],
.modal[style*="display:flex"] {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.modal-content {
	background: #ffffff;
	border-radius: 15px !important;
    padding: 0;
    width: auto;
    max-width: 700px;
    min-width: 320px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
	border: 1px solid #f0f0f0;
	box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    animation: modalSlideIn 0.3s ease-out;
    overflow-y: auto;
    overflow-x: hidden;
    margin: auto;
    box-sizing: border-box;
	position: relative;
    flex-shrink: 0;
    height: auto;
    min-height: auto;
    /* Skrýt scrollbar, ale zachovat scrollování */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE a Edge */
    /* Plynulé scrollování */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Plynulé scrollování na iOS */
}

/* Skrýt scrollbar v Chrome, Safari a Opera */
.modal-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Report Ad Modal - užší než standardní */
#reportAdModal .modal-content {
    max-width: 500px;
    width: 90%;
}

/* Speciální styl pro edit service modal - větší a ladící se stránkou */
#editServiceModal .modal-content {
    max-width: 900px;
    width: 90%;
    background: #ffffff;
    border-radius: 15px !important;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

#editServiceModal .modal-content .service-form {
    padding: 2.5rem;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
}

/* Na větších obrazovkách ještě větší */
@media (min-width: 1200px) {
    #editServiceModal .modal-content {
        max-width: 1000px;
        width: 85%;
    }
    
    #editServiceModal .modal-content .service-form {
        padding: 3rem;
    }
    
    #editServiceModal .modal-header {
        padding: 2rem 3rem;
    }
}

/* Rezerva nahoře kvůli „opřenému" buldokovi */
.modal-content.auth-with-hero { padding-top: 4.6rem; }

/* Zúžení auth modalu na desktopu */
@media (min-width: 769px) {
    .modal-content.auth-with-hero {
        max-width: 450px;
    }
}

/* Buldok „opřený“ o kartu */
.auth-dog-lean {
	position: absolute;
	top: -22px;
	left: 50%;
	transform: translateX(-50%) rotate(-4deg);
	transform-origin: bottom center;
	width: 120px;
	height: auto;
	pointer-events: none;
	filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
}

/* Vrchní „lištu" s brand gradientem a titulkem */
/* Vrchní „lištu" s brand gradientem a titulkem */
.auth-hero-ledge {
	background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
	border-radius: 20px; /* Více zaoblené rohy */
	padding: 12px 18px; /* kompaktní výška přesně kolem titulku */
	box-shadow: 0 12px 28px rgba(247,124,0,0.28);
	color: #ffffff;
	margin: 0;
	position: relative;
}

.auth-with-hero .modal-header {
	margin: 0;
	padding: 0;
	border: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	flex-direction: row; /* Zajistit, že jsou na stejném řádku */
}

.auth-with-hero .modal-title {
	color: #ffffff;
	font-weight: 800;
	font-size: 1.3rem;
	background: none;
	-webkit-text-fill-color: currentColor;
	text-align: left; /* Zarovnání vlevo */
	margin: 0;
	padding: 0;
	flex: 0 0 auto; /* Nenatáhnout, jen potřebná šířka */
	order: 1; /* První vlevo */
	line-height: 1.2;
}

.auth-with-hero .close { 
	color: rgba(255,255,255,0.9); 
	margin-left: auto; /* Zarovnání vpravo */
	font-size: 1.8rem;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	flex: 0 0 auto; /* Nenatáhnout, jen potřebná šířka */
	order: 2; /* Druhý vpravo */
	display: flex;
	align-items: center;
	justify-content: center;
}
.auth-with-hero .close:hover { color: #ffffff; }

/* Odstup mezi lištou a obsahem formuláře */
.auth-with-hero .auth-form { 
	margin-top: 14px; 
	padding: 0 1.5rem 1.5rem 1.5rem;
	text-align: left; /* Zarovnání formuláře vlevo */
	display: flex;
	flex-direction: column;
	gap: 12px; /* Mezera mezi inputy */
	box-sizing: border-box;
}

/* Pozice psa nad titulkem v liště */
.auth-hero-ledge .auth-dog-lean {
	top: -69px;
	left: 50%;
	transform: translateX(-50%) rotate(0deg);
	width: 128px;
	z-index: 2;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal pro varování o topování */
.modal-top-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal-top-warning.show {
    opacity: 1;
    visibility: visible;
}

.modal-top-warning-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(1200px 600px at 70% 10%, rgba(247,124,0,0.18), transparent 60%), rgba(0,0,0,0.55);
    backdrop-filter: blur(8px) saturate(110%);
}

.modal-top-warning-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: modalSlideIn 0.3s ease-out;
    text-align: center;
    box-sizing: border-box;
}

.modal-top-warning-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ff8a00 0%, #ff6b35 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 138, 0, 0.3);
}

.modal-top-warning-icon i {
    font-size: 32px;
    color: #ffffff;
}

.modal-top-warning-title {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.modal-top-warning-message {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

.modal-top-warning-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-top-warning-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.modal-top-warning-actions .btn-primary {
    background: linear-gradient(135deg, #ff8a00 0%, #ff6b35 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.3);
}

.modal-top-warning-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 138, 0, 0.4);
}

.modal-top-warning-actions .btn-secondary {
    background: #ffffff;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.modal-top-warning-actions .btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

/* Responzivní design pro modal */
@media (max-width: 768px) {
    .modal-top-warning-content {
        padding: 24px 20px;
        max-width: 95%;
    }
    
    .modal-top-warning-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }
    
    .modal-top-warning-icon i {
        font-size: 28px;
    }
    
    .modal-top-warning-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .modal-top-warning-message {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .modal-top-warning-actions {
        flex-direction: column;
    }
    
    .modal-top-warning-actions .btn {
        width: 100%;
        min-width: unset;
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.05) 0%, rgba(253, 240, 2, 0.05) 100%);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

.modal-header .close {
    font-size: 1.8rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
    background: none;
    border: none;
}

.modal-header .close:hover {
    color: #f77c00;
}

.modal-title {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 800;
    font-size: 1.5rem;
}

/* Přepsat pro auth modal */
.auth-with-hero .modal-title {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.modal-body {
    padding: 2rem;
}

.modal-body .btn {
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-body .btn-primary {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.3);
}

.modal-body .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(247, 124, 0, 0.4);
}

.modal-body .btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-body .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

#editServiceModal .modal-header {
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.08) 0%, rgba(253, 240, 2, 0.08) 100%);
    border-bottom: 1px solid rgba(247, 124, 0, 0.1);
    padding: 1.75rem 2.5rem;
}

@media (min-width: 1200px) {
    #editServiceModal .modal-header {
        padding: 2rem 3rem;
    }
    
    /* Auth modal - větší padding na PC */
    .auth-with-hero .auth-form {
        padding: 0 2.5rem 2rem 2.5rem;
    }
    
    .auth-hero-ledge {
        padding: 12px 2.5rem;
        max-width: 85%;
        margin: 0 auto;
    }
    
    /* Stejná velikost nadpisu jako na mobilu */
    .auth-with-hero .modal-title {
        font-size: 1.3rem;
    }
}

.modal-header h2,
.modal-title {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 800;
    font-size: 1.5rem;
}

/* Přepsat pro auth modal */
.auth-with-hero .modal-title {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 1.3rem;
}

.modal-title {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
    font-weight: 700;
}

.close {
    font-size: 1.8rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.close:hover {
    color: #f77c00;
    background: rgba(247, 124, 0, 0.1);
}

.close:hover {
    color: #333;
}

.auth-form, .service-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form .form-group,
.service-form .form-group {
    margin-bottom: 0;
}

#editServiceModal .service-form .form-group {
    margin-bottom: 0;
}

/* Jemné odsazení mezi poli v horní části registrace (Jméno, Příjmení, Telefon, Datum) */
.auth-form .person-form .form-group,
.auth-form .company-form .form-group {
    margin-bottom: 10px;
}

/* Menší mezera za posledním polem (např. Datum narození) před sekcí se společnými poli */
.auth-form .person-form .form-group:last-child,
.auth-form .company-form .form-group:last-child {
    margin-bottom: 6px;
}

/* U firemní registrace drž konzistentní mezeru mezi IČ a dalším společným polem (email) */
.auth-form .company-form {
    margin-bottom: 0;
}
.auth-form #groupAuthEmail { margin-top: 0; }

/* Datum narození – barevný obdélník vedle štítku */
.date-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}
.date-inline label {
    white-space: nowrap;
    min-width: max-content;
    color: #6b7280;
    font-size: 14px;
}
.auth-form .form-row.two-col {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.auth-form .form-row .half {
    flex: 1 1 0%;
}
.auth-form .date-inline input[type="date"] {
    flex: 1 1 0%;
    width: auto !important;
    min-width: 0;
    display: block;
    box-sizing: border-box;
}
.date-chip {
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    display: inline;
    align-items: initial;
}
.date-chip input[type="date"] {
    appearance: auto;
}
.date-chip input[type="date"]::-webkit-calendar-picker-indicator {
    /* reset filtru */
    filter: none;
}

.auth-form input,
.service-form input,
.service-form select,
.service-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    box-sizing: border-box;
}

#editServiceModal .service-form input,
#editServiceModal .service-form select,
#editServiceModal .service-form textarea {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.auth-form input:focus,
.service-form input:focus,
.service-form select:focus,
.service-form textarea:focus {
    outline: none;
    border-color: #f77c00;
	box-shadow: 0 0 0 3px rgba(247,124,0,0.1);
    background-color: white;
}

#editServiceModal .service-form input:focus,
#editServiceModal .service-form select:focus,
#editServiceModal .service-form textarea:focus {
    border-color: #f77c00;
    box-shadow: 0 0 0 3px rgba(247,124,0,0.1);
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.auth-switch-btn {
    background: none;
    border: none;
    color: #f77c00;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: underline;
    transition: color 0.3s ease;
    text-align: center; /* Zarovnání odkazu na střed */
    width: 100%;
    display: block;
    margin-top: 8px;
}

.auth-switch-btn:hover {
    color: #5c2710;
}

/* Auth modal CTA laděné do brandového stylu */
.auth-form .auth-submit-btn,
.auth-form .btn-primary {
	width: 100%;
	border-radius: 12px;
	background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
	color: #ffffff !important; /* Bílý text jako na obrázku */
	box-shadow: 0 8px 20px rgba(247,124,0,0.25);
	border: none;
	padding: 12px 20px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-sizing: border-box; /* Zajistit, aby šířka zahrnovala padding - stejně široké jako inputy */
	text-align: center; /* Vycentrovat text na střed */
	display: block; /* Zajistit, aby se tlačítko chovalo jako blokový element */
	margin: 0 auto; /* Vycentrovat tlačítko */
}

.auth-form .auth-submit-btn:hover,
.auth-form .btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(247,124,0,0.35);
}

/* Auth – tlačítko Odeslat SMS kód ve firemních barvách */
.auth-form #btnSendPhoneCode {
	width: 100%;
	border-radius: 8px; /* Stejné jako inputy */
	background: transparent;
	color: #c45a00;
	font-weight: 800;
	font-size: 0.85rem; /* Menší text */
	line-height: 1.2; /* Kompaktnější výška */
	border: 2px solid transparent;
	border-image: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
	border-image-slice: 1;
	padding: 12px 15px; /* Stejné jako inputy pro stejnou výšku */
	box-sizing: border-box;
	height: auto;
	min-height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	white-space: normal; /* Povolit zalamování textu */
}
.auth-form #btnSendPhoneCode:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(247,124,0,0.2);
}

/* Auth – tlačítko Ověřit (IČ) ve firemních barvách */
.auth-form #btnVerifyICO {
	flex: 1; /* Stejná šířka jako input IČO - každé na půlce */
	padding: 12px 15px; /* Stejné jako inputy pro stejnou výšku */
	border-radius: 8px; /* Stejné jako inputy */
	background: transparent;
	color: #c45a00;
	font-weight: 700;
	font-size: 0.95rem; /* Menší text */
	border: 2px solid transparent;
	border-image: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
	border-image-slice: 1;
	transition: all .2s ease;
	box-sizing: border-box;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.auth-form #btnVerifyICO:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(247,124,0,0.18);
}
.auth-form #btnVerifyICO:active {
	transform: translateY(0);
	box-shadow: 0 6px 14px rgba(247,124,0,0.12);
}

/* Message Styles */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 3000;
    animation: messageSlideIn 0.3s ease-out;
    max-width: 300px;
}

.message-error {
    background: #e74c3c;
}

.message-success {
    background: #27ae60;
}

.message-info {
    background: #f77c00;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-success {
    background-color: #28a745;
}

.message-error {
    background-color: #dc3545;
}

.message-info {
    background-color: #17a2b8;
}

/* Service Form Specific Styles */
.service-form select {
    cursor: pointer;
}

.service-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Tlačítko v edit service modalu */
#editServiceModal .service-form .btn-primary {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.25);
    width: 100%;
    margin-top: 1rem;
}

#editServiceModal .service-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(247, 124, 0, 0.35);
}

#editServiceModal .service-form .btn-primary:active {
    transform: translateY(0);
}

/* Styly pro správu fotek v edit modalu */
.images-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.edit-image-item {
    position: relative;
    border-radius: 10px;
    overflow: visible;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.edit-image-item:hover {
    border-color: #f77c00;
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.2);
}

.edit-image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.edit-image-item button {
    transition: all 0.2s ease;
}

.edit-image-item button:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .images-preview-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
        overflow: visible;
    }
    
    .edit-image-item {
        overflow: visible;
    }
    
    .edit-image-item img {
        height: 100px;
    }
    
    .image-preview-item {
        overflow: visible;
    }
    
    .image-item {
        overflow: visible;
    }
    
    /* Zajistit viditelnost tlačítek na mobilu */
    .remove-image-btn,
    .ig-file-remove,
    .image-item .remove-btn,
    .edit-image-item button {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        top: -4px !important;
        right: -4px !important;
        z-index: 100 !important;
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 0;
        margin: 1rem;
    }
    
    /* Auth form - menší padding na mobilu */
    .auth-with-hero .auth-form {
        padding: 0 1rem 1rem 1rem;
    }
    
    .auth-hero-ledge {
        padding: 14px 1rem;
    }
    
    #editServiceModal .modal-content {
        width: 95%;
        padding: 0;
        margin: 1rem;
        border-radius: 15px !important;
    }
    
    #editServiceModal .modal-content .service-form {
        padding: 1.5rem;
        overflow-y: auto;
        max-height: calc(90vh - 80px);
    }
    
    #editServiceModal .modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .auth-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-profile {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .user-dropdown-menu {
        min-width: 200px;
        right: -10px;
    }
    
    .user-dropdown-header {
        padding: 0.8rem;
    }
    
    .user-dropdown-header i {
        font-size: 1.5rem;
    }
    
    .user-display-name {
        font-size: 0.9rem;
    }
    
    .user-email {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1rem;
    }
    
    /* Auth form - ještě menší padding na malých mobilních zařízeních */
    .auth-with-hero .auth-form {
        padding: 0 0.75rem 0.75rem 0.75rem;
    }
    
    .auth-hero-ledge {
        padding: 12px 0.75rem;
    }
    
    .auth-form input,
    .service-form input,
    .service-form select,
    .service-form textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    #editServiceModal .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 1rem auto;
        padding: 0;
        border-radius: 15px !important;
    }
    
    #editServiceModal .modal-content .service-form {
        padding: 1.25rem;
        overflow-y: auto;
        max-height: calc(90vh - 80px);
    }
    
    #editServiceModal .modal-header {
        padding: 1rem 1.25rem;
    }
}

/* Add Service Button Animation */
.add-service-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Services Page Styles */
.services-page-header {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
    color: #1a1a1a;
    padding: 40px 0 60px;
    margin-top: 0;
    border-top: none;
}

.page-header-content {
    text-align: center;
}

.page-header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.search-filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    justify-items: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    /* zabránit překryvu kartami (např. TOP efekty / hover z-index) */
    position: relative;
    z-index: 20;
    margin-bottom: 18px;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid rgba(247, 124, 0, 0.2);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.1);
    color: #2c3e50;
}

/* Stylování selectu v search boxu (kraje) stejně jako input */
.search-box select {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid transparent;
    border-radius: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    backdrop-filter: blur(15px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    color: #2c3e50;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.search-box select:hover {
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(248,249,250,1) 100%);
    border-color: #f77c00;
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.search-box select:focus {
    outline: none;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(248,249,250,1) 100%);
    border-color: #f77c00;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2), 0 6px 25px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.search-box input:hover {
    background: linear-gradient(135deg, #ffffff 0%, #fff9e6 100%);
    border-color: #f77c00;
    box-shadow: 0 6px 25px rgba(247, 124, 0, 0.2);
    transform: translateY(-2px);
}

.search-box input:focus {
    outline: none;
    background: linear-gradient(135deg, #ffffff 0%, #fff9e6 100%);
    border-color: #f77c00;
    box-shadow: 0 0 0 4px rgba(247, 124, 0, 0.2), 0 6px 25px rgba(247, 124, 0, 0.15);
    transform: translateY(-2px);
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #f77c00;
    font-size: 0.9rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box input:hover + i {
    color: #e66a00;
    transform: translateY(-50%) scale(1.1);
}

.search-box input:focus + i {
    color: #e66a00;
    transform: translateY(-50%) scale(1.1);
}

.filter-dropdown,
.sort-dropdown {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.filter-dropdown select,
.sort-dropdown select {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid transparent;
    border-radius: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    backdrop-filter: blur(15px);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-dropdown::after,
.sort-dropdown::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #f77c00;
    pointer-events: none;
    font-size: 0.9rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-dropdown select:hover,
.sort-dropdown select:hover {
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(248,249,250,1) 100%);
    border-color: #f77c00;
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.filter-dropdown select:hover + .filter-dropdown::after,
.sort-dropdown select:hover + .sort-dropdown::after {
    color: #5c2710;
    transform: translateY(-50%) scale(1.1);
}

.filter-dropdown select:focus,
.sort-dropdown select:focus {
    outline: none;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(248,249,250,1) 100%);
    border-color: #f77c00;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2), 0 6px 25px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.filter-dropdown select:focus + .filter-dropdown::after,
.sort-dropdown select:focus + .sort-dropdown::after {
    color: #5c2710;
    transform: translateY(-50%) scale(1.1);
}

/* Services Listing */
.services-listing {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.services-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f77c00;
    margin-bottom: 0.5rem;
    text-align: center;
}

.stat-label {
    color: #666;
    font-weight: 500;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}
.service-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(247, 124, 0, 0.2);
    border: 2px solid #f77c00;
}
.service-item-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.service-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.8) 0%, rgba(92, 39, 16, 0.7) 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.service-content {
    padding: 1rem 1.5rem;
}

.service-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.service-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.service-detail i {
    width: 16px;
    color: #f77c00;
}

.service-actions {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: auto;
}

@media (max-width: 768px) {
    .service-actions {
        padding: 0.8rem 1rem;
        gap: 0.4rem;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-actions .btn {
        font-size: 0.75rem;
        padding: 10px 8px;
        gap: 0.3rem;
        min-height: 36px;
    }
}

.service-actions .btn {
    padding: 12px 8px;
    font-size: 0.8rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 0;
    text-align: center;
    min-height: 40px;
    width: 100%;
}

.service-actions .btn-primary {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    border: none;
}

.service-actions .btn-primary:hover {
    background: linear-gradient(135deg, #e66a00 0%, #fdf002 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.4);
}

.service-actions .btn-success {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    border: none;
}

.service-actions .btn-success:hover {
    background: linear-gradient(135deg, #e66a00 0%, #fdf002 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.4);
}

.service-actions .btn-outline {
    background: transparent;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: 2px solid #f77c00;
}

.service-actions .btn-outline:hover {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.4);
}

/* Loading and Error States */
.loading-services {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    width: 100%;
    box-sizing: border-box;
}

.loading-services i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f77c00;
}

.loading-services p {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

.no-services {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1.5rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

.no-services-icon {
    margin-bottom: 1rem;
}

.no-services i {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    color: #ddd;
    opacity: 0.6;
}

.no-services h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.no-services p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.no-services-suggestion {
    font-size: 0.9rem !important;
    color: #999 !important;
    font-style: italic;
    margin-top: 0.5rem;
}

.no-services-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.25rem;
}

/* Responsive - kompaktnější na mobilu */
@media (max-width: 768px) {
    .no-services {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }
    
    .no-services i {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .no-services h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .no-services p {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .no-services-actions {
        margin-top: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .no-services-actions .btn-start-free {
        width: 100%;
        max-width: 100%;
        padding: 16px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .no-services {
        padding: 1.25rem 0.75rem;
    }
    
    .no-services i {
        font-size: 2rem;
    }
    
    .no-services h3 {
        font-size: 1.1rem;
    }
    
    .no-services p {
        font-size: 0.85rem;
    }
}

.no-services-actions .btn-bulldogo {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
}

.no-services-actions .btn-bulldogo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 124, 0, 0.4);
}

.no-services-actions .btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.no-services-actions .btn-secondary:hover {
    border-color: #f77c00;
    color: #f77c00;
}

/* My Ads Grid - specifické formátování pro PC */
@media (min-width: 769px) {
    #myAdsGrid.ads-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px !important;
        max-width: 1600px !important;
        width: 100% !important;
        margin: 0 auto 80px auto !important; /* Přidán margin-bottom pro prostor pod inzeráty */
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important; /* Zajistit, aby se karty neřezaly */
    }
    
    #myAdsGrid.ads-grid > .ad-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    #myAdsGrid .loading-services {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
}

/* My Ads – empty state CTA button (match screenshot style) */
#myAdsGrid .no-services-actions {
    flex-direction: column;
    align-items: center;
}

#myAdsGrid .btn-start-free {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    min-width: auto;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    color: #ffffff;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    position: relative;
    overflow: hidden;
}

#myAdsGrid .btn-start-free i {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    font-weight: 700;
    width: 1.2em;
    height: 1.2em;
}

#myAdsGrid .btn-start-free::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 60px at 20% 10%, rgba(255,255,255,0.25), rgba(255,255,255,0) 55%);
    pointer-events: none;
}

#myAdsGrid .btn-start-free:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 124, 0, 0.4);
    filter: brightness(1.02);
}

#myAdsGrid .btn-start-free:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
}

#myAdsGrid .btn-start-free:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 210, 0, 0.45), 0 6px 20px rgba(247, 124, 0, 0.4);
}

@media (max-width: 768px) {
    #myAdsGrid .btn-start-free {
        font-size: 0.95rem;
        padding: 12px 20px;
        gap: 6px;
    }
    #myAdsGrid .btn-start-free i {
        font-size: 1rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
        font-weight: 700;
        width: 1.2em;
        height: 1.2em;
    }
}

@media (max-width: 480px) {
    #myAdsGrid .btn-start-free {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
    #myAdsGrid .btn-start-free i {
        font-size: 0.95rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
        font-weight: 700;
        width: 1.2em;
        height: 1.2em;
    }
}

.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #dc3545;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Service Details Modal */
.service-details-modal {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.service-details-content {
    padding: 0;
}

.service-detail-section {
    margin-bottom: 2rem;
}

.service-detail-section h3 {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-details-grid {
    display: grid;
    gap: 0.8rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-item i {
    width: 20px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Active Navigation */
.nav-link.active {
    color: #ffd700;
    font-weight: 600;
}

/* My Ads Specific Styles */
.service-status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Stats Section for My Ads */
.stats-section {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #f77c00;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f77c00;
    font-size: 1.2rem;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-align: center;
}

.stat-content p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 768px) {
    .stats-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-card {
        min-width: auto;
    }
}


/* Dashboard Styles */
.admin-login-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f77c00 0%, #5c2710 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.admin-login-container {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-login-header i {
    font-size: 3rem;
    color: #f77c00;
    margin-bottom: 1rem;
}

.admin-login-header h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

.admin-login-header p {
    color: #666;
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-login-form .form-group {
    margin-bottom: 0;
}

.admin-login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.admin-login-form input:focus {
    outline: none;
    border-color: #f77c00;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-icon {
    font-size: 1.5rem;
    color: white;
}

.admin-name {
    color: white;
    font-weight: 500;
}

.dashboard-section {
    padding: 120px 0 80px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.dashboard-header {
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.dashboard-header h1 i {
    color: #f77c00;
    margin-right: 0.5rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid #f77c00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f77c00;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.2rem;
    text-align: center;
}

.stat-content p {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.dashboard-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dashboard-controls .search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.dashboard-controls .search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    background: white;
}

.dashboard-controls .search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #f77c00;
    font-size: 0.9rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box input:hover + i {
    color: #e66a00;
    transform: translateY(-50%) scale(1.1);
}

.search-box input:focus + i {
    color: #e66a00;
    transform: translateY(-50%) scale(1.1);
}

.dashboard-controls .filter-dropdown {
    position: relative;
    flex: 1;
    min-width: 150px;
}

.dashboard-controls .filter-dropdown select {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid #e8ecf0;
    border-radius: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    color: #2c3e50;
}

.dashboard-controls .filter-dropdown::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #f77c00;
    pointer-events: none;
    font-size: 0.9rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-controls .filter-dropdown select:hover {
    border-color: #f77c00;
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.dashboard-controls .filter-dropdown select:focus {
    outline: none;
    border-color: #f77c00;
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2), 0 6px 25px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.users-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Rozšíření containeru na stránce uživatelů přes celou obrazovku */
body:has(.users-container) .main-content,
.main-content:has(.users-container) {
    max-width: calc(100% - 70px) !important;
    width: calc(100% - 70px) !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

body:has(.users-container) .main-content .container,
.main-content:has(.users-container) .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 1.5rem !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.users-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.users-header h2 {
    color: #333;
    margin: 0;
}

.users-header h2 i {
    color: #f77c00;
    margin-right: 0.5rem;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Na menších obrazovkách upravit počet sloupců */
@media (max-width: 1600px) {
    .users-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .users-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .users-grid {
        grid-template-columns: 1fr;
    }
}

.user-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e0e0e0;
    min-width: 0;
    box-sizing: border-box;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: white;
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.user-card .user-avatar i {
    font-size: 2rem;
    color: #f77c00;
    flex-shrink: 0;
}

.user-info h3 {
    color: #333;
    margin-bottom: 0.2rem;
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-info p {
    color: #666;
    font-size: 0.85rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-card-stats {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.user-card-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    font-size: 0.8rem;
}

.user-card-stats .stat-item i {
    width: 14px;
    color: #f77c00;
    flex-shrink: 0;
}

.user-card-actions {
    display: flex;
    gap: 0.5rem;
}

.user-card-actions .btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.loading-users,
.no-users {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading-users i,
.no-users i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f77c00;
}

/* User Details Modal */
.user-details-modal {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.user-details-content {
    padding: 0;
}

.user-info-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f77c00 0%, #5c2710 100%);
    color: white;
}

.user-info-section .user-avatar i {
    font-size: 3rem;
    color: white;
}

.user-info-section h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.user-info-section p {
    margin-bottom: 0.2rem;
    opacity: 0.9;
}

/* User Balance Section */
.user-balance-section {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.balance-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.balance-display i {
    font-size: 1.2rem;
    color: #28a745;
}

.balance-label {
    font-weight: 600;
    color: #333;
}

.balance-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #28a745;
}

.balance-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.balance-form .form-group {
    margin-bottom: 0;
}

.balance-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.balance-form input,
.balance-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.balance-form input:focus,
.balance-form textarea:focus {
    outline: none;
    border-color: #f77c00;
}

.user-ads-section {
    padding: 1.5rem;
}

.user-ads-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.user-ads-section h3 i {
    color: #f77c00;
    margin-right: 0.5rem;
}

.user-ads-grid {
    display: grid;
    gap: 1rem;
}

.user-ad-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
}
.ad-header {
    margin-bottom: 0.8rem;
}

.ad-header h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.ad-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.8) 0%, rgba(92, 39, 16, 0.7) 100%);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ad-description {
    color: #666;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.ad-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ad-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.ad-detail i {
    width: 16px;
    color: #f77c00;
}

.no-ads {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-ads i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ccc;
}

/* Responsive Design for Services Page */
@media (max-width: 768px) {
    .services-page-header {
        padding: 100px 0 40px;
    }
    
    .page-header-content h1 {
        font-size: 2rem;
    }
    
    .search-filter-bar {
        /* je to grid – na mobile chceme vše pod sebou */
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-box,
    .filter-dropdown select,
    .sort-dropdown select {
        width: 100%;
        min-width: auto;
    }
    
    .services-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-actions {
        flex-direction: column;
    }
    
    .service-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-header-content h1 {
        font-size: 1.8rem;
    }
    
    .page-header-content p {
        font-size: 1rem;
    }
    
    .service-item-header,
    .service-content,
    .service-actions {
        padding: 1rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
}

/* Dashboard Responsive */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-controls {
        flex-direction: column;
    }
    
    .dashboard-controls .search-box,
    .dashboard-controls .filter-dropdown select {
        width: 100%;
        min-width: auto;
    }
    
    .users-grid {
        grid-template-columns: 1fr;
    }
    
    .user-info-section {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-login-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .balance-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1 {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .user-card {
        padding: 1rem;
    }
    
    .user-details-modal {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Smooth scrolling pro modaly */
/* Skrýt scrollbar pro auth modal - zachovat pro ostatní modaly */
.modal-content.auth-with-hero::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.modal-content.auth-with-hero {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE a Edge */
}

/* Ostatní modaly mohou mít viditelný scrollbar */
.instagram-profile-content::-webkit-scrollbar {
    width: 8px;
}

.instagram-profile-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

/* Services Categories Carousel */
.services-carousel {
    padding: 60px 0;
    background: #ffffff;
    position: relative;
}

.services-carousel .section-header {
    text-align: center;
    margin-bottom: 24px;
}

/* ========================================
   INSTAGRAM-LIKE CHAT STYLES - COMPLETE REDESIGN
   ======================================== */

/* Chat Container - Instagram Style */
.instagram-chat-container {
    display: flex;
    height: 100vh;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

/* Chat Sidebar - Instagram Style */
.chat-sidebar {
    width: 300px;
    background: #ffffff;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.chat-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #262626;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-new-message {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #262626;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-new-message:hover {
    background: #f5f5f5;
    color: #f77c00;
}

/* Chat Search - Instagram Style */
.chat-search {
    padding: 8px 16px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #8e8e8e;
    font-size: 0.9rem;
    z-index: 1;
}

.chat-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fafafa;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chat-search input:focus {
    outline: none;
    background: #ffffff;
    border-color: #c0c0c0;
}

.chat-search input::placeholder {
    color: #8e8e8e;
}

/* Conversations List - Instagram Style */
.conversations-list {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
}

.conversations-list::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Conversation Item - Instagram Style */
.conversation-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.conversation-item:hover {
    background: #fafafa;
}

.conversation-item.active {
    background: #f5f5f5;
    border-left: 3px solid #f77c00;
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin-right: 16px;
    flex-shrink: 0;
    border: 2px solid #ffffff;
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.conversation-title {
    font-size: 1rem;
    font-weight: 600;
    color: #262626;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.conversation-time {
    font-size: 0.75rem;
    color: #8e8e8e;
    white-space: nowrap;
    margin-left: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.conversation-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.last-message {
    font-size: 0.9rem;
    color: #8e8e8e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.unread-badge {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    min-width: 18px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* No Conversations */
.no-conversations {
    text-align: center;
    padding: 60px 20px;
    color: #8e8e8e;
}

.no-conversations i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.no-conversations p {
    margin: 4px 0;
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Chat Main Area - Instagram Style */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* vyplní výšku, input dole */
    background: #ffffff;
    position: relative;
    min-height: 0;               /* umožní child overflow */
}

/* Welcome Screen - Instagram Style */
.chat-welcome {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.welcome-content {
    text-align: center;
    max-width: 350px;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.welcome-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.welcome-content p {
    font-size: 0.9rem;
    color: #8e8e8e;
    margin-bottom: 24px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.3);
}

/* Active Chat - Instagram Style */
.chat-active {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* input dole, hlavička nahoře */
    background: #ffffff;
    min-height: 0;
}

/* Chat Header Active - Instagram Style */
.chat-header-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.back-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #262626;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
}

.back-btn:hover {
    background: #f5f5f5;
    color: #f77c00;
}

.chat-user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    margin-right: 10px;
    border: 2px solid #ffffff;
}

.user-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #262626;
    margin: 0 0 2px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.user-details p {
    font-size: 0.8rem;
    color: #8e8e8e;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chat-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #262626;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.action-btn:hover {
    background: #f5f5f5;
    color: #f77c00;
}

/* Pinned Ad - Instagram Style */
.pinned-ad {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.pinned-ad-content {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pinned-ad-content:hover {
    border-color: #f77c00;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(247, 124, 0, 0.15);
}

.pinned-ad-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    margin-right: 10px;
}

.pinned-ad-info {
    flex: 1;
}

.pinned-ad-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #262626;
    margin: 0 0 4px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pinned-ad-details {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #8e8e8e;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pinned-ad-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pinned-ad-price {
    font-weight: 600;
    color: #f77c00;
}

.pinned-ad-close {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #8e8e8e;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

.pinned-ad-close:hover {
    background: #f5f5f5;
    color: #f77c00;
}

/* Messages Container - Instagram Style */
.messages-container {
    flex: 1;
    padding: 60px 40px 140px;   /* 2× větší horní odsazení a více místa nad inputem */
    overflow-y: auto;            /* scroll jen v oblasti zpráv */
    background: #ffffff;
    display: flex;
    flex-direction: column;      /* zprávy pod sebou */
    gap: 6px;                    /* decentní mezera */
    justify-content: flex-end;   /* poslední zprávy dole, když je jich málo */
    align-items: stretch;        /* řádky přes celou šířku sloupce */
    height: 100%;
    max-width: 900px;            /* šířka sloupce se zprávami jako IG */
    width: 100%;
    margin: 0 auto;              /* centrování sloupce mezi headerem a inputem */
    min-height: 0;               /* umožní správné flex chování */
}

.messages-container::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Message Styles - Instagram Style */
.message {
    display: flex;
    margin: 0;
    padding: 0;
}

.message.own {
    justify-content: flex-end;
}

.message.other {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.message.own .message-content {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.other .message-content {
    background: #f1f1f1;
    color: #262626;
    border-bottom-left-radius: 4px;
}

.message-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
    display: block;
}

.message-image {
    max-width: 200px;
    border-radius: 12px;
    margin-top: 5px;
}

.no-messages {
    text-align: center;
    color: #8e8e8e;
    font-style: italic;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.no-messages i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Message Input - Instagram Style */
.message-input-container {
    padding: 20px 40px;           /* menší výška, aby vlákno lícovalo níž */
    border-top: 1px solid #e0e0e0;
    background: #ffffff;
}

.message-input-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f1f1f1;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    padding: 12px 20px;           /* o něco menší výška */
    transition: all 0.2s ease;
}

.message-input-wrapper:focus-within {
    border-color: #f77c00;
    background: #ffffff;
}

.attachment-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: #8e8e8e;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.attachment-btn:hover {
    background: #e0e0e0;
    color: #f77c00;
}

.input-field {
    flex: 1;
}

.message-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 10px 0;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.message-input::placeholder {
    color: #8e8e8e;
}

.send-btn {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(247, 124, 0, 0.3);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Login Prompt - Instagram Style */
.login-prompt {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.login-prompt-content {
    text-align: center;
    max-width: 350px;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.login-prompt-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-prompt-content p {
    font-size: 0.9rem;
    color: #8e8e8e;
    margin-bottom: 24px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.login-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-actions .btn-primary {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
}

.login-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.3);
}

.login-actions .btn-secondary {
    background: #f1f1f1;
    color: #262626;
    border: 1px solid #e0e0e0;
}

.login-actions .btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

/* Mobile Responsive - Instagram Style */
@media (max-width: 768px) {
    .instagram-chat-container {
        height: 100vh;
        border-radius: 0;
    }
    
    .chat-sidebar {
        width: 100%;
        position: absolute;
        z-index: 10;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .chat-sidebar.open {
        transform: translateX(0);
    }
    
    .chat-main {
        width: 100%;
    }
    
    .conversation-item {
        padding: 10px 12px;
    }
    
    .conversation-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .message-content {
        max-width: 85%;
        padding: 6px 10px;
    }
    
    .messages-container {
        padding: 12px;
    }
    
    .message-input-container {
        padding: 12px;
    }
}

/* Responsive Hero Sections */
@media (max-width: 768px) {
    .services-hero .hero-title,
    .my-ads-hero .hero-title {
        font-size: 2rem;
    }
    
    .services-hero .hero-subtitle,
    .my-ads-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .services-hero,
    .my-ads-hero {
        padding: 60px 0;
    }
}

/* Profile Modal Styles */
.profile-modal {
    width: 1000px;
    height: 800px;
    overflow: hidden;
    border: 2px solid rgba(247, 124, 0, 0.1);
    box-shadow: 0 8px 32px rgba(247, 124, 0, 0.2);
}

.profile-content {
    padding: 20px;
    height: calc(100% - 80px);
    overflow: hidden;
    box-sizing: border-box;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(247, 124, 0, 0.1);
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.05) 0%, rgba(253, 240, 2, 0.05) 100%);
    border-radius: 8px;
    padding: 15px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin-right: 20px;
    box-shadow: 0 4px 16px rgba(247, 124, 0, 0.3);
}

.profile-info h3 {
    font-size: 20px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.profile-info p {
    color: #f77c00;
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.05) 0%, rgba(253, 240, 2, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(247, 124, 0, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #f77c00;
    opacity: 0.8;
    text-align: center;
}

.profile-section {
    margin-bottom: 20px;
}

.profile-section h4 {
    font-size: 16px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.profile-section p {
    color: #f77c00;
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
}

.user-ads-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-ad-item {
    padding: 15px;
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.05) 0%, rgba(253, 240, 2, 0.05) 100%);
    border: 2px solid rgba(247, 124, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-ad-item:hover {
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.1) 0%, rgba(253, 240, 2, 0.1) 100%);
    border-color: #f77c00;
    box-shadow: 0 4px 8px rgba(247, 124, 0, 0.2);
}

.user-ad-item h5 {
    font-size: 14px;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.user-ad-item p {
    font-size: 12px;
    color: #f77c00;
    margin: 0 0 5px 0;
    opacity: 0.8;
}

.user-ad-price {
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-ads {
    text-align: center;
    color: #f77c00;
    font-style: italic;
    padding: 20px;
    opacity: 0.8;
}

.no-pinned-ad {
    text-align: center;
    color: #f77c00;
    font-style: italic;
    padding: 20px;
    opacity: 0.8;
}

.no-pinned-ad i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    perspective: 1000px; /* for 3D tilt of side slides */
    padding: 2rem 0;
    margin: -2rem 0;
}

.carousel-track {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transform-style: preserve-3d;
}

.carousel-slide {
    flex: 0 0 calc(100% / 3);
    padding: 10px;
    display: flex;
    justify-content: center; /* center card inside the slide */
    transition: transform 400ms ease, opacity 400ms ease, filter 400ms ease;
    transform-origin: center center;
    opacity: 0.7;
}

/* Center emphasis + angled sides */
.carousel-slide.is-active {
    transform: scale(1) rotateY(0deg);
    opacity: 1;
    z-index: 2;
}
.carousel-slide.is-prev {
    transform: scale(0.92) rotateY(18deg);
    z-index: 1;
}
.carousel-slide.is-next {
    transform: scale(0.92) rotateY(-18deg);
    z-index: 1;
}

.carousel-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 88%; /* slightly smaller than slide */
    max-width: 360px;
    margin: 0 auto; /* center in slide */
    position: relative;
    z-index: 1;
}

/* Square image thumbnail for category */
.carousel-thumb {
    width: 90%;
    aspect-ratio: 1 / 1; /* perfect square */
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid rgba(0,0,0,0.05);
    margin: 0 auto; /* center image */
    max-width: 240px;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Golden gradient glow behind the square+logo (deep background) */
.carousel-thumb::before {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: 18px;
    background: radial-gradient(60% 55% at 50% 50%, rgba(255,215,0,0.32) 0%, rgba(255,165,0,0.28) 35%, rgba(255,140,0,0.18) 55%, rgba(255,255,255,0) 75%);
    filter: blur(14px);
    z-index: -1; /* completely behind the square */
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    opacity: 0.85;
}

.carousel-slide.is-prev .carousel-thumb::before,
.carousel-slide.is-next .carousel-thumb::before {
    opacity: 0.7;
}

.carousel-slide.is-active .carousel-thumb::before {
    opacity: 1;
    filter: blur(16px);
    transform: scale(1.02);
}

/* Smaller thumbnail variant for selected categories */
.carousel-card.thumb-small .carousel-thumb {
    /* Keep the same square size as other categories */
    width: 90%;
    max-width: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Only shrink the inner PNG/logo, keep square background the same */
.carousel-card.thumb-small .carousel-thumb img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    object-position: center;
}

/* Mírně zvětšit obrázky u specifických kategorií */
.carousel-card.thumb-small .carousel-thumb img[data-category="Domácnost & Řemeslníci"],
.carousel-card.thumb-small .carousel-thumb img[data-category="Auto - moto doprava"] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none; /* Odstraněno scale, aby obrázky byly správně vycentrované */
}

.carousel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Gradient glow behind cards */
/* (prev gradient glow behind cards removed per request) */

.carousel-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(247,124,0,0.15) 0%, rgba(92,39,16,0.15) 100%);
    color: #f77c00;
    font-size: 22px;
}

.carousel-title {
    font-size: 1.1rem;
    margin: 0;
    color: #1d1f2a;
}

.carousel-desc {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
}

.carousel-tags {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.carousel-arrow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.carousel-arrow:active {
    transform: translateY(0);
}

.carousel-arrow i {
    pointer-events: none;
}

/* Transition state toggled by JS */
.carousel-animating .carousel-track {
    transition: transform 500ms ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .carousel-slide { flex-basis: calc(100% / 2); }
    .carousel-card { max-width: 320px; width: 90%; }
    .carousel-thumb { max-width: 220px; }
}

@media (max-width: 640px) {
    .carousel-slide { flex-basis: 100%; }
    .carousel-card { max-width: 420px; width: 92%; }
    .carousel-thumb { max-width: 300px; }
}

.modal-content::-webkit-scrollbar-thumb,
.instagram-profile-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.instagram-profile-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Zajištění správného scrollování */
.modal {
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

/* Service Details Gallery Styles */
.service-images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.gallery-image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-image-item:hover {
    transform: scale(1.05);
}

.gallery-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.gallery-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-image-item:hover .gallery-image-overlay {
    opacity: 1;
}

.gallery-image-overlay i {
    color: white;
    font-size: 24px;
}

.gallery-info {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Registration Type Selection Styles */
.registration-type-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.registration-type-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #666;
}

.registration-type-btn:hover {
    border-color: #f77c00;
    color: #f77c00;
}

.registration-type-btn.active {
    border-color: #f77c00;
    background: #f77c00;
    color: white;
}

.registration-type-btn i {
    font-size: 1.2rem;
}

/* Form visibility transitions */
.person-form,
.company-form {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.person-form.hidden,
.company-form.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.person-form.visible,
.company-form.visible {
    max-height: 500px;
    opacity: 1;
}

/* Date input styling */
input[type="date"] {
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

/* Zajistit plnou šířku data v auth formuláři i na Safari */
.auth-form .form-group input[type="date"] {
    width: 100% !important;
    min-width: 0;
    display: block;
    box-sizing: border-box;
}

input[type="date"]:focus {
    border-color: #f77c00;
    outline: none;
}

/* Tel input styling */
input[type="tel"] {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="tel"]:focus {
    border-color: #f77c00;
    outline: none;
}

/* ===== IMAGE UPLOAD STYLES ===== */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-label i {
    margin-right: 0.5rem;
    color: #f77c00;
}

.required {
    color: #dc3545;
}

.required-badge {
    color: #ef4444;
    margin-left: 4px;
    font-weight: 600;
}

.image-preview {
    margin-top: 1rem;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: relative;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-preview.empty {
    color: #666;
    font-style: italic;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-item {
    position: relative;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.image-item:hover {
    transform: scale(1.05);
}

.image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.image-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.image-item .remove-btn:hover {
    background: rgba(220, 53, 69, 1);
}

/* Image preview items for ads */
.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: visible;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.image-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding: 0;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.remove-image-btn:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
}

/* Instagram-like Image Viewer */
.image-viewer-modal {
    z-index: 3000;
}

.image-viewer-content {
    max-width: 90vw;
    max-height: 90vh;
    background: black;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin: auto;
    box-sizing: border-box;
}
.image-viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    padding: 1rem;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-viewer-close {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(10px);
}

.image-viewer-close:hover {
    background: rgba(255,255,255,0.3);
}

.image-viewer-counter {
    color: white;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.image-viewer-body {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-main {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.image-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.image-viewer-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.image-viewer-prev {
    left: 20px;
}

.image-viewer-next {
    right: 20px;
}

.image-viewer-thumbnails {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    justify-content: center;
}

.image-viewer-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.image-viewer-thumbnail:hover,
.image-viewer-thumbnail.active {
    border-color: #f77c00;
    transform: scale(1.1);
}

.image-viewer-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Service Card Image Styles */
.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.service-image:hover {
    transform: scale(1.05);
}

.service-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.service-image-thumb {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.service-image-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.more-images {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.more-images:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

/* ===== CHAT STYLES - Instagram-like design ===== */

.chat-container {
    display: flex;
    height: calc(100vh - 70px);
    background: #f8f9fa;
    margin-top: 70px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Konverzace sidebar */
.conversations-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    height: calc(100vh - 70px);
}

.conversations-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e0e0e0;
    background: white;
    position: relative;
    z-index: 2;
}

.conversations-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.conversations-header h2 i {
    color: #f77c00;
    margin-right: 0.5rem;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.conversation-item:hover {
    background: #f8f9fa;
    z-index: 2;
}

.conversation-item.active {
    background: #e3f2fd;
    border-left: 3px solid #f77c00;
    z-index: 2;
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f77c00 0%, #5c2710 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.conversation-avatar i {
    color: white;
    font-size: 1.5rem;
}

.conversation-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.conversation-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 1;
}

.conversation-time {
    font-size: 0.8rem;
    color: #999;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.conversation-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.last-message {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    position: relative;
    z-index: 1;
}

.unread-badge {
    background: #f77c00;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.no-conversations {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    position: relative;
    z-index: 1;
}

.no-conversations i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.no-conversations p {
    margin: 0.5rem 0;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Chat okno */
.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: calc(100vh - 70px);
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e0e0e0;
    background: white;
    position: relative;
    z-index: 2;
}

.back-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #f77c00;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-right: 1rem;
}

.back-btn:hover {
    background: #f0f0f0;
}

.chat-title {
    flex: 1;
}

.chat-title h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.chat-title p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-action-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.chat-action-btn:hover {
    background: #f0f0f0;
    color: #f77c00;
}

/* Odstraněno - nahrazeno novým designem */

/* Odstraněno - nahrazeno novým designem */

/* Odstraněno - nahrazeno novým designem */

/* Odstraněno - nahrazeno novým designem */
/* Odstraněno - nahrazeno novým designem */

/* Odstraněno - nahrazeno novým designem */
/* Odstraněno - nahrazeno novým designem */
/* Odstraněno - nahrazeno novým designem */

/* Odstraněno - nahrazeno novým designem */
/* Odstraněno - nahrazeno novým designem */

/* Odstraněno - nahrazeno novým designem */
/* Odstraněno - nahrazeno novým designem */

/* Odstraněno - nahrazeno novým designem */
/* Odstraněno - nahrazeno novým designem */

/* Odstraněno - nahrazeno novým designem */
/* Odstraněno - nahrazeno novým designem */
/* Odstraněno - nahrazeno novým designem */
/* Odstraněno - nahrazeno novým designem */
/* Odstraněno - nahrazeno novým designem */

/* Odstraněno - nahrazeno novým designem */
/* Odstraněno - nahrazeno novým designem */
/* Odstraněno - nahrazeno novým designem */

/* Odstraněno - nahrazeno novým designem */
    
/* Odstraněno - nahrazeno novým designem */
    
/* Odstraněno - nahrazeno novým designem */

/* Ad Actions */
.ad-actions {
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    opacity: 1 !important;
    z-index: 10 !important;
    flex-wrap: nowrap !important;
    margin-top: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    visibility: visible !important;
}

.ad-actions button {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: visible;
    margin: 0;
}

.ad-actions button:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.ad-actions button:active {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-edit {
    color: #007bff;
    font-size: 14px;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3) !important;
}

.btn-delete {
    color: #dc3545;
    font-size: 14px;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3) !important;
}

.btn-pause {
    color: #ffc107;
    font-size: 14px;
}

.btn-pause:hover {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3) !important;
}

.btn-activate {
    color: #28a745;
    font-size: 14px;
}

.btn-activate:hover {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
    color: white;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3) !important;
}

.btn-contact {
    color: #007bff;
}

.btn-contact:hover {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3) !important;
}

.btn-profile {
    color: #f77c00;
}

.btn-profile:hover {
    background: linear-gradient(135deg, #f77c00, #fdf002) !important;
    color: white;
    box-shadow: 0 8px 20px rgba(247, 124, 0, 0.3) !important;
}

.btn-info {
    color: #6c757d;
}

.btn-info:hover {
    background: linear-gradient(135deg, #6c757d, #545b62) !important;
    color: white;
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3) !important;
}

/* Ad Price */
.ad-price {
    font-weight: 600;
    color: #f77c00;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    text-align: left; /* Zarovnání vlevo */
}

/* Modern Icon Styles - No Animations */
.ad-actions button i {
    font-size: 18px !important;
    font-weight: 600;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
}

/* Hover efekt na ikonách odstraněn - ikony jsou statické */

/* Animace delay odstraněna - tlačítka jsou statická */

/* Keyframes animace odstraněna - není potřeba */

/* Animace tlačítek odstraněna - tlačítka jsou nyní statická */

/* Zajištění viditelnosti ikonek - vždy viditelné bez animací */
.ad-actions button i,
.ad-actions button i:hover,
.ad-actions button i:focus,
.ad-actions button i:active {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

/* Enhanced Hover Effects */
.ad-actions button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 12px;
    opacity: 0;
}

.ad-actions button:hover::before {
    opacity: 1;
}

/* Responsive Design for Ad Actions */
@media (max-width: 768px) {
    .ad-actions {
        position: absolute !important;
        bottom: 12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        gap: 10px;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        margin-top: 0 !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Pro topované inzeráty: tlačítka absolutně pozicovaná, ale více dole */
    .ad-card.is-top .ad-actions {
        position: absolute !important;
        bottom: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .ad-card.is-top .ad-body {
        padding-bottom: 80px !important;
    }
    
    .ad-actions button {
        width: 42px;
        height: 42px;
        border-radius: 12px !important;
        margin: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        overflow: visible !important;
    }
    
    .ad-actions button:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        background: white !important;
    }
    
    .ad-actions button:active {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
    }
    
    .ad-actions button i {
        font-size: 16px !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 1 !important;
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 480px) {
    .ad-actions {
        position: absolute !important;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        gap: 8px;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        margin-top: 0 !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Pro topované inzeráty: tlačítka absolutně pozicovaná, ale více dole */
    .ad-card.is-top .ad-actions {
        position: absolute !important;
        bottom: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .ad-card.is-top .ad-body {
        padding-bottom: 80px !important;
    }
    
    .ad-actions button {
        width: 38px;
        height: 38px;
        border-radius: 12px !important;
        margin: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        overflow: visible !important;
    }
    
    .ad-actions button:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        background: white !important;
    }
    
    .ad-actions button:active {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
    }
    
    .ad-actions button i {
        font-size: 14px !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 1 !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Force horizontal layout for ad-actions - override all other styles */
.ad-actions,
.ad-card .ad-actions,
article .ad-actions {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    z-index: 10 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Pro topované inzeráty na mobilu: tlačítka absolutně pozicovaná, ale více dole */
@media (max-width: 768px) {
    .ad-card.is-top .ad-actions,
    .ad-card.is-top article .ad-actions {
        position: absolute !important;
        bottom: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .ad-card.is-top .ad-body {
        padding-bottom: 80px !important;
    }
}

.ad-actions button {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
}

/* MAXIMUM SPECIFICITY OVERRIDE - Position below price in text flow */
body .main-content .container .ads-section .ads-grid .ad-card .ad-actions,
body .main-content .container .ads-section .ads-grid article .ad-actions,
.ad-card .ad-actions,
article .ad-actions,
.ad-actions {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    z-index: 10 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Force visibility for debugging */
.ad-actions {
    opacity: 1 !important;
    transform: translateX(-50%) !important;
    visibility: visible !important;
    display: flex !important;
}

.ad-actions button i {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* FINAL OVERRIDE - Force smaller spacing */
html body .main-content .container .ads-section .ads-grid .ad-card .ad-actions,
html body .main-content .container .ads-section .ads-grid article .ad-actions,
html body .ad-card .ad-actions,
html body article .ad-actions,
html body .ad-actions {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Force inline styles via CSS */
.ad-actions[style*="margin-top"] {
    margin-top: 2px !important;
}

.ad-actions[style*="padding"] {
    padding: 2px 0 !important;
}

/* CHAT MESSAGES - OD NULY (Messenger vzhled v barvách Bulldogo) */

/* Kontejner pro zprávy */
#messagesContainer, .messages-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff; /* bílé pozadí jako na screenshotu */
    min-height: 400px;
}

/* Základní styly pro zprávy - již definováno výše */

/* Čas zpráv - již definováno výše */

/* Responzivní design */
@media (max-width: 768px) {
    #messagesContainer, .messages-container {
        padding: 12px;
    }
    
    .message-content {
        max-width: 85%;
        padding: 10px 14px;
    }
}

/* Ad Detail Page Styles */
.ad-detail-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 2rem !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    position: relative !important;
}

/* Zajistit, že main-content neomezuje šířku pro ad-detail */
.main-content:has(.ad-detail-content) {
    max-width: calc(100% - 70px) !important;
    width: calc(100% - 70px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    position: relative !important;
}

@media (max-width: 768px) {
    .main-content:has(.ad-detail-content) {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
        margin-left: 0 !important;
    }
}

/* Zajistit, že ad-detail-content má plnou šířku */
body:has(.ad-detail-content) .main-content .ad-detail-content,
.main-content .ad-detail-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    position: relative !important;
}

@media (max-width: 768px) {
    body:has(.ad-detail-content) .main-content .ad-detail-content,
    .main-content .ad-detail-content {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
}

/* Explicitní pravidlo pro zajištění správného grid rozložení - pouze na PC */
/* Na mobilu - flexbox column */
@media (max-width: 768px) {
    body:has(.ad-detail-content) .ad-detail-main,
    .ad-detail-content .ad-detail-main {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 0 !important;
    }
}

/* Pro PC - grid layout se 2 sloupci */
@media (min-width: 769px) {
    body:has(.ad-detail-content) .ad-detail-main,
    .ad-detail-content .ad-detail-main {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; /* Omezit růst sloupců */
        gap: 2rem !important;
    }
    
    .ad-detail-main {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; /* Omezit růst sloupců */
        gap: 2rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .ad-detail-left {
        order: 1 !important;
        grid-column: 1 !important;
    }
    
    .ad-detail-right {
        order: 2 !important;
        grid-column: 2 !important;
    }
}

.ad-detail-header {
    margin-bottom: 2rem;
}

.back-btn {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    border: none;
    padding: 10px 32px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-height: auto;
    height: auto;
    line-height: 1.4;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.3);
}

/* Specifické styly pro tlačítko Zpět na stránce inzerátu */
.ad-detail-content .back-btn {
    padding: 10px 32px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    gap: 8px !important;
    min-height: auto !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.ad-detail-content .back-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(247, 124, 0, 0.4) !important;
}

.ad-detail-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; /* Omezit růst sloupců */
    gap: 2rem !important;
    margin-bottom: 2rem;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    align-items: start;
    grid-auto-flow: row !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.ad-detail-left {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 2rem;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important; /* Důležité pro grid - umožní zmenšení */
    box-sizing: border-box;
    grid-column: 1 !important;
    overflow: hidden !important; /* Zajistit, že obsah nepřesahuje */
}

.ad-images-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important; /* Důležité pro flex - umožní zmenšení */
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.ad-main-image {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important; /* Důležité pro flex - umožní zmenšení */
    aspect-ratio: 4 / 3 !important; /* FIXNÍ poměr stran - stejný všude */
    height: auto !important; /* Automatická výška podle aspect-ratio */
    min-height: 300px !important; /* Minimální výška pro konzistenci */
    max-height: 600px !important; /* Maximální výška pro konzistenci */
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #6b7280;
    font-size: 3rem;
    border: 2px dashed #e5e7eb;
    overflow: hidden !important;
    position: relative;
    box-sizing: border-box !important;
    flex-shrink: 0 !important; /* Zabraňuje zmenšení */
}

.ad-main-img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important; /* Obrázek vyplní kontejner, zachová poměr stran */
    object-position: center !important; /* Vycentrovat obrázek */
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    box-sizing: border-box !important;
    /* Zajistit, že obrázek nikdy nepřesahuje kontejner */
    overflow: hidden !important;
}

.ad-main-img:hover {
    transform: scale(1.02);
}

.ad-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #f77c00 #f1f1f1;
}

/* Desktop - zarovnat thumbnaily do řádky pod hlavní fotkou */
@media (min-width: 769px) {
    .ad-thumbnails {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }
}

.ad-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.ad-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ad-thumbnails::-webkit-scrollbar-thumb {
    background: #f77c00;
    border-radius: 3px;
}

.ad-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #e66a00;
}

.ad-thumbnail {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    aspect-ratio: 4 / 3 !important; /* Konzistentní poměr stran pro všechny zařízení */
    height: auto !important;
    min-height: 75px !important;
    max-height: 75px !important;
    border-radius: 12px;
    overflow: hidden !important;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.ad-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    box-sizing: border-box !important;
}
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ad-thumbnail:hover {
    border-color: #f77c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.3);
}

.ad-thumbnail.active {
    border-color: #f77c00;
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.3);
}

.ad-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important; /* Vycentrovat obrázek */
    transition: transform 0.3s ease;
}

.ad-thumbnail:hover img {
    transform: scale(1.05);
}

/* No image placeholder */
.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 3rem;
    height: 100%;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.no-image-placeholder span {
    font-size: 1rem;
    margin-top: 1rem;
    color: #6b7280;
}

.ad-thumbnail .no-image-placeholder {
    font-size: 1.5rem;
    height: 100%;
    border-radius: 8px;
}

.ad-thumbnail .no-image-placeholder span {
    display: none;
}

.ad-detail-right {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    height: fit-content;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important; /* Důležité pro grid - umožní zmenšení */
    box-sizing: border-box;
    grid-column: 2 !important;
    overflow: hidden !important; /* Zajistit, že obsah nepřesahuje */
}

.ad-title-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.ad-detail-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ad-detail-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6b7280;
}

.ad-meta-section {
    margin-bottom: 1.5rem;
}

.ad-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.ad-meta-item i {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    color: #f77c00;
    font-size: 1.1rem;
    flex-shrink: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(247, 124, 0, 0.3);
    border-radius: 50%;
    background: rgba(247, 124, 0, 0.1);
}

.ad-meta-item span {
    font-weight: 500;
    color: #374151;
}

.ad-description-section {
    margin-bottom: 1.5rem;
}

.ad-description-section h3 {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.ad-description {
    line-height: 1.6;
    color: #374151;
    font-size: 1rem;
}

/* Tlačítko "číst dále" pro popis profilu a inzerátu */
.read-more-btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.4);
}

.read-more-btn:active {
    transform: translateY(0);
}

/* Zajistit zobrazení tlačítka na mobilu */
@media (max-width: 768px) {
    .read-more-btn {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
        width: auto !important;
        margin-top: 0.75rem !important;
        padding: 0.6rem 1.2rem !important;
        font-size: 0.95rem !important;
    }
    
    /* Zajistit, že sekce s popisem neomezuje zobrazení tlačítka */
    .ad-description-section,
    .profile-detail-right .ad-description-section {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        /* Tlačítko musí být viditelné i při scrollování */
        padding-bottom: 1rem !important;
    }
    
    /* Zajistit zobrazení tlačítka v sekci popisu */
    .ad-description-section #profileBio,
    .profile-detail-right #profileBio,
    #profileBio {
        overflow: visible !important;
        position: relative !important;
    }
    
    .ad-description-section #profileBio .read-more-btn,
    .profile-detail-right #profileBio .read-more-btn,
    #profileBio .read-more-btn,
    #profileBio button.read-more-btn {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
        margin-top: 0.75rem !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* Zajistit zobrazení tlačítka i v ad-description */
    #adDescription .read-more-btn,
    #adDescription button.read-more-btn {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
        margin-top: 0.75rem !important;
    }
    
    /* Zajistit zobrazení tlačítka v popisu profilu */
    #profileBio .read-more-btn,
    .profile-detail-right #profileBio .read-more-btn {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Skryté texty pro expandovatelný obsah */
.bio-text-short,
.ad-text-short {
    display: inline !important;
}

.bio-text-full,
.ad-text-full {
    display: none !important;
}

/* Když je text rozbalený */
.bio-text-full[style*="display: inline"],
.ad-text-full[style*="display: inline"] {
    display: inline !important;
}

.bio-text-short[style*="display: none"],
.ad-text-short[style*="display: none"] {
    display: none !important;
}

.ad-contact-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.ad-contact-section h3 {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item i {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    color: #f77c00;
    font-size: 1.1rem;
    flex-shrink: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(247, 124, 0, 0.3);
    border-radius: 50%;
    background: rgba(247, 124, 0, 0.1);
}

.contact-item span {
    font-weight: 500;
    color: #374151;
}

/* Zajistit, aby labely jako "Email:", "Jméno:" nešly rozdělit na více řádků */
.contact-item > span:first-of-type {
    white-space: nowrap !important;
}

.ad-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ad-actions .btn {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ad-actions .btn-primary {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
}

.ad-actions .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.3);
}

.ad-actions .btn-outline {
    background: transparent;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: 2px solid #f77c00;
}

.ad-actions .btn-outline:hover {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.3);
}

/* Profile Detail Page - Modern Layout */
.profile-detail-main {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
}

.profile-detail-left {
    background: white !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    height: fit-content !important;
    position: sticky !important;
    top: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.profile-detail-right {
    background: white !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    height: fit-content !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.profile-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar-container {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.profile-avatar-placeholder {
    color: #9ca3af;
    font-size: 24px;
}

.profile-header-text {
    flex: 1;
    min-width: 0;
}

.profile-header-text .ad-detail-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    line-height: 1.2;
}

.profile-header-text .ad-detail-price {
    margin: 0;
    font-size: 1rem;
    color: #6b7280;
}

.profile-chat-section {
    width: 100%;
    margin-top: 1.5rem;
}

.profile-chat-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.profile-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 124, 0, 0.3);
}

.ad-user-profile {
    background: white !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin-top: 2rem !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    position: relative !important;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.3);
}

.user-info h3 {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.user-stats {
    display: flex;
    gap: 2rem;
}

.user-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.user-other-ads h4 {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Removed other-ads-grid styles - now using ads-grid for consistency */

.other-ad-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.other-ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #f77c00;
}

.other-ad-image {
    width: 100%;
    height: 150px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 2rem;
    overflow: hidden;
    position: relative;
}

.other-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.other-ad-card:hover .other-ad-image img {
    transform: scale(1.05);
}

.other-ad-info {
    padding: 1rem;
}

.other-ad-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.other-ad-price {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-other-ads {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem;
}

/* ===== PŘESNĚ STEJNÝ LAYOUT JAKO PROFIL - MOBILNÍ ZOBRAZENÍ ===== */
@media (max-width: 768px) {
    /* Main content - přesně jako profil */
    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Ad detail content - přesně jako profil */
    .ad-detail-content {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        background: #ffffff !important;
    }
    
    /* Header - stejné jako profil */
    .ad-detail-header {
        position: relative !important;
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 1.5rem !important;
        z-index: 100 !important;
    }
    
    .back-btn {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
        margin: 0 !important;
        position: fixed !important;
        top: 8px !important;
        right: 8px !important;
        z-index: 200 !important;
    }
    
    .mobile-menu-btn {
        top: 8px !important;
        left: 8px !important;
        z-index: 3000 !important;
    }
    
    /* Main container - flexbox column, kompaktní s paddingem */
    .ad-detail-main {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        background: transparent !important;
    }
    
    /* Levý sloupec - FOTKA PŘES CELOU ŠÍŘKU */
    .ad-detail-left {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        position: static !important;
        top: auto !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        order: 1 !important;
    }
    
    /* Pravý sloupec - TEXT PŘES CELOU ŠÍŘKU pod fotkou */
    .ad-detail-right {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        background: #ffffff !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        order: 2 !important;
    }
    
    /* Profil uživatele pod popisem - KOMPAKTNNÍ */
    .ad-user-profile {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 1rem !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }
    
    /* Pro sekci recenzí - upravit padding, aby se okna neorezala */
    .ad-user-profile:has(#userReviewsSection),
    #userReviewsSection {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Zajistit, aby inner kontejner měl správný padding */
    .ad-user-profile:has(#userReviewsSection) .user-other-ads {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* ===== HLAVNÍ OBRÁZEK - PŘES CELOU ŠÍŘKU ===== */
    .ad-main-image {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
        min-height: 300px !important;
        max-height: 600px !important;
        margin: 0 0 0.75rem 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        display: block !important;
        box-sizing: border-box !important;
        background: #f8f9fa !important;
        position: relative !important;
    }
    
    .ad-main-image .ad-main-img {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Thumbnaily - pod hlavní fotkou, kompaktní */
    .ad-thumbnails {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.5rem 0 !important;
        margin: 0 !important;
        background: transparent !important;
        display: flex !important;
        gap: 0.5rem !important;
        overflow-x: auto !important;
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .ad-thumbnail {
        width: 80px !important;
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        cursor: pointer !important;
        border: 2px solid transparent !important;
        transition: all 0.2s ease !important;
    }
    
    .ad-thumbnail:hover,
    .ad-thumbnail.active {
        border-color: #f77c00 !important;
    }
    
    .ad-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* ===== SEKCE TEXTU - KOMPAKTNNÍ, POSTUPNĚ ===== */
    .ad-title-section,
    .ad-meta-section,
    .ad-description-section,
    .ad-contact-section,
    .ad-actions,
    .ad-chat-section {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin-bottom: 1.25rem !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        overflow-x: hidden !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border-bottom: none !important;
    }
    
    .ad-title-section {
        margin-top: 0 !important;
        margin-bottom: 1.25rem !important;
        padding-bottom: 1rem !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    .ad-meta-section {
        margin-bottom: 1.25rem !important;
    }
    
    .ad-description-section {
        margin-bottom: 1.25rem !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    .ad-contact-section {
        margin-bottom: 1.25rem !important;
    }
    
    .ad-chat-section {
        margin-top: 1rem !important;
        padding: 0 !important;
    }
    
    /* ===== NADPISY A TEXT - STEJNÉ JAKO U PROFILU ===== */
    .ad-detail-title {
        font-size: 1.5rem !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 0 0.5rem 0 !important;
        line-height: 1.2 !important;
        color: #111827 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        -webkit-text-fill-color: #111827 !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
    }
    
    .ad-detail-price {
        font-size: 1rem !important;
        color: #6b7280 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .ad-description-section h3,
    .ad-meta-section h3,
    .ad-contact-section h3 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
        font-weight: 600 !important;
        color: #111827 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .ad-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        color: #374151 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* ===== META INFORMACE A KONTAKT - STEJNÉ JAKO U PROFILU ===== */
    .ad-meta-item,
    .contact-item {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        padding: 0.75rem !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        word-break: break-word !important;
    }
    
    .ad-meta-item:last-child,
    .contact-item:last-child {
        margin-bottom: 0 !important;
    }
    
    .ad-meta-item i,
    .contact-item i {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        color: #f77c00 !important;
        font-size: 1.1rem !important;
        flex-shrink: 0 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 8px rgba(247, 124, 0, 0.3) !important;
        border-radius: 50% !important;
        background: rgba(247, 124, 0, 0.1) !important;
    }
    
    .ad-meta-item span,
    .contact-item span {
        color: #374151 !important;
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        flex: 1 !important;
    }
    
    /* Zajistit, aby labely jako "Email:", "Jméno:" nešly rozdělit na více řádků */
    .contact-item > span:first-of-type {
        white-space: nowrap !important;
    }
    
    /* ===== TLAČÍTKA - STEJNÉ JAKO U PROFILU ===== */
    .ad-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .ad-actions .btn {
        width: 100% !important;
        min-width: auto !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        border: none !important;
        transition: all 0.3s ease !important;
    }
    
    .ad-actions .btn-primary {
        background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(247, 124, 0, 0.3) !important;
    }
    
    .ad-actions .btn-primary:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(247, 124, 0, 0.4) !important;
    }
    
    /* ===== DEFAULT IMAGE CONTAINER ===== */
    .default-image-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        width: 100% !important;
        padding: 2rem 1rem !important;
        box-sizing: border-box !important;
        background: #f9fafb !important;
    }
    
    .ad-default-img {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .default-image-text {
        text-align: center !important;
        color: #6b7280 !important;
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    
    .ad-detail-title {
        font-size: 1.5rem !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 0 0.5rem 0 !important;
        line-height: 1.2 !important;
    }
    
    .ad-detail-price {
        font-size: 1rem !important;
        color: #6b7280 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    /* Zajistit, že sekce mají stejný styl jako u profilu - bez border a shadow */
    .ad-title-section,
    .ad-meta-section,
    .ad-description-section,
    .ad-contact-section {
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-bottom: none !important;
    }
    
    /* Zajistit, že hlavní obrázek má stejnou velikost jako u profilu - plná šířka */
    .ad-main-image {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 1.5rem !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
    }
    
    .ad-main-image .ad-main-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }
    
    /* Zajistit, že popis má stejnou velikost jako u profilu */
    .ad-description-section {
        margin-bottom: 1.5rem !important;
        padding: 0 !important;
    }
    
    .ad-description-section h3 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
        font-weight: 600 !important;
    }
    
    .ad-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        color: #374151 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Zajistit, že thumbnaily jsou správně zobrazeny */
    .ad-thumbnails {
        margin-bottom: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Zajistit, že chat sekce má stejný styl */
    .ad-chat-section {
        margin-top: 1.5rem !important;
        padding: 0 !important;
    }
    
    .ad-meta-item,
    .contact-item {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .ad-meta-item span,
    .contact-item span {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .ad-actions {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    
    .ad-actions .btn {
        width: 100% !important;
        min-width: auto !important;
    }
    
    .user-profile-header {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .user-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    /* Profile Detail Page - Mobile */
    .profile-detail-main {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        display: grid !important;
        overflow-x: hidden !important;
    }
    
    .profile-detail-left {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        position: static !important;
        top: auto !important;
    }
    
    .profile-detail-right {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }
    
    /* Zajistit, že tlačítko v profile-detail-right je viditelné */
    .profile-detail-right .read-more-btn,
    .profile-detail-right #profileBio .read-more-btn {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .profile-header-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    .profile-avatar-container {
        width: 80px !important;
        height: 80px !important;
    }
    
    .profile-header-text .ad-detail-title {
        font-size: 1.5rem !important;
    }
    
    /* Zarovnat tlačítko Začít chat na střed na telefonu */
    .profile-chat-section {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .ad-user-profile {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 1rem !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .ad-user-profile {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .user-other-ads {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Sekce recenzí - zajistit, aby se okna nikdy neorezala */
    #userReviewsSection,
    #userReviewsSection.user-other-ads {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Grid recenzí na mobilu - vždy celé okno, bez ořezávání */
    #userReviewsGrid,
    #userReviewsGrid.reviews-list,
    .user-other-ads #userReviewsGrid,
    #userReviewsSection #userReviewsGrid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
    
    /* Okna recenzí - nikdy nesmí být oříznutá, vždy celé na stránce */
    #userReviewsGrid .review-card-modern,
    #userReviewsGrid .review-card,
    .reviews-list .review-card-modern,
    .reviews-list .review-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }
    
    /* Všechny elementy uvnitř recenzí - zajistit, aby se neorezaly */
    #userReviewsGrid .review-card-modern *,
    #userReviewsGrid .review-card * {
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Zajistit, aby parent kontejnery neorezaly obsah */
    .ad-user-profile:has(#userReviewsGrid),
    .profile-detail-main:has(#userReviewsGrid),
    body:has(#userReviewsGrid) .main-content {
        overflow-x: hidden !important;
    }
    
    /* Konkrétní úprava pro okno recenze - vždy celé viditelné */
    .review-card-modern .review-card-header,
    .review-card-modern .review-card-content,
    .review-card-modern .reviewer-info-modern,
    .review-card-modern .reviewer-details-modern {
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .user-other-ads .ads-grid,
    #otherAdsGrid,
    #userServicesGrid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        display: grid !important;
    }
    
    .user-other-ads .ad-card,
    #otherAdsGrid .ad-card,
    #userServicesGrid .ad-card {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        padding: 12px !important;
        min-height: auto !important;
        height: auto !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .user-other-ads .ad-thumb,
    #otherAdsGrid .ad-thumb,
    #userServicesGrid .ad-thumb {
        width: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        height: 90px !important;
        flex-shrink: 0 !important;
        aspect-ratio: 4 / 3 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }
    
    .user-other-ads .ad-thumb img,
    #otherAdsGrid .ad-thumb img,
    #userServicesGrid .ad-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }
    
    .user-other-ads .ad-body,
    #otherAdsGrid .ad-body,
    #userServicesGrid .ad-body {
        flex: 1 !important;
        padding: 0 !important;
        padding-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        min-width: 0 !important;
        position: relative !important;
    }
    
    .user-other-ads .ad-actions,
    #otherAdsGrid .ad-actions,
    #userServicesGrid .ad-actions {
        position: static !important;
        transform: none !important;
        left: auto !important;
        bottom: auto !important;
        margin-top: auto !important;
        padding-top: 8px !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    .user-other-ads .ad-title,
    #otherAdsGrid .ad-title,
    #userServicesGrid .ad-title {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        color: #111827 !important;
        font-weight: 600 !important;
    }
    
    .user-other-ads .ad-meta-details,
    #otherAdsGrid .ad-meta-details,
    #userServicesGrid .ad-meta-details {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        font-size: 0.8rem !important;
        margin-bottom: 4px !important;
    }
    
    .user-other-ads .ad-meta-item,
    #otherAdsGrid .ad-meta-item,
    #userServicesGrid .ad-meta-item {
        font-size: 0.75rem !important;
    }
    
    .user-other-ads .ad-location,
    #otherAdsGrid .ad-location,
    #userServicesGrid .ad-location {
        font-size: 0.85rem !important;
        color: #6b7280 !important;
        margin-bottom: 4px !important;
    }
    
    .user-other-ads .ad-price,
    #otherAdsGrid .ad-price,
    #userServicesGrid .ad-price {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        margin-bottom: 4px !important;
    }
    
    .user-other-ads h4 {
        font-size: clamp(1rem, 4vw, 1.2rem) !important;
        margin-bottom: 1rem !important;
    }
}

/* Logo text style for ad detail page */
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

/* Zamaskované telefonní číslo na detailu inzerátu pro nepřihlášené */
.masked-phone {
    filter: blur(3px);
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.blurred-contact {
    filter: blur(4px);
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: filter 0.2s ease;
    position: relative;
    pointer-events: auto !important; /* Povolit klikání pro otevření modalu */
}

.blurred-contact:hover {
    filter: blur(3px);
}

.contact-item .blurred-contact {
    cursor: pointer !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Zabránit kopírování zablurovaného kontaktu pomocí kontextového menu */
.blurred-contact::selection,
.blurred-contact::-moz-selection {
    background: transparent !important;
    color: transparent !important;
}

/* Zabránit označení zablurovaného kontaktu při drag */
.blurred-contact {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

/* Footer positioning for ad detail page - using same as other pages */
/* Pagination Styles - Modern Design */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6b7280;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 1rem;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    border-color: #f77c00;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(247, 124, 0, 0.3);
    transform: translateY(-2px);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(247, 124, 0, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-number {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    background: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pagination-number:hover {
    background: linear-gradient(135deg, rgba(247, 124, 0, 0.1) 0%, rgba(253, 240, 2, 0.1) 100%);
    border-color: rgba(247, 124, 0, 0.3);
    color: #f77c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.2);
}

.pagination-number.active {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: #ffffff;
    border-color: #f77c00;
    box-shadow: 0 4px 16px rgba(247, 124, 0, 0.4);
    transform: scale(1.05);
}

.pagination-number.active:hover {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 124, 0, 0.5);
}

/* ========================================
   CHAT PAGE OVERRIDES (scoped, highest priority)
   ======================================== */
body.chat-page #messagesContainer,
body.chat-page .messages-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;   /* poslední zprávy nalepené na input */
    align-items: stretch !important;
    gap: 6px !important;
    padding: 24px 40px 24px !important;     /* těsně nad inputem, žádný velký odstup */
    background: #ffffff !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: 900px !important;
    width: 100% !important;
    margin: 0 auto !important;
    overflow-y: auto !important;
}

/* Centrovat samotný sloupec se zprávami v rámci .chat-active (flex-direction: column) */
body.chat-page .chat-active #messagesContainer,
body.chat-page .chat-active .messages-container {
    align-self: center !important; /* horizontální centrování flex-itemu */
}

body.chat-page .message { display: block !important; width: 100% !important; }
body.chat-page .message-content { display: inline-block !important; max-width: 70% !important; }                                                                
body.chat-page .message.own .message-content { margin-left: auto !important; }
body.chat-page .message.other .message-content { margin-right: auto !important; }                                                                               

/* Fotka podpisu v sekci About */
.about img[alt="Podpis Dominik Hašek"],
.about img[src*="podpis"],
.about img[src*="podpis.png"],
.about img[src*="podpis.jpeg"],
.about img[src*="podpis.PNG"] {
    width: 35% !important;
    max-width: 105px !important;
    height: auto !important;
    display: block !important;
    margin: 10px auto 0 !important;
    padding: 0 20px !important;
    box-sizing: content-box !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Barva textu v sekci About */
.about .about-text,
.about .about-text p,
.about .about-text h2,
.about .about-text .services-title,
.about .about-text .title-text {
    color: #000000 !important;
}

/* Barva ikonky vyhledávače v CTA sekci */
.cta-connect .btn-cta-primary .fas.fa-search {
    color: #ffffff !important;
}

/* Zarovnání textu v hero sekci */
.hero-title {
    text-align: left !important;
}

.hero-slogan {
    text-align: left !important;
}

/* ===== KOMPLEXNÍ RESPOZIVNÍ ÚPRAVY PRO MOBILY A TABLETY ===== */

/* Tablet breakpoint (768px - 1024px) */
/* Tablet optimizations for ad and profile detail pages */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-content {
        margin-left: 70px;
        padding: 1.5rem;
    }
    
    .ad-detail-main {
        gap: 1.5rem;
    }
    
    .ad-detail-left {
        position: static;
        top: auto;
    }
    
    .profile-detail-main {
        gap: 1.5rem;
    }
    
    .profile-detail-left {
        position: static;
        top: auto;
    }
    
    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .promo-container {
        grid-template-columns: 180px 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ad-create-layout {
        grid-template-columns: 1fr;
    }
    
    .ad-create-aside {
        position: relative;
        top: 0;
    }
    
    /* Zajistit, že mobilní menu tlačítko je skryto na tabletech */
    .mobile-menu-btn {
        display: none !important;
    }
}

/* Mobile breakpoint (max 768px) */
@media (max-width: 768px) {
    html {
        position: relative;
        width: 100% !important;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
    
    body {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        position: relative;
    }
    
    /* Main content spacing - ŽÁDNÝ PADDING NA STRANÁCH! */
    .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important; /* Stránka až nahoru - žádný bílý prostor */
        padding-bottom: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Zajistit, že všechny sekce vyplňují celou šířku - 100vw */
    section {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Hero, services, about, contact sekce - 100vw */
    .hero,
    .services,
    .about,
    .contact,
    .ads-section,
    .features,
    .cta-connect {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important; /* Stránka až nahoru - žádný bílý prostor */
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Page hero sekce - bílá mezera nad nimi */
    .page-hero,
    .services-hero,
    .top-ads-hero,
    .my-ads-hero {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 1.5rem !important;
        position: relative !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }
    
    .page-hero *,
    .services-hero *,
    .top-ads-hero *,
    .my-ads-hero * {
        pointer-events: auto !important;
    }
    
    /* Footer - 100vw */
    footer,
    .footer {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Všechny divy uvnitř sekcí */
    section > div,
    .hero > div,
    .services > div,
    .about > div,
    .contact > div {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Hero container - odstranit padding na stranách */
    .hero-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Zajistit, že žádný element nepřesahuje šířku viewportu */
    body > *,
    .main-content > * {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    /* Sidebar mobile improvements */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        max-width: 85vw;
        z-index: 2000;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        height: 100vh;
        height: 100dvh; /* Pro mobilní zařízení */
    }
    
    .sidebar.mobile-open {
        transform: translateX(0) !important;
        transition: none !important; /* Zakázat všechny animace na mobilu */
        width: 280px !important;
    }
    
    /* Zobrazit logo text když je menu otevřené - přepisuje všechny obecné styly */
    .sidebar.mobile-open .logo-text,
    .sidebar.mobile-open:not(:hover) .logo-text {
        opacity: 1 !important;
        transform: none !important; /* Odstranit všechny transformace */
        width: auto !important;
        transition: none !important; /* Zakázat animace na mobilu */
        overflow: visible !important;
    }
    
    /* Zobrazit sidebar header správně když je menu otevřené */
    .sidebar.mobile-open .sidebar-header {
        padding: 1rem 1.5rem !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        transition: none !important; /* Zakázat animace na mobilu */
    }
    
    /* Zakázat animace pro logo a logo-icon na mobilu */
    .sidebar.mobile-open .logo,
    .sidebar.mobile-open .logo-icon {
        transition: none !important;
        transform: none !important;
    }
    
    /* Aplikovat hover styly na logo - vždy jako při hoveru - přepisuje :not(:hover) */
    .sidebar.mobile-open .logo,
    .sidebar.mobile-open:not(:hover) .logo {
        justify-content: flex-start !important; /* Logo zarovnané vlevo */
        align-items: center !important;
        gap: 0.1rem !important;
        width: 100% !important;
    }
    
    .sidebar.mobile-open .logo-icon,
    .sidebar.mobile-open:not(:hover) .logo-icon {
        opacity: 1 !important;
        transform: none !important;
        margin: 0 !important; /* Odstranit auto margin */
    }
    
    /* Header buttons - zobrazit když je menu otevřené */
    .sidebar.mobile-open .header-buttons {
        display: flex !important;
    }
    
    /* Zobrazit navigaci automaticky když je menu otevřené */
    .sidebar.mobile-open .nav-section-title {
        opacity: 1 !important;
        transition: none !important; /* Zakázat animace na mobilu */
        justify-content: flex-start !important;
    }
    
    .sidebar.mobile-open .nav-link {
        padding: 0.8rem 1.5rem !important;
        justify-content: space-between !important; /* Text vlevo, ikona vpravo */
        align-items: center !important;
        margin: 0.2rem 1rem !important;
    }
    
    /* Nav icon - vždy jako při hoveru (bez gradientu, jen barva) - přepisuje :not(:hover) */
    .sidebar.mobile-open .nav-link .nav-icon,
    .sidebar.mobile-open:not(:hover) .nav-link .nav-icon {
        margin-left: 0.8rem !important; /* Ikona vpravo */
        order: 2 !important; /* Ikona vpravo */
        color: #6c757d !important; /* Pevná barva ikony, bez gradientu */
        opacity: 1 !important;
        width: auto !important;
        flex-shrink: 0 !important;
        justify-content: flex-start !important;
        background: transparent !important; /* Odstranit gradient */
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: #6c757d !important;
        background-clip: unset !important;
        transition: none !important;
        transform: none !important;
        text-align: left !important;
    }
    
    /* Nav text - vždy jako při hoveru - přepisuje :not(:hover) */
    .sidebar.mobile-open .nav-link .nav-text,
    .sidebar.mobile-open:not(:hover) .nav-link .nav-text {
        opacity: 1 !important;
        transform: none !important;
        width: auto !important;
        text-align: left !important;
        order: 1 !important; /* Text vlevo */
        color: #2c3e50 !important;
        overflow: visible !important;
        transition: none !important;
    }
    
    /* Zajistit, že inline style display má přednost - skrýt sekce s display: none */
    .sidebar.mobile-open .auth-section[style*="display: none"],
    .sidebar.mobile-open .auth-section[style*="display:none"],
    .sidebar.mobile-open #authSection[style*="display: none"],
    .sidebar.mobile-open #authSection[style*="display:none"] {
        display: none !important;
    }
    
    .sidebar.mobile-open .user-profile-section[style*="display: none"],
    .sidebar.mobile-open .user-profile-section[style*="display:none"],
    .sidebar.mobile-open #userProfileSection[style*="display: none"],
    .sidebar.mobile-open #userProfileSection[style*="display:none"] {
        display: none !important;
    }
    
    /* Zobrazit auth sekci správně když je menu otevřené a je viditelná (má display: block nebo nemá display: none) */
    .sidebar.mobile-open .auth-section:not([style*="display: none"]):not([style*="display:none"]),
    .sidebar.mobile-open #authSection:not([style*="display: none"]):not([style*="display:none"]) {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 1rem 1.5rem !important;
    }
    
    /* Zobrazit user profile sekci správně když je menu otevřené a je viditelná (má display: block nebo nemá display: none) */
    .sidebar.mobile-open .user-profile-section:not([style*="display: none"]):not([style*="display:none"]),
    .sidebar.mobile-open #userProfileSection:not([style*="display: none"]):not([style*="display:none"]) {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 1rem 1.5rem !important;
    }
    
    .sidebar.mobile-open .btn-login,
    .sidebar.mobile-open .btn-register,
    .sidebar.mobile-open .btn-profile,
    .sidebar.mobile-open .btn-logout {
        width: 100% !important;
        justify-content: space-between !important; /* Text vlevo, ikona vpravo */
        padding: 0.8rem 1rem !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }
    
    /* Tlačítko profilu - přepisuje :not(:hover) styly */
    .sidebar.mobile-open .btn-profile,
    .sidebar.mobile-open:not(:hover) .btn-profile {
        justify-content: space-between !important; /* Text vlevo, ikona/profilovka vpravo */
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 0.8rem 1rem !important;
        overflow: visible !important;
        min-height: 48px !important;
        box-sizing: border-box !important;
    }
    
    /* Auth section - vždy jako při hoveru */
    .sidebar.mobile-open .auth-section {
        padding: 1rem 1.5rem !important;
    }
    
    /* User profile section - vždy jako při hoveru */
    .sidebar.mobile-open .user-profile-section {
        padding: 1rem 1.5rem !important;
    }
    
    /* Zobrazit texty tlačítek když je menu otevřené */
    .sidebar.mobile-open .btn-login span,
    .sidebar.mobile-open .btn-register span,
    .sidebar.mobile-open .btn-profile span,
    .sidebar.mobile-open .btn-logout span {
        opacity: 1 !important;
        width: auto !important;
        transform: none !important; /* Odstranit všechny transformace */
        transition: none !important; /* Zakázat animace na mobilu */
        overflow: visible !important;
    }
    
    /* Zakázat všechny animace a přechody pro sidebar na mobilu */
    .sidebar.mobile-open * {
        transition: none !important;
        animation: none !important;
    }
    
    /* Povolit pouze základní přechody pro hover efekty, ale ne pro layout */
    .sidebar.mobile-open .nav-link:hover,
    .sidebar.mobile-open .btn-login:hover,
    .sidebar.mobile-open .btn-register:hover,
    .sidebar.mobile-open .btn-profile:hover,
    .sidebar.mobile-open .btn-logout:hover {
        transition: background-color 0.2s ease !important;
    }
    
    .sidebar.mobile-open .btn-login i,
    .sidebar.mobile-open .btn-register i,
    .sidebar.mobile-open .btn-profile i,
    .sidebar.mobile-open .btn-logout i {
        opacity: 1 !important;
    }
    
    /* Profilovka na mobilu - přesně jako na PC při hoveru */
    /* Přepisuje všechny :not(:hover) styly a aplikuje základní styly z #sidebarUserAvatar */
    .sidebar.mobile-open #sidebarUserAvatar,
    .sidebar.mobile-open:not(:hover) #sidebarUserAvatar {
        display: inline-flex !important;
        margin-left: 8px !important;
        vertical-align: middle !important;
        flex-shrink: 0 !important;
        order: 2 !important; /* Profilovka napravo */
        width: auto !important;
        height: auto !important;
        transition: none !important;
        animation: none !important;
        transform: none !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
    }
    
    .sidebar.mobile-open #sidebarUserAvatar > span,
    .sidebar.mobile-open:not(:hover) #sidebarUserAvatar > span {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        background: #f3f4f6 !important;
        border: 1px solid #e5e7eb !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        transition: none !important;
        animation: none !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        box-sizing: border-box !important;
    }
    
    /* Obrázek - absolutní pozicování pro vyplnění celého kruhu */
    .sidebar.mobile-open #sidebarUserAvatarImg,
    .sidebar.mobile-open:not(:hover) #sidebarUserAvatarImg {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transition: none !important;
        animation: none !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 2 !important;
        box-sizing: border-box !important;
    }
    
    /* Skrýt placeholder ikonu na mobilu - musí být pod obrázkem */
    .sidebar.mobile-open #sidebarUserAvatarPh,
    .sidebar.mobile-open:not(:hover) #sidebarUserAvatarPh {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 1 !important;
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Zobrazit ikonu a text profilu na mobilu - vždy jako při hoveru */
    .sidebar.mobile-open .btn-profile i,
    .sidebar.mobile-open:not(:hover) .btn-profile i {
        display: flex !important;
        opacity: 1 !important;
        transition: none !important;
    }
    
    .sidebar.mobile-open .btn-profile span,
    .sidebar.mobile-open:not(:hover) .btn-profile span {
        display: inline !important;
        opacity: 1 !important;
        width: auto !important;
        transform: none !important;
        transition: none !important;
        overflow: visible !important;
    }
    
    .sidebar:hover {
        width: 280px;
    }
    
    /* Mobile menu overlay - odstraněno ::before, používá se JS overlay */
    .sidebar-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-width: 100vw !important;
        min-height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 1999 !important;
        animation: fadeIn 0.3s ease;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* Mobile menu button improvements */
    .mobile-menu-btn {
        position: fixed !important;
        top: 8px !important;
        left: 8px !important;
        z-index: 9999 !important;
        background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%) !important;
        color: white !important;
        border: none !important;
        border-radius: 12px !important;
        width: 56px !important;
        height: 56px !important;
        display: flex !important; /* Zajistit zobrazení na mobilních zařízeních */
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-shadow: 0 4px 20px rgba(247, 124, 0, 0.4) !important;
        transition: all 0.3s ease !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important; /* Odstranit modrý highlight na iOS/Android */
        pointer-events: auto !important;
    }
    
    /* Zajistit, že mobile-menu-btn je vždy klikatelný na stránce nastavení */
    body:has(.settings-content) .mobile-menu-btn,
    body:has(.settings-section) .mobile-menu-btn,
    #mobileMenuBtn {
        z-index: 99999 !important;
        pointer-events: auto !important;
        position: fixed !important;
        top: 8px !important;
        left: 8px !important;
    }
    
    /* Zajistit, že žádný prvek na stránce nastavení neblokuje mobile-menu-btn */
    body:has(.settings-content) .main-content,
    body:has(.settings-content) .page-hero,
    body:has(.settings-content) .container,
    body:has(.settings-content) .settings-content,
    body:has(.settings-content) .settings-section,
    body:has(.settings-content) .profile-stats-section {
        position: relative !important;
        z-index: 1 !important;
    }
    
    body:has(.settings-content) .page-hero {
        pointer-events: none !important;
        z-index: 1 !important;
    }
    
    body:has(.settings-content) .page-hero * {
        pointer-events: auto !important;
    }
    
    /* Zajistit, že žádný overlay nebo prvek neblokuje mobile-menu-btn */
    body:has(.settings-content) *:not(.mobile-menu-btn):not(.sidebar):not(.sidebar-overlay) {
        pointer-events: auto !important;
    }
    
    body:has(.settings-content) .mobile-menu-btn {
        pointer-events: auto !important;
        z-index: 99999 !important;
    }
    
    .mobile-menu-btn:hover {
        box-shadow: 0 6px 25px rgba(247, 124, 0, 0.5);
        transform: translateY(-1px);
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.95);
        box-shadow: 0 2px 10px rgba(247, 124, 0, 0.3);
    }
    
    .mobile-menu-btn i {
        font-size: 1.5rem;
        pointer-events: none; /* Zabraňuje problémům s klikáním na ikonu */
    }
    
    /* Zajistit, že mobile-menu-btn je vždy klikatelný na stránce nastavení */
    body:has(.settings-content) .mobile-menu-btn,
    body:has(.settings-section) .mobile-menu-btn {
        z-index: 9999 !important;
        pointer-events: auto !important;
        position: fixed !important;
    }
    
    /* Zajistit, že žádný prvek na stránce nastavení neblokuje mobile-menu-btn */
    body:has(.settings-content) .main-content,
    body:has(.settings-content) .page-hero,
    body:has(.settings-content) .container,
    body:has(.settings-content) .settings-content,
    body:has(.settings-content) .settings-section {
        pointer-events: auto !important;
    }
    
    body:has(.settings-content) .page-hero {
        pointer-events: none !important;
    }
    
    body:has(.settings-content) .page-hero * {
        pointer-events: auto !important;
    }
    
    /* Close sidebar when clicking overlay */
    body.sidebar-open {
        overflow: hidden !important;
        /* Nepoužívat position: fixed, aby byla stránka viditelná na pozadí */
        /* position: fixed způsobuje bílou obrazovku */
    }
    
    /* Schovat tlačítko menu když je menu otevřené */
    body.sidebar-open .mobile-menu-btn {
        display: none !important;
    }
    
    /* Zajistit, aby sidebar byl nad overlay */
    .sidebar.mobile-open {
        z-index: 2000 !important;
    }
    
    /* Grid improvements */
    .ads-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        padding: 0 0.5rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Cards mobile optimization - kompaktnější vzhled */
    .ad-card {
        padding: 0;
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 0 !important; /* Žádný gap mezi prvky */
        border-radius: 12px !important;
        max-width: 100% !important;
    }
    
    .ad-card .ad-thumb {
        width: 100% !important;
        aspect-ratio: 4 / 3 !important; /* FIXNÍ poměr stran - stejný všude */
        height: auto !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        flex-shrink: 0;
        background: white; /* Bílý background místo béžového */
        border-radius: 12px 12px 0 0 !important; /* Zaoblené rohy nahoře */
        overflow: hidden !important; /* Zajistit, aby obrázek nepřesahoval */
    }
    
    .ad-card .ad-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Přizpůsobit obrázek poměru stran */
        object-position: center !important; /* Vycentrovat obrázek */
        border-radius: 12px 12px 0 0 !important; /* Zaoblené rohy nahoře */
        margin: 0;
        padding: 0;
        display: block;
    }
    
    .ad-card .ad-body {
        padding: 10px 12px 70px !important; /* Větší padding dole pro tlačítka */
        flex: 1 !important; /* Vyplní zbývající prostor v kartě */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        position: relative;
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }
    
    /* Zobrazit všechny informace v ad-meta-details */
    .ad-card .ad-meta-details {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        margin-top: 0.5rem !important;
        margin-bottom: 10px !important; /* Mezera před tlačítky */
        width: 100% !important;
    }
    
    .ad-card .ad-meta-item {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 0.5rem 0 !important;
        margin-bottom: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        font-size: 0.75rem !important;
        width: 100% !important;
    }
    
    .ad-card .ad-meta-item i {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        min-height: 16px !important;
        font-size: 0.75rem !important;
        flex-shrink: 0 !important;
    }
    
    .ad-card .ad-meta-item span {
        flex: 1 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }
    
    .ad-card .ad-price-value {
        font-weight: 700 !important;
        color: #f77c00 !important;
    }
    
    /* Kategorie s tečkou nahoře - vytvořit novou strukturu */
    .ad-card .ad-meta {
        font-size: 0.65rem;
        color: #6b7280;
        margin-bottom: 4px;
        margin-top: -4px !important; /* Negativní margin - kategorie blíž k fotce */
        padding-top: 0 !important; /* Žádný padding nahoře */
        order: -1; /* Přesunout nahoru */
        display: flex;
        align-items: center;
        gap: 4px;
        position: relative;
    }
    
    .ad-card .ad-meta::before {
        display: none !important;
    }
    
    /* Skrýt lokaci a oddělovač z ad-meta */
    .ad-card .ad-meta span:first-child,
    .ad-card .ad-meta span:first-child::after {
        display: none;
    }
    
    /* Zobrazit jen kategorii (druhý span) nahoře */
    .ad-card .ad-meta span:last-child {
        display: inline;
    }
    
    /* Název */
    .ad-card .ad-title {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 6px;
        font-weight: 600;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        order: 0;
        text-align: left !important; /* Zarovnání vlevo */
    }
    
    /* Cena */
    .ad-card .ad-price {
        font-size: 0.9rem;
        font-weight: 700;
        color: #f77c00;
        margin-bottom: 4px;
        order: 1;
        text-align: left !important; /* Zarovnání vlevo */
    }
    
    /* Kraj - samostatný element dole */
    .ad-card .ad-location {
        font-size: 0.65rem;
        color: #9ca3af;
        margin-top: auto;
        margin-bottom: 12px !important; /* Větší mezera před tlačítky */
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        order: 2;
        text-align: left !important; /* Zarovnání vlevo */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        hyphens: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        line-height: 1.4 !important;
        box-sizing: border-box !important;
    }
    
    /* Kategorie */
    .ad-card .ad-meta {
        text-align: left !important; /* Zarovnání vlevo */
    }
    
    /* Tělo karty */
    .ad-card .ad-body {
        text-align: left !important; /* Zarovnání vlevo */
    }
    
    /* Tlačítka na mobilních zařízeních */
    .ad-card .ad-actions {
        position: absolute !important;
        bottom: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10 !important;
        width: calc(100% - 24px) !important;
    }
    
    .ad-card .ad-actions .btn {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
        min-height: 36px !important;
    }
    
    /* Forms mobile optimization */
    .service-form,
    .settings-form,
    .ad-create-form {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
        border-radius: 8px;
        min-height: 44px; /* Touch-friendly */
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    /* Buttons mobile optimization */
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-cta-primary,
    .btn-cta-secondary {
        min-height: 44px; /* Touch-friendly */
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 10px;
        touch-action: manipulation;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    /* Hero section mobile */
    .hero {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        padding: 2rem 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        position: relative !important;
    }
    
    .hero-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2rem !important;
        padding: 2rem 1rem !important;
        margin: 0 !important;
        justify-items: center !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .hero-visual {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        margin-top: 0.5rem !important;
        margin-left: -0.5rem !important;
        text-align: center !important;
    }
    
    .bulldog-image {
        width: 300px !important;
        height: 300px !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    .bulldog-image .hero-logo {
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* Posunout nápis a slogan níž od hořejšku */
    .hero-brand {
        padding-top: 3rem;
        margin-top: 2rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 0 !important;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem) !important;
        line-height: 1.1 !important;
        letter-spacing: 0.03em !important;
        font-weight: 800 !important;
        margin-bottom: 1rem !important;
        text-shadow: none !important;
        white-space: nowrap !important;
        padding: 0 1rem;
        box-sizing: border-box;
        transform: translateY(-6px) !important;
        background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        background-size: 200% 200% !important;
        animation: heroShineMobile 4s ease-in-out infinite !important;
        will-change: background-position !important;
        display: inline-block !important;
        transform-origin: center center !important;
        text-transform: uppercase !important;
        position: relative !important;
        z-index: 1 !important;
        box-shadow: none !important;
        filter: none !important;
        text-shadow: none !important;
        text-align: center !important;
    }
    
    .hero-slogan {
        font-size: clamp(1rem, 4vw, 1.3rem);
        text-align: center !important;
        margin-bottom: 2rem !important;
        margin-top: 0 !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
    }
    
    /* Hero content - centrování a omezení šířky */
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        height: auto !important;
        max-height: none !important;
    }
    
    /* Hero search - centrování a seskupení na mobilu */
    .hero-search {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 1rem !important;
        padding-bottom: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
    }
    
    /* Search mobile - vše vycentrované a seskupené */
    .search-form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .search-input-group {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .search-input {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        font-size: 14px !important;
        padding: 0.6rem 0.8rem !important;
        min-height: 40px !important;
        border-radius: 10px !important;
        color: #000000 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    select.search-input {
        padding-right: 2rem !important;
        background-size: 14px !important;
        background-position: right 0.6rem center !important;
        color: #000000 !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    select.search-input option {
        color: #000000 !important;
        background-color: #ffffff !important;
    }
    
    .search-btn {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        font-size: 1rem !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }
    
    .btn-create-ad {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
        min-height: 40px !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        margin-bottom: 0 !important;
    }
    
    /* Hero brand - omezení šířky */
    .hero-brand {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 0 1rem !important;
        overflow-x: hidden !important;
    }
    
    /* Promo section mobile */
    .promo-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .promo-illustration {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .promo-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .promo-cta .btn {
        width: 100%;
    }
    
    /* Features section mobile */
    .features-banner {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .features-banner-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .features-banner-subtitle {
        font-size: clamp(2rem, 7vw, 3rem);
    }
    
    /* Profile mobile */
    .profile-header {
        padding: 1.5rem 1rem !important;
        min-height: auto !important;
    }
    
    .profile-header-content {
        flex-direction: column !important;
        gap: 1.5rem !important;
        text-align: center !important;
        align-items: center !important;
        margin-bottom: 1.5rem !important;
        width: 100% !important;
    }
    
    .profile-info {
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .profile-name {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        text-align: center !important;
        word-break: break-word !important;
        margin-bottom: 0.5rem !important;
    }
    
    .profile-role {
        font-size: clamp(0.9rem, 3vw, 1.1rem) !important;
        text-align: center !important;
        margin-bottom: 0.75rem !important;
    }
    
    .profile-location {
        justify-content: center !important;
        text-align: center !important;
        font-size: clamp(0.85rem, 2.5vw, 1rem) !important;
        margin-bottom: 1rem !important;
    }
    
    .profile-avatar {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto !important;
    }
    
    .profile-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
        justify-content: center !important;
        align-items: stretch !important;
    }
    
    .profile-actions .btn {
        width: 100% !important;
        padding: 0.9rem 1.5rem !important;
        font-size: 1rem !important;
        justify-content: center !important;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 1.5rem !important;
        padding: 0 0.5rem !important;
    }
    
    .stat-card {
        padding: 1rem 0.75rem !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
    
    .stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        margin: 0 auto !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
        text-align: center !important;
    }
    
    .profile-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .content-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.5rem 1rem !important;
        margin-bottom: 1.5rem !important;
        box-sizing: border-box !important;
    }
    
    .section-title {
        font-size: clamp(1.1rem, 4vw, 1.3rem) !important;
        margin-bottom: 1rem !important;
    }
    
    .profile-stats-section {
        padding: 1.5rem 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Tabs mobile */
    .tab-navigation {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
        padding: 0.5rem 1rem !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .tab-btn {
        padding: 0.4rem 0.3rem !important;
        font-size: 0.7rem !important;
        white-space: normal !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
        opacity: 0.95;
        transition: opacity 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
        order: 0 !important;
        line-height: 1.15 !important;
        min-height: 36px !important;
        max-height: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
    }
    
    .tab-btn:hover {
        opacity: 1;
        box-shadow: 0 3px 8px rgba(247, 124, 0, 0.2) !important;
        transform: translateY(-1px);
    }
    
    .tab-btn:active {
        opacity: 1;
        box-shadow: 0 3px 8px rgba(247, 124, 0, 0.2) !important;
        transform: none;
        color: inherit !important;
    }
    
    .tab-btn.active {
        opacity: 1;
        box-shadow: 0 3px 10px rgba(247, 124, 0, 0.3) !important;
        color: white !important;
    }
    
    .tab-btn.active:hover {
        color: white !important;
    }
    
    /* Chat mobile */
    .ig-chat {
        grid-template-columns: 1fr;
        height: calc(100vh - 80px);
        border-radius: 0;
    }
    
    .ig-sidebar,
    .ig-sidebar-right {
        display: none;
    }
    
    .ig-main-header .ig-back-btn {
        display: inline-flex;
    }
    
    .ig-bubble {
        max-width: 85%;
    }
    
    /* Modal mobile */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 1rem auto;
        padding: 0;
        max-height: 90vh;
        overflow: hidden;
        border-radius: 15px !important;
    }
    
    #editServiceModal .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 1rem auto;
        padding: 0;
    }
    
    #editServiceModal .modal-content .service-form {
        padding: 1.25rem;
        overflow-y: auto;
        max-height: calc(90vh - 80px);
    }
    
    #editServiceModal .modal-header {
        padding: 1rem 1.25rem;
        flex-direction: row;
        gap: 0;
        align-items: center;
    }
    
    .modal-header {
        flex-direction: row;
        gap: 0;
        align-items: center;
    }
    
    .modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    /* Tables mobile */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Footer mobile */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 1.5rem !important;
        text-align: left !important;
    }
    
    .footer-section {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
    
    .footer-section h3 {
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
    }
    
    .footer-section p,
    .footer-section ul li {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }
    
    /* Utilities */
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
    html {
        width: 100%;
        min-width: 100%;
    }
    
    body {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .main-content {
        padding: 0.75rem;
        padding-top: 70px;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .mobile-menu-btn {
        width: 48px;
        height: 48px;
        top: 12px;
        left: 12px;
    }
    
    .ads-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .promo-title {
        font-size: 1.5rem;
    }
    
    .promo-subtitle {
        font-size: 1.1rem;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .ad-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }
    
    .ad-card .ad-thumb {
        width: 100% !important;
        aspect-ratio: 4 / 3 !important; /* FIXNÍ poměr stran - stejný všude */
        height: auto !important;
        overflow: hidden !important;
    }
    
    .ad-card .ad-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important; /* Vycentrovat obrázek */
    }
    
    .ad-card .ad-body {
        padding: 8px 10px 65px !important; /* Větší padding dole pro tlačítka */
        flex: 1 !important; /* Vyplní zbývající prostor v kartě */
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: left !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    .ad-card .ad-location {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: left !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .ad-card .ad-actions {
        bottom: 6px !important;
        width: calc(100% - 20px) !important;
    }
    
    .ad-card .ad-actions .btn {
        font-size: 0.75rem !important;
        padding: 0.45rem 0.9rem !important;
        min-height: 32px !important;
    }
    
    .ad-card .ad-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 2 !important;
        margin-bottom: 0.4rem !important;
    }
    
    .ad-card .ad-price {
        font-size: 0.85rem;
    }
    
    .ad-card .ad-meta-item {
        font-size: 0.7rem !important;
        padding: 0.4rem 0 !important;
    }
    
    .ad-card .ad-meta-item i {
        width: 14px !important;
        height: 14px !important;
        font-size: 0.7rem !important;
    }
    
    /* Zobrazit všechny informace v ad-meta-details */
    .ad-card .ad-meta-details {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.4rem !important;
        margin-top: 0.5rem !important;
        margin-bottom: 12px !important; /* Mezera před tlačítky */
        width: 100% !important;
    }
    
    .ad-card .ad-meta-item {
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        padding: 0.4rem 0 !important;
        margin-bottom: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        font-size: 0.7rem !important;
        width: 100% !important;
    }
    
    .ad-card .ad-meta-item i {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
        font-size: 0.7rem !important;
        flex-shrink: 0 !important;
    }
    
    .ad-card .ad-meta-item span {
        flex: 1 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        padding: 14px;
    }
    
    /* Kompaktní cena na mobilu */
    .price-inline {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
    
    .price-inline .radio-group {
        width: 100% !important;
        gap: 0.75rem !important;
    }
    
    .price-inline .inputs {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .price-inline .inputs input {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    .pill-group {
        width: 100% !important;
        gap: 0.5rem !important;
    }
    
    .char-counter {
        font-size: 0.75rem !important;
        margin-top: 0.4rem !important;
    }
    
    #editServiceModal .service-form .price-inline {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    #editServiceModal .service-form .price-inline .radio-group {
        width: 100% !important;
    }
    
    #editServiceModal .service-form .price-inline .inputs {
        width: 100% !important;
        flex-direction: column !important;
    }
    
    #editServiceModal .service-form .price-inline .inputs input {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    .btn {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        max-height: 100vh;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .nav-link,
    .btn,
    .btn-login,
    .btn-register,
    .btn-profile {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .nav-link:hover {
        background: transparent;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Better tap feedback */
    .btn:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
    
    /* Odstranit animaci při kliknutí na navigační odkazy */
    .nav-link:active {
        opacity: 1;
        transform: none;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .mobile-menu-btn {
        top: 12px;
        left: 12px;
    }
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: #f77c00;
}

.tab-btn.active {
    color: #f77c00;
    border-bottom-color: #f77c00;
}

.dashboard-tab-content {
    display: none;
}

.dashboard-tab-content.active {
    display: block;
}

/* Dashboard Stats Grid */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Ads Grid for Admin - POUZE pokud není použito na stránce služeb */
/* Admin grid - stejný jako hlavní grid */
.ads-grid:not(#servicesGrid) {
    display: grid !important;
    gap: 24px !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    margin-top: 1.5rem !important;
    width: 100% !important;
    justify-content: start !important;
    align-items: stretch !important;
    grid-auto-flow: row !important;
    grid-template-columns: repeat(4, 1fr) !important;
}

/* Desktop: 4 sloupce */
@media (min-width: 1200px) {
    .ads-grid:not(#servicesGrid) {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Tablet: 3 sloupce */
@media (min-width: 768px) and (max-width: 1199px) {
    .ads-grid:not(#servicesGrid) {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobil: 1 sloupec */
@media (max-width: 767px) {
    .ads-grid:not(#servicesGrid) {
        grid-template-columns: 1fr !important;
    }
}

/* Admin inzeráty - stejný styl jako hlavní inzeráty */
.ads-grid:not(#servicesGrid) > .ad-card-admin {
    grid-column: span 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Zajistit, že i jeden admin inzerát má stejnou velikost */
.ads-grid:not(#servicesGrid) > .ad-card-admin:only-child {
    grid-column: 1 / 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Admin karta - stejný vzhled jako hlavní karta */
.ad-card-admin {
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border: 1px solid #f0f0f0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
}

.ad-card-admin:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(247, 124, 0, 0.2);
    border: 2px solid #f77c00;
}

.ad-card-admin .ad-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 14px 0;
    margin-bottom: 0;
}

.ad-card-admin .ad-card-header h3 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    color: #111827;
    flex: 1;
    font-weight: 600;
}

.top-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #1f2937;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.ad-card-admin .ad-card-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 12px 14px 90px !important;
    margin: 0 !important;
    position: relative !important;
}

.ad-card-admin .ad-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.ad-card-admin .ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.ad-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: #10b981;
    color: white;
}

.status-badge.inactive {
    background: #ef4444;
    color: white;
}

.ad-card-admin .ad-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #9ca3af;
    padding-top: 0.5rem;
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
}

.ad-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ad-card-admin .ad-card-actions {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    width: calc(100% - 28px) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ad-card-actions .btn {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Stats Tab */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-box h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stat-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
}

.stat-box li:last-child {
    border-bottom: none;
}

.stat-box strong {
    color: #f77c00;
}

.recommendations {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recommendations h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendation {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.recommendation.warning {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.recommendation.info {
    background: #dbeafe;
    border-left-color: #3b82f6;
}

.recommendation.success {
    background: #d1fae5;
    border-left-color: #10b981;
}

.recommendation i {
    font-size: 1.5rem;
    color: inherit;
}

.recommendation strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.recommendation p {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
}

.ads-filters {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.ads-filters input,
.ads-filters select {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
}

.ads-filters input {
    flex: 1;
}

.no-ads,
.loading-ads {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

/* Dashboard Overview */
.dashboard-overview {
    margin-top: 2rem;
}

.dashboard-overview h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-subtitle {
    color: #6b7280;
    margin-bottom: 2rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.overview-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.overview-card h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.overview-stats {
    margin-bottom: 1.5rem;
}

.overview-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.overview-stat:last-child {
    border-bottom: none;
}

.stat-label {
    color: #6b7280;
}

.stat-value {
    color: #f77c00;
    font-weight: 700;
    font-size: 1.1rem;
}

.overview-card .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Charts Section */
.charts-section {
    margin-top: 3rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.charts-section h2 {
    margin: 0 0 2rem 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-container {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
}

.chart-container h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.chart-container canvas {
    max-height: 300px;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-header p {
    color: #6b7280;
    margin: 0;
}

.no-ads i,
.loading-ads i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

/* Reports & Review Styles */
.reports-container {
    margin-top: 2rem;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.report-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.report-card-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.report-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.report-card-body {
    margin-bottom: 1rem;
}

.report-card-body p {
    margin: 0.5rem 0;
    color: #4b5563;
    font-size: 0.95rem;
}

.report-card-actions {
    display: flex;
    gap: 0.5rem;
}

.no-reports,
.loading-reports {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.no-reports i,
.loading-reports i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

/* Review Modal */
.review-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.review-steps {
    margin-top: 2rem;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #f77c00;
    color: white;
}

.step.completed .step-number {
    background: #10b981;
    color: white;
}

.step.completed .step-number::after {
    content: '✓';
}

.step-label {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}

.step.active .step-label {
    color: #f77c00;
    font-weight: 600;
}

.review-step {
    display: none;
    padding: 2rem;
}

.review-step.active {
    display: block;
}

.review-step h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.review-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Review photo thumbnails - vyplnění celého prostoru */
.review-photo-thumbnail {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    box-sizing: border-box !important;
}

/* Admin review photos - stejný styl */
.admin-review-photo-item img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    box-sizing: border-box !important;
}

/* Review photo lightbox - zajištění celé obrazovky */
.review-photo-lightbox {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 999999 !important;
    transform: none !important;
    will-change: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.review-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.review-content {
    margin-bottom: 2rem;
}

.review-item {
    margin-bottom: 1.5rem;
}

.review-item label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.review-item p {
    color: #4b5563;
    line-height: 1.6;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin: 0;
}

.review-user {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.user-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #9ca3af;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-detail-item {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

.user-detail-item strong {
    color: #2c3e50;
    display: inline-block;
    min-width: 100px;
}

.review-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.review-result {
    text-align: center;
    padding: 2rem;
}

.review-success {
    color: #10b981;
}

.review-success i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.review-error {
    color: #ef4444;
}

.review-error i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.review-result h4 {
    margin: 1rem 0;
    font-size: 1.5rem;
}

.review-result p {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Print styles */
@media print {
    .sidebar,
    .mobile-menu-btn,
    .sidebar-toggle-btn,
    .btn,
    .auth-section {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
}

/* ===== KRITICKÁ MOBILNÍ OPTIMALIZACE - ODSTRANĚNÍ VŠECH OKRAJŮ ===== */
@media (max-width: 768px) {
    /* Absolutní reset pro html a body - žádné okraje */
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        position: relative !important;
    }
    
    /* Zajistit, že hlavní wrapper nemá okraje */
    body > .main-content,
    .main-content {
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important; /* Stránka až nahoru - žádný bílý prostor */
        padding-bottom: 0 !important;
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Všechny sekce bez okrajů - musí být 100vw */
    body section,
    body .hero,
    body .services,
    body .about,
    body .contact,
    body .ads-section,
    body .features,
    body .cta-connect,
    body .page-hero,
    .main-content section,
    .main-content .hero,
    .main-content .services {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important; /* Stránka až nahoru - žádný bílý prostor */
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        box-sizing: border-box !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Footer bez okrajů */
    body footer,
    body .footer {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Container - padding jen uvnitř, ne okraje - musí být 100% šířky parentu */
    body .container,
    .main-content .container,
    section .container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Zabraňit horizontálnímu scrollování - ale ne na inline elementy */
    body > *,
    body .main-content > *,
    body section > *,
    body .container > * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    
    /* Elementy s fixed/absolute pozicí - zajistit, že nezpůsobují scroll */
    body .sidebar,
    body .mobile-menu-btn,
    body .sidebar-toggle-btn {
        max-width: 100vw !important;
    }
    
    /* Zajistit, že SVG a obrázky nezpůsobují overflow */
    body img,
    body svg,
    body video {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Odstranit padding z hero containeru */
    body .hero-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Kompaktnější přihlašovací modal na mobilních zařízeních */
    .modal {
        padding: 10px !important; /* Menší padding pro více místa */
        /* Zajistit, aby modal zabral celou výšku viewportu - pouze když je zobrazený */
        overflow: hidden !important; /* Zakázat scroll celé stránky */
        z-index: 10000 !important; /* Zajistit, že je modal nad všemi ostatními prvky */
    }
    
    /* Speciální pravidlo pro authModal na mobilech */
    #authModal {
        z-index: 10000 !important;
    }
    
    /* Když je modal zobrazený na mobilu, použít flexbox pro vycentrování */
    .modal[style*="display: flex"],
    .modal[style*="display:flex"],
    .modal[style*="display: flex"],
    #authModal[style*="display: flex"],
    #authModal[style*="display:flex"] {
        height: 100vh !important;
        height: 100dvh !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        justify-content: center !important;
        align-items: center !important;
        pointer-events: all !important;
    }
    
    .modal-content {
        padding: 1rem !important;
        max-width: calc(100vw - 20px) !important; /* Šířka minus padding modalu */
        min-width: 280px !important;
        max-height: calc(100vh - 20px) !important; /* Výška minus padding modalu */
        max-height: calc(100dvh - 20px) !important; /* Pro safe-area */
        /* Zajistit, aby se modal neposouval */
        margin: 0 !important;
        overflow-y: auto !important; /* Scroll pouze uvnitř popupu */
        overflow-x: hidden !important;
        /* Přizpůsobit výšku obsahu, ne celé obrazovce */
        height: auto !important;
        min-height: auto !important;
        border-radius: 15px !important;
        /* Skrýt scrollbar na mobilu také */
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE a Edge */
    }
    
    /* Skrýt scrollbar v Chrome, Safari a Opera na mobilu */
    .modal-content::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .modal-content.auth-with-hero {
        padding-top: 3rem !important; /* Menší rezerva pro buldoka */
    }
    
    /* Menší buldok na mobilu */
    .auth-hero-ledge .auth-dog-lean {
        width: 90px !important;
        top: -50px !important;
    }
    
    /* Kompaktnější header */
    .auth-hero-ledge {
        padding: 10px 14px !important;
    }
    
    .auth-with-hero .modal-title {
        font-size: 1.3rem !important;
    }
    
    .auth-with-hero .close {
        font-size: 1.5rem !important;
    }
    
    /* Menší mezery ve formuláři */
    .auth-with-hero .auth-form {
        margin-top: 10px !important;
        gap: 10px !important;
    }
    
    .auth-form input {
        padding: 10px 12px !important;
        font-size: 0.95rem !important;
    }
    
    .auth-form .auth-submit-btn,
    .auth-form .btn-primary {
        padding: 10px 16px !important;
        font-size: 0.95rem !important;
    }
    
    .auth-switch-btn {
        font-size: 0.9rem !important;
        margin-top: 6px !important;
    }
    
    /* Zajistit, aby body nemělo scroll když je modal otevřený */
    body.modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Mailchimp newsletter popup - zmenšení na všech zařízeních - univerzální selektory */
/* Cílení na všechny možné Mailchimp elementy */
div[id*="mce"],
div[class*="mce"],
div[id*="mailchimp"],
div[class*="mailchimp"],
div[id*="mc-"],
div[class*="mc-"],
iframe[id*="mce"],
iframe[class*="mce"],
body > div[style*="position: fixed"],
body > div[style*="position:fixed"],
body > div[style*="z-index"][style*="position"],
div[style*="background"][style*="position: fixed"],
div[style*="background"][style*="position:fixed"] {
    max-width: 380px !important;
    width: 90% !important;
}

/* Cílení na všechny vnořené divy v popupu */
div[id*="mce"] div,
div[class*="mce"] div,
div[id*="mailchimp"] div,
div[class*="mailchimp"] div {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Všechny možné kontejnery Mailchimp popupu */
div[id*="mce"] > div,
div[class*="mce"] > div,
div[id*="mailchimp"] > div,
div[class*="mailchimp"] > div,
div[id*="mc-"] > div,
div[class*="mc-"] > div {
    max-width: 100% !important;
    width: 100% !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
}

/* Všechny elementy uvnitř Mailchimp popupu */
div[id*="mce"] h2,
div[class*="mce"] h2,
div[id*="mailchimp"] h2,
div[class*="mailchimp"] h2,
div[id*="mc-"] h2,
div[class*="mc-"] h2 {
    font-size: 1rem !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.3 !important;
}

div[id*="mce"] p,
div[class*="mce"] p,
div[id*="mailchimp"] p,
div[class*="mailchimp"] p,
div[id*="mc-"] p,
div[class*="mc-"] p {
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
}

div[id*="mce"] input,
div[class*="mce"] input,
div[id*="mailchimp"] input,
div[class*="mailchimp"] input,
div[id*="mc-"] input,
div[class*="mc-"] input {
    font-size: 0.8rem !important;
    padding: 0.5rem 0.7rem !important;
    box-sizing: border-box !important;
}

div[id*="mce"] button,
div[class*="mce"] button,
div[id*="mailchimp"] button,
div[class*="mailchimp"] button,
div[id*="mc-"] button,
div[class*="mc-"] button {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
}

/* Mobilní optimalizace */
@media (max-width: 768px) {
    div[id*="mce"],
    div[class*="mce"],
    div[id*="mailchimp"],
    div[class*="mailchimp"],
    div[id*="mc-"],
    div[class*="mc-"] {
        max-width: 300px !important;
        width: 85% !important;
    }
    
    div[id*="mce"] > div,
    div[class*="mce"] > div,
    div[id*="mailchimp"] > div,
    div[class*="mailchimp"] > div {
        padding: 0.8rem !important;
    }
    
    div[id*="mce"] h2,
    div[class*="mce"] h2,
    div[id*="mailchimp"] h2,
    div[class*="mailchimp"] h2 {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    div[id*="mce"] p,
    div[class*="mce"] p,
    div[id*="mailchimp"] p,
    div[class*="mailchimp"] p {
        font-size: 0.75rem !important;
        margin-bottom: 0.4rem !important;
    }
}

/* ===== AGRESIVNÍ OPRAVA PROFILE-DETAIL OVERFLOW ===== */
/* Zajistit, že pozadí NIKDY nejde mimo stránku */
body:has(.ad-detail-content),
html:has(.ad-detail-content),
body:has(.profile-detail-main),
html:has(.profile-detail-main) {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Footer na stránkách detailu - zajistit správné zarovnání (POUZE PRO DESKTOP) */
/* Footer na detail stránkách - zarovnat stejně jako main-content - PŘEPISUJE VŠECHNY PŘEDCHOZÍ PRAVIDLA */
/* POUZE PRO DESKTOP - na mobilu se nepoužije (jsou přepsána mobilním media query) */
@media (min-width: 769px) {
    body:has(.ad-detail-content) footer.footer,
    body:has(.profile-detail-main) footer.footer,
    body:has(.ad-detail-content) .footer,
    body:has(.profile-detail-main) .footer {
        margin-left: 70px !important;
        width: calc(100% - 70px) !important;
        max-width: calc(100% - 70px) !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 2.5rem !important;
        padding-bottom: 1rem !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }

    body:has(.ad-detail-content) footer.footer .container,
    body:has(.profile-detail-main) footer.footer .container,
    body:has(.ad-detail-content) .footer .container,
    body:has(.profile-detail-main) .footer .container {
        width: 100% !important;
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        box-sizing: border-box !important;
    }
}

.main-content:has(.ad-detail-content) {
    width: calc(100% - 70px) !important;
    max-width: calc(100% - 70px) !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    position: relative !important;
}

.ad-detail-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding: 2rem !important;
    margin: 0 !important;
}

.profile-detail-main,
.ad-detail-content .profile-detail-main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    gap: 2rem !important;
}

.profile-detail-left,
.profile-detail-right,
.ad-detail-content .profile-detail-left,
.ad-detail-content .profile-detail-right {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 2rem !important;
}

.ad-user-profile,
.ad-detail-content .ad-user-profile {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 2rem !important;
    margin: 2rem 0 0 0 !important;
}

.user-other-ads,
.ad-detail-content .user-other-ads {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

/* Speciální úprava pro sekci recenzí - zabránit ořezávání */
#userReviewsSection,
.ad-user-profile:has(#userReviewsSection) {
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

#userReviewsGrid {
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.ad-title-section,
.ad-meta-section,
.ad-description-section,
.ad-contact-section,
.ad-detail-content .ad-title-section,
.ad-detail-content .ad-meta-section,
.ad-detail-content .ad-description-section,
.ad-detail-content .ad-contact-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

@media (max-width: 768px) {
    .main-content:has(.ad-detail-content) {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .ad-detail-content {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

/* ===== ZAJISTIT KONZISTENTNÍ FORMÁTOVÁNÍ PRO VŠECHNY LOKACE ===== */
/* Zajistit, že všechny karty mají stejné formátování bez ohledu na filtr nebo lokaci */
/* POZOR: Šířka karty je nastavena v media query výše, neupravovat zde! */
#servicesGrid .ad-card {
    text-align: left !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
}

#servicesGrid .ad-card .ad-body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 12px 14px 90px !important;
    float: none !important;
    clear: both !important;
}

#servicesGrid .ad-card .ad-location {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    font-size: 0.85rem !important;
    color: #6b7280 !important;
    float: none !important;
    clear: both !important;
}

/* Zajistit, že grid nezpůsobuje změny formátování */
/* POZOR: Šířka karty je nastavena v media query výše, neupravovat zde! */
#servicesGrid.ads-grid .ad-card {
    text-align: left !important;
    float: none !important;
}

#servicesGrid.ads-grid .ad-card .ad-body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
    float: none !important;
}

#servicesGrid.ads-grid .ad-card .ad-location {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
    float: none !important;
}

/* ===== FIXNÍ POMĚR STRAN PRO VŠECHNY OBRÁZKY - STEJNÝ VŠUDE ===== */
/* Zajistit, že všechny obrázky mají stejný poměr stran 4:3 na všech zařízeních */
/* Tato pravidla mají nejvyšší prioritu a přepisují všechna ostatní pravidla */
.ad-thumb,
.ad-card .ad-thumb,
.ad-card.is-top .ad-thumb,
#servicesGrid .ad-card .ad-thumb,
.ads-grid .ad-card .ad-thumb,
.ad-thumb[style*="height"],
.ad-card .ad-thumb[style*="height"],
.ad-card.is-top .ad-thumb[style*="height"] {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    width: 100% !important;
    max-height: none !important;
    min-width: 100% !important;
    padding-bottom: 75% !important; /* Fallback pro fixní velikost během načítání */
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Pokud prohlížeč podporuje aspect-ratio, použij ho místo padding-bottom */
@supports (aspect-ratio: 4 / 3) {
    .ad-thumb,
    .ad-card .ad-thumb,
    .ad-card.is-top .ad-thumb,
    #servicesGrid .ad-card .ad-thumb,
    .ads-grid .ad-card .ad-thumb {
        padding-bottom: 0 !important;
        height: auto !important;
    }
}

.ad-thumb img,
.ad-card .ad-thumb img,
.ad-card.is-top .ad-thumb img,
#servicesGrid .ad-card .ad-thumb img,
.ads-grid .ad-card .ad-thumb img,
.ad-thumb img[style*="height"],
.ad-card .ad-thumb img[style*="height"] {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.ad-main-image,
.ad-main-image[style*="height"] {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    width: 100% !important;
    min-height: 300px !important;
    max-height: 600px !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.ad-main-img,
.ad-main-img[style*="height"],
.ad-main-img[style*="width"] {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    box-sizing: border-box !important;
}

.ad-thumbnail,
.ad-thumbnail[style*="height"] {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
}

.ad-thumbnail img,
.ad-thumbnail img[style*="height"] {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Přepis pro všechna media query - zajistit stejný poměr na mobilu */
@media (max-width: 768px) {
    .ad-thumb,
    .ad-card .ad-thumb,
    .ad-card.is-top .ad-thumb,
    #servicesGrid .ad-card .ad-thumb,
    .ads-grid .ad-card .ad-thumb {
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
        width: 100% !important;
        max-height: none !important;
        min-height: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .ad-main-image {
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
        width: 100% !important;
        max-height: none !important;
        min-height: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .ad-thumbnail {
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .ad-thumb,
    .ad-card .ad-thumb,
    .ad-card.is-top .ad-thumb,
    #servicesGrid .ad-card .ad-thumb,
    .ads-grid .ad-card .ad-thumb {
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
        width: 100% !important;
        max-height: none !important;
        min-height: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .ad-main-image {
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
        width: 100% !important;
        max-height: none !important;
        min-height: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .ad-thumbnail {
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* ===== OPTIMALIZACE NAČÍTÁNÍ OBRÁZKŮ ===== */
/* Shimmer efekt pro placeholder při načítání */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Smooth transition pro obrázky */
.ad-thumb img,
.ad-main-img,
.ad-thumbnail img {
    transition: opacity 0.3s ease-in-out;
    will-change: opacity;
}

/* Optimalizace pro lazy loading */
.ad-thumb img[loading="lazy"] {
    content-visibility: auto;
}

/* Preload kritické obrázky - fetchpriority se nastavuje v HTML atributu, ne v CSS */
.ad-thumb img[loading="eager"],
.ad-main-img[loading="eager"] {
    /* fetchpriority se nastavuje jako HTML atribut fetchpriority="high" */
}

/* Error handling - zajistit, že se zobrazí placeholder při chybě */
.ad-thumb img:not([src]),
.ad-main-img:not([src]),
.ad-thumbnail img:not([src]) {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Optimalizace pro rychlejší rendering */
.ad-thumb,
.ad-main-image,
.ad-thumbnail {
    contain: layout style paint;
}

/* ===== IMAGE CROPPER MODAL ===== */
.crop-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.crop-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.crop-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.crop-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #111827;
}

.crop-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.crop-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.crop-modal-body {
    padding: 20px;
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.crop-container {
    width: 100%;
    max-width: 800px;
    height: 600px;
    position: relative;
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
}

.crop-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-info {
    margin-top: 16px;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

.crop-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Stylování tlačítek v crop modalu - konzistentní s designem webu */
.crop-modal-footer .btn {
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 120px;
}

.crop-modal-footer .btn-primary {
    background: linear-gradient(135deg, #f77c00 0%, #fdf002 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
}

.crop-modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 124, 0, 0.4);
    filter: brightness(1.05);
}

.crop-modal-footer .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(247, 124, 0, 0.3);
}

.crop-modal-footer .btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.crop-modal-footer .btn-secondary:hover {
    background: #f9fafb;
    border-color: #f77c00;
    color: #f77c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 124, 0, 0.15);
}

.crop-modal-footer .btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .crop-modal-content {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .crop-container {
        height: 400px;
        max-width: 100%;
    }
    
    .crop-modal-header,
    .crop-modal-body,
    .crop-modal-footer {
        padding: 16px;
    }
    
    /* ===== MOBILNÍ OPTIMALIZACE PRO PROFIL A INZERÁT ===== */
    /* Zajistit, že html a body nemají horizontální scroll */
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        position: relative !important;
    }
    
    /* Všechny sekce musí být viditelné */
    .ad-title-section,
    .ad-meta-section,
    .ad-description-section,
    .ad-contact-section,
    .ad-user-profile,
    .profile-header-info,
    .profile-header-text {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Zajistit správné zobrazení obrázků */
    .ad-main-image {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .ad-thumbnails {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
    }
    
    /* Tlačítka musí být viditelná a klikatelná */
    .ad-actions,
    .contact-actions,
    .btn-contact,
    .btn-profile {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Zajistit, že všechny texty jsou viditelné */
    .ad-detail-title,
    .ad-detail-price,
    .ad-meta-item,
    .ad-description,
    .contact-item {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Thumbnaily obrázků */
    .ad-thumbnails {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0.5rem 0 !important;
        box-sizing: border-box !important;
    }
    
    .ad-thumbnail {
        flex-shrink: 0 !important;
        width: 80px !important;
        height: 60px !important;
    }

.ad-card-placeholder {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}


