


html {
  scrollbar-width: thin;
  scrollbar-color: #bbb transparent;
}


html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 6px;
}

html::-webkit-scrollbar-thumb:hover {
  background: #888;
}

main {
  flex: 1;
  padding: 20px;
}


       :root{
  --grad-gta: linear-gradient(135deg,
    #ff2aa1 0%,
    #ff7ab3 8%,
    #ffb86b 22%,
    #ffd56b 32%,
    #06b6d4 50%,
    #60a5fa 66%,
    #34d399 82%,
    #fda4af 100%
  );

  
  --hover-border: #0b56b16b; ; 
}



    body.dark-mode {
      --bg-color: #1c1c1c;
      --text-color: #f0f0f0;
      --card-bg: #2a2a2a;
      --hover-bg: #333;
      --hover-border: #20b2aa;
    }

    body {
       min-height: 100vh;
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      background: var(--bg-color);
      color: var(--text-color);
    }


header {
  position: relative; 
  top: auto;          
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;

}

    .logo-container {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .logo {
      font-size: 1.8em;
      font-weight: bold;
    }
   .logo span:first-child{
  background-image: linear-gradient(135deg,
    #ff2aa1 0%,
    #ff7ab3 8%,
    #ffb86b 22%,
    #ffd56b 32%,
    #06b6d4 50%,
    #60a5fa 66%,
    #34d399 82%,
    #fda4af 100%
  );
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

    .auth-links span {
      font-size: 0.95em;
    }

   

    main {
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px 20px;
    }

    h2 {
      text-align: center;
      margin-bottom: 30px;
    }





.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}


.filter-container input {
  padding: 12px 20px;
  border-radius: 9999px;
  border: 2px solid transparent;
  min-width: 200px;
  font-size: 15px;
  color: #000000;
  background: 
    linear-gradient(#ffffff, #fff8f8) padding-box, 
    linear-gradient(135deg, #f511b0, #0595a8, #fc1287, #0595a8) border-box; 
  background-size: 300% 300%;
  animation: filterBorderMove 8s ease infinite;
  outline: none;
  transition: box-shadow 0.3s ease, transform 0.15s ease;
}

/* Efekt po zameraní */
.filter-container input:focus {
  box-shadow: 0 0 10px rgba(245, 17, 176, 0.4);
  transform: translateY(-1px);
}

/* Hover efekt */
.filter-container input:hover {
  box-shadow: 0 0 8px rgba(245, 17, 176, 0.25);
}


/* Animácia gradientu */
@keyframes filterBorderMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}









:root{
  --border-radius: 12px;
  --ad-card-radius: max(24px, calc(var(--border-radius, 12px) * 2));
}


.ad-card{
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  word-wrap: break-word;
  padding: 14px;

  border: 2px solid rgba(0,0,0,0.08); 
  border-radius: var(--ad-card-radius);
  background: var(--card-bg, #ffffff);

  box-shadow: 0 8px 22px rgba(0,0,0,.14);
  transition: transform .25s ease, box-shadow .25s ease, background .3s ease, border .3s ease;

  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp .8s ease-out forwards;
}

#adsContainer {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 16px; 
}

.ad-card:hover{
  border: 2px solid transparent;
  background:
    linear-gradient(var(--hover-bg, #f9fafb), var(--hover-bg, #f9fafb)) padding-box,
    linear-gradient(135deg, #f511b0, #0595a8, #fc1287, #0595a8) border-box;
  background-size: 300% 300%;
  animation: fadeInUp .8s ease-out forwards, cardBorderFlow 12s ease infinite;
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
}


.ad-card img{
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  border-radius: var(--border-radius);
  background: #e0e0e0;
}




.ad-img{
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
}

/* názov – vždy 2 riadky (rovnaká výška) */
.ad-title{
  margin: 6px 0 4px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}

/* popis – vždy 3 riadky (rovnaká výška) */
.ad-desc{
  font-size: 0.9em;
  opacity: 0.85;
  margin: 4px 0 6px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;     /* zmeň na 2/4 podľa potreby */
  overflow: hidden;
  min-height: calc(1.2em * 3);
}

.ad-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  margin: 4px 0 6px;
}

.ad-location-time{ font-size: 0.8em; opacity: 0.6; margin: 0; }



.ad-price{
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

body.dark-mode .ad-price{
  color: #fde047; /* jemná zlatá v dark mode */
}



/* Texty */
.ad-card strong{ font-size: 1.1em; }

/* Dark mode */
body.dark-mode .ad-card{
  background: var(--card-bg-dark, #1a1a1a);
  border-color: rgba(255,255,255,0.1);
  color: #e7e7e7;
  box-shadow: 0 8px 22px rgba(0,0,0,.5);
}
body.dark-mode .ad-card:hover{
  background:
    linear-gradient(var(--hover-bg-dark, #16181b), var(--hover-bg-dark, #16181b)) padding-box,
    linear-gradient(135deg, #f511b0, #0595a8, #fc1287, #0595a8) border-box;
}

/* Animácie */
@keyframes fadeInUp{
  0%{opacity:0; transform: translateY(20px) scale(1.03);}
  100%{opacity:1; transform: translateY(0);}
}
@keyframes cardBorderFlow{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

    #hoverPopup {
  display: none;
  position: fixed;
  z-index: 9999;
  background: var(--card-bg);
  color: var(--text-color);
  padding: 16px;
  border-radius: var(--border-radius);
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  max-width: 320px;
  font-size: 0.95em;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#hoverPopup p {
  margin: 6px 0;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}





.auth-links button,
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-color);
  font-size: 0.9em;
  transition: color 0.3s;
  margin-left: 10px;
}




#logoutBtn:hover {
  color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
  border-radius: 50px;
  padding: 5px 10px;
}

#logoutBtn {
  background-color: #0595a8;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 5px 10px;
  font-weight: bold;
  font-size: 0.95em;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#logoutBtn:hover {
  color: #ff1e00;
  background-color: rgba(231, 76, 60, 0.1); /* jemné červené pozadie */
  transform: scale(1.05);
}





.bubble-back {
  position: relative !important;
  top: 2px !important;
  margin: 0 !important;

  height: 36px !important;
  min-height: 36px !important;
  padding: 0 15px 0 10px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  border: 1px solid rgba(6, 182, 212, .42) !important;
  border-radius: 999px !important;

  background:
    radial-gradient(circle at 18% 50%, rgba(6, 182, 212, .18), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
    rgba(8, 12, 16, .92) !important;

  color: #f8fafc !important;

  box-shadow:
    0 8px 20px rgba(0,0,0,.26),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 1px rgba(255,255,255,.035) !important;

  font-size: .82rem !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;

  cursor: pointer !important;
  text-shadow: none !important;
  filter: none !important;

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .22s ease,
    color .18s ease !important;
}

.bubble-back::before {
  content: "←";
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;

  display: inline-grid !important;
  place-items: center !important;

  border: 1px solid rgba(6, 182, 212, .48) !important;
  border-radius: 999px !important;

  background:
    radial-gradient(circle, rgba(6, 182, 212, .24), rgba(8, 150, 185, .08)) !important;

  color: #22d3ee !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 0 14px rgba(6,182,212,.20) !important;

  font-size: 1rem !important;
  line-height: 1 !important;
  font-weight: 950 !important;
}

.bubble-back:hover {
  transform: translateY(-1px) scale(1.025) !important;
  border-color: rgba(6, 182, 212, .82) !important;
  color: #fff !important;

  background:
    radial-gradient(circle at 18% 50%, rgba(6, 182, 212, .30), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045)),
    rgba(8, 12, 16, .96) !important;

  box-shadow:
    0 12px 28px rgba(0,0,0,.34),
    0 0 24px rgba(6,182,212,.18),
    inset 0 1px 0 rgba(255,255,255,.10) !important;
}

.bubble-back:hover::before {
  border-color: rgba(34, 211, 238, .92) !important;

  background:
    radial-gradient(circle, rgba(34, 211, 238, .34), rgba(8, 150, 185, .12)) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 0 18px rgba(6,182,212,.32) !important;
}

.bubble-back:active {
  transform: translateY(0) scale(.985) !important;
}

/* Mobil */
@media (max-width: 600px) {
  .bubble-back {
    top: 1px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 11px 0 7px !important;
    gap: 6px !important;
    font-size: .74rem !important;
  }

  .bubble-back::before {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    font-size: .94rem !important;
  }
}

/* Extra malé mobily – ostane len ikonka */
@media (max-width: 380px) {
  .bubble-back {
    top: 1px !important;
    width: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    gap: 0 !important;
    font-size: 0 !important;
  }

  .bubble-back::before {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
  }
}

@media (max-width: 600px) {
  .bubble-back,
  #backBtn.bubble-back {
    position: relative !important;
    top: -10px !important;
    left: 5px !important;
  }
}


/* fallback, ak nemáš premenné */
:root{
  --grad-gta: linear-gradient(135deg,
    #ff2aa1 0%,
    #ff7ab3 8%,
    #ffb86b 22%,
    #ffd56b 32%,
    #06b6d4 50%,
    #60a5fa 66%,
    #34d399 82%,
    #fda4af 100%
  );
}

/* softer GTA VI header */
#categoryTitle{
  position: sticky;
  top: -5px;
  z-index: 999;

  /* tmavý overlay + tvoja téma pod ním */
  background-image:
    linear-gradient(rgba(0,0,0,.22), rgba(0,0,0,.22)),
    var(--grad-gta);
  background-size: auto, 260% 260%;     /* menší „rozsah“ gradientu */
  animation: flameGradient 20s ease-in-out infinite; /* pomalšie, menej agresívne */
  filter: saturate(.9) brightness(.96);  /* znížená sýtosť/jas */

  padding: 14px 24px;
  text-align: center;
  font-size: 1.6em;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,.18); /* mäkší tieň */
  letter-spacing: .5px;
  text-transform: none;
  transition: box-shadow .3s ease;
}

/* plynutie gradientu (ponechané) */
@keyframes flameGradient{
  0%{   background-position: 0% 50%;   }
  50%{  background-position: 100% 50%; }
  100%{ background-position: 0% 50%;   }
}

/* rešpektuj reduced motion */
@media (prefers-reduced-motion: reduce){
  #categoryTitle{ animation: none; }
}
/* Landscape režim: 600px až 900px */
@media (min-width: 600px) and (max-width: 900px) {
  #categoryTitle {
    top: 50px;
    font-size: 1.3em;
    padding: 12px 18px;
  }
}

.top-label {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(45deg, #ff0066, #ff9900);
  color: #fff;
  font-weight: bold;
  font-size: 1.05em;
  border-radius: 30px;
  box-shadow: 0 0 8px rgba(255, 105, 180, 0.8);
  animation: pulseGlow 1.8s infinite ease-in-out;
}




@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.8);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 105, 180, 1);
    transform: scale(1.06);
  }
  100% {
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.8);
    transform: scale(1);
  }
}




@media (max-width: 900px) {
  .filter-container {
    flex-direction: column;
    align-items: center;
    
  }

.auth-links {
    position: absolute;
    top: 1px;
    right: 10px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .filter-container input {
    width: 90%;
    min-width: auto;
  }
  .ad-gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }
}


@media (max-width: 600px) {
  main {
    padding: 20px 10px;
  }
  h2#categoryTitle {
    font-size: 1.3em;
    padding: 10px 0;
  }
  .filter-container {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .filter-container input {
    width: 100%;
    font-size: 0.9em;
    padding: 10px;
  }
  .ad-gallery {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
  }
  .ad-card img {
    min-height: 140px;       
    max-height: 180px;
    object-fit: cover;
  }
  .ad-card {
    padding: 8px;
  }
  .ad-card strong {
    font-size: 1em;
  }
  .ad-card p {
    font-size: 0.85em;
  }
}



@media (max-width: 600px) {
  header {
    height: 60px;
    position: relative;
  }

 .logo {
    position: absolute;
    left: 19%;
    top: 70%;
    transform: translateX(-50%);
    font-size: 1.4em;
  }



  #categoryTitle {
    top: -2px;  
    font-size: 1.2em;
    padding: 8px 0;
  }
}

@media (max-width: 600px) {
  .filter-container {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0 5px;
  }
  .filter-container input {
    width: 100%;
    min-width: auto;
    max-width: 100%;
    font-size: 0.9em;
    padding: 8px;
    box-sizing: border-box;
  }
}




@media (max-width: 600px) {
   #userInfo {
    font-size: 0.7em;
    max-width: 120px;
    text-align: right;
    word-wrap: break-word;
  }


   #logoutBtn {
    font-size: 0.6em;
    padding: 5px 8px;
    border-radius: 20px;
  }
}

@media (max-width: 600px) {
  .top-label {
    font-size: 0.9em;
    padding: 4px 10px;
  }
}

@media (max-width: 400px) {
  .top-label {
    font-size: 0.8em;
    padding: 3px 8px;
  }
}




.like-counter {
  display: inline-flex;
  align-items: center;
  font-size: 0.85em;
  opacity: 0.7;
  margin-left: 6px;
}
.like-counter span {
  margin-left: 4px;
}






















#adModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 10px;         
  box-sizing: border-box;
}

#modalContent {
  background: var(--card-bg, #fff);
  color: var(--text-color, #000);
  padding: 20px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;       
  overflow-y: auto;     
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  position: relative;
  animation: fadeIn 0.3s ease;
}


#modalContent h2 {
  text-align: center;
  
  margin-bottom: 10px;
  font-size: 1.6em;
  word-wrap: break-word; 
  padding: 0 10px;       
}

@media (max-width: 900px) {
  #modalContent h2 {
    font-size: 1.4em; 
    margin-top: 8px;
  }
}

@media (max-width: 600px) {
  #modalContent h2 {
    font-size: 1.2em; 
    margin-top: 6px;
  }
}

@media (max-width: 400px) {
  #modalContent h2 {
    font-size: 1.1em; 
    margin-top: 4px;
  }
}




#closeModal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2em;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  color: #333; 
  z-index: 10000;
  transition: color 0.3s;
}

#closeModal:hover {
  color: #ff4d6d;
}


.modal-gallery-main img {
  width: 100%;
  max-height: 50vh;  
  object-fit: cover;
  border-radius: 8px;
}


.modal-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 15px;
}

.modal-gallery-thumbs img {
  width: 80px;
  height: auto; 
  object-fit: cover;
  image-rendering: crisp-edges; 
  border-radius: 6px;
}

.modal-gallery-thumbs img {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.modal-gallery-thumbs img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
}





.modal-link {
  color: #0595a8;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s, text-decoration 0.3s;
}

.modal-link:hover {
  color: #041d1f;
  text-decoration: underline;
}


@media (prefers-color-scheme: dark) {
  .modal-link:hover {
    color: #b3f4ff; 
    text-decoration: underline;
  }
}

body.dark-mode .modal-link:hover {
  color: #b3f4ff;
}







.modal-like-btn {
  background-color: #ff4d6d;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1em;
  margin-bottom: 10px;
  transition: background-color 0.3s;
}

.modal-like-btn:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}


.price {
  color: #0595a8;
  font-weight: bold;
}


.author-block {
  margin-top: 10px;
  font-size: 0.9em;
}


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



@media (max-width: 900px) {
  #modalContent {
    max-width: 90%;
    padding: 15px;
  }

  .modal-gallery-thumbs img {
    width: 60px;
    aspect-ratio: 4 / 3;
    height: auto;
  }

  #closeModal {
    font-size: 1.6em;
  }
}


@media (max-width: 600px) {
  #modalContent {
    max-width: 95%;
    padding: 12px;
    font-size: 0.95em;
  }

  .modal-gallery-main img {
    max-height: 250px;
  }

  .modal-gallery-thumbs img {
    width: 50px;
    aspect-ratio: 4 / 3;
    height: auto;
  }

  #modalLikeBtn {
    width: 100%;
    font-size: 0.9em;
  }

  #closeModal {
    font-size: 1.4em;
  }
}


@media (max-width: 430px) {
  .ad-gallery {
    grid-template-columns: 1fr !important;
  }
}






.modal-detail-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
 background-color: #00723dfa;    
  color: white;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background-color 0.3s, transform 0.2s;
}

.modal-detail-link:hover {
   background-color:  #034728;    
  transform: scale(1.05);
}


@media (max-width: 900px) {
  .modal-detail-link {
    font-size: 0.9em;
    padding: 9px 16px;
  }
}


@media (max-width: 600px) {
  .modal-detail-link {
    font-size: 0.85em;
    padding: 8px 14px;
  }
}


@media (max-width: 400px) {
  .modal-detail-link {
    font-size: 0.8em;
    padding: 7px 12px;
  }
}



.ad-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
  transition: none;
}
@keyframes shimmer {
  0% { left: -150%; }
  100% { left: 150%; }
}


#infoMoreBtn {
  position: relative;
  z-index: 0;
  isolation: isolate;

  display: block;
  width: 100%;
  box-sizing: border-box;

  padding: 8px 10px;
  font-size: 0.72em;
  line-height: 1.1;
  font-weight: bold;

  color: white;
  cursor: pointer;
  border: none;
  border-radius: 30px;

  /* 1 riadok */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  background: var(--highlight-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);

  animation: softPulse 6s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#infoMoreBtn::before{
  content:"";
  position:absolute;
  top:-2px;
  left:-2px;
  right:-2px;
  bottom:-2px;
  z-index:-1;
  pointer-events:none;
  border-radius:32px;

  background-image:
    linear-gradient(rgba(0,0,0,.10), rgba(0,0,0,.10)),
    linear-gradient(135deg,
      #ff2aa1 0%,
      #ff7ab3 8%,
      #ffb86b 22%,
      #ffd56b 32%,
      #06b6d4 50%,
      #60a5fa 66%,
      #34d399 82%,
      #fda4af 100%
    );
  background-size: auto, 320% 320%;
  background-position: center, 0% 50%;
  opacity:.88;

  animation: elegantWave 16s ease-in-out infinite;
}

#infoMoreBtn:hover{
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,.5);
}

@keyframes elegantWave{
  0%   { background-position: center,   0% 50%; }
  50%  { background-position: center, 100% 50%; }
  100% { background-position: center,   0% 50%; }
}

@media (prefers-reduced-motion: reduce){
  #infoMoreBtn::before{
    animation:none;
  }
}




.email-badge {
  display: inline-block;
  background-color: rgba(168, 5, 141, 0.1);
  color: var(--primary);
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0px 6px rgba(0, 0, 0, 0.61);
}



.contact-badge {
  display: inline-block;
  background-color: rgba(5, 149, 168, 0.1);
  color: var(--primary);
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
  box-shadow: 0 0px 6px rgba(0, 0, 0, 0.658);
}

.contact-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.596);
  background-color: var(--primary);
  color: white;
}


.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}


.modal-box {
  background: white;
  padding: 28px;
  border-radius: 14px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  animation: fadeIn 0.2s ease-in;
  text-align: center;
}

/* Responsivita */
@media (max-width: 500px) {
  .modal-box {
    padding: 20px;
    width: 94%;
  }

  .modal-box button {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 12px;
  }
}

.modal-box h3 {
  margin-top: 0;
  color: #c2185b;
}

.modal-box label {
  text-align: left;
  display: block;
  margin-top: 12px;
  font-weight: bold;
}

.modal-box select,
.modal-box textarea {
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.modal-box button {
  margin-top: 16px;
  padding: 10px 20px;
  border: none;
  background-color: #c2185b;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
}

.modal-box button.cancel {
  background-color: #bbb;
  margin-left: 10px;
}

.modal-box button:hover {
  opacity: 0.9;
}


.success-msg {
  margin-top: 12px;
  padding: 10px;
  background-color: #dff0d8;
  color: #3c763d;
  border-radius: 6px;
  display: none;
}

.loading-msg {
  display: none;
  margin-top: 12px;
  padding: 10px;
  background-color: #fff3cd;
  color: #856404;
  border-radius: 6px;
  border: 1px solid #ffeeba;
  font-weight: bold;
  animation: pulse 1.5s infinite;
}

@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}


body.dark-mode .modal-box {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

body.dark-mode .modal-box h3 {
  color: #ff77b8;
}

body.dark-mode .modal-box select,
body.dark-mode .modal-box textarea {
  background-color: #2c2c2c;
  color: #f1f1f1;
  border: 1px solid #555;
}

body.dark-mode .modal-box button {
  background-color: #ff2f7c;
  color: white;
}

body.dark-mode .modal-box button.cancel {
  background-color: #666;
}

body.dark-mode .success-msg {
  background-color: #29432c;
  color: #c8f7c5;
}

body.dark-mode .loading-msg {
  background-color: #4a3a00;
  color: #ffd866;
  border-color: #806000;
}



.highlight:hover {
  transform: scale(1.05); 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

 
    .clickable {
      color: var(--primary);
      cursor: pointer;
      
    }


.main-wrapper {
  min-height: calc(100vh - 63px); 
  display: flex;
  flex-direction: column;
}











.action-btn {
  background: linear-gradient(135deg, var(--highlight-color), var(--hover-color));
  color: rgb(0, 0, 0);
  border: none;
  border-radius: 8px;
  padding: 1px 1px;
  font-weight: bold;
  
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}



#adModal {
  overflow-y: auto;
  scrollbar-width: thin; 
  scrollbar-color: var(--highlight-color) transparent;
}


#adModal::-webkit-scrollbar {
  width: 4px; 
}

#adModal::-webkit-scrollbar-track {
  background: transparent;
}

#adModal::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--highlight-color), #f511b0, var(--hover-color), #fc1287);
  border-radius: 50px; 
}

#adModal::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--hover-color), #fc1287, var(--highlight-color), #f511b0);
}


.categories > .category {
  position: relative;
  padding-right: 26px; 
}

.categories > .category::after,
.categories > .category::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--highlight-color);
  border-bottom: 2px solid var(--highlight-color);
  transform: translateY(-50%) rotate(45deg); 
  animation: arrowPulse 1.2s infinite ease-in-out;
}


@keyframes arrowPulse {
  0%, 100% { transform: translateY(-50%) rotate(45deg) scale(1); opacity: 1; }
  50% { transform: translateY(-40%) rotate(45deg) scale(1.2); opacity: 0.8; }
}


.bubble-container .category::after,
.bubble-container .category::before {
  content: none !important;
}












  #reportModal{
    position:fixed; inset:0;
    display:none; /* prepína JS */
    align-items:center; justify-content:center;
    background:rgba(0,0,0,.45);
    z-index:9999;
    backdrop-filter: blur(2px);
  }


  #reportModal .modal-box{
    background:#ffffff; color:#1f2430;
    width:92%; max-width:520px;
    border-radius:14px;
    padding:24px;
    border:1px solid #e5e7eb;
    box-shadow:0 18px 40px rgba(15,23,42,.15);
    animation: reportIn .18s ease;
    text-align:left;
  }
  @keyframes reportIn{
    from{ transform: translateY(4px) scale(.98); opacity:0; }
    to{ transform: translateY(0) scale(1); opacity:1; }
  }


  #reportModal h3{ margin:0 0 12px; color:#c00582; font-size:1.15rem; }
  #reportModal label{ display:block; margin-top:12px; font-weight:700; color:#6b7280; }


  #reportModal select,
  #reportModal textarea,
  #reportModal input[type="email"]{
    width:100%; margin-top:6px;
    padding:10px 12px; border-radius:10px;
    border:1px solid #e5e7eb; outline:none;
    background:#fff; color:#1f2430;
  }
  #reportModal select:focus,
  #reportModal textarea:focus,
  #reportModal input[type="email"]:focus{
    box-shadow:0 0 0 3px rgba(192,5,130,.15);
    border-color:#c00582;
  }


  #reportModal .loading-msg{
    display:none; margin-top:12px; padding:10px 12px;
    background: rgba(245,158,11,.1); color:#a86b00;
    border:1px dashed rgba(245,158,11,.45);
    border-radius:10px; font-weight:700;
    animation: pulseRpt 1.5s infinite;
  }
  @keyframes pulseRpt{ 0%{opacity:1} 50%{opacity:.6} 100%{opacity:1} }

  #reportModal .success-msg{
    display:none; margin-top:12px; padding:10px 12px;
    background: rgba(22,163,74,.10); color:#16a34a;
    border:1px solid rgba(22,163,74,.25); border-radius:10px;
  }

  #reportModal .actions{ margin-top:16px; display:flex; gap:10px; flex-wrap:wrap; }
  #reportModal .actions button{
    appearance:none; border:none; cursor:pointer;
    padding:10px 16px; border-radius:10px; font-weight:700; font-size:1rem;
    transition:.18s transform ease, .18s opacity ease, .18s box-shadow ease;
  }
  #submitReport{ background:#0d6efd; color:#fff; }
  #closeReportModal{ background:#fff; color:#1f2430; border:1px solid #e5e7eb; }

  /* --- Dark mode (tvoj štýl) --- */
  body.dark-mode #reportModal .modal-box{ background:#171a21; color:#e5e7eb; border-color:#2a2f3a; box-shadow:0 20px 50px rgba(0,0,0,.45); }
  body.dark-mode #reportModal h3{ color:#ff2f7c; }
  body.dark-mode #reportModal label{ color:#9aa3af; }
  body.dark-mode #reportModal select,
  body.dark-mode #reportModal textarea,
  body.dark-mode #reportModal input[type="email"]{
    background:#0f1115; color:#e5e7eb; border-color:#2a2f3a;
  }
  body.dark-mode #reportModal select:focus,
  body.dark-mode #reportModal textarea:focus,
  body.dark-mode #reportModal input[type="email"]:focus{
    box-shadow:0 0 0 3px rgba(255,47,124,.20); border-color:#ff2f7c;
  }
  body.dark-mode #reportModal .loading-msg{
    background: rgba(255,191,71,.12); color:#ffbf47;
    border-color: rgba(255,191,71,.35);
  }
  body.dark-mode #reportModal .success-msg{
    background: rgba(34,197,94,.12); color:#22c55e;
    border-color: rgba(34,197,94,.35);
  }
  body.dark-mode #submitReport{ background:#4da3ff; color:#0b1020; }
  body.dark-mode #closeReportModal{ background:transparent; color:#e5e7eb; border:1px solid #2a2f3a; }





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


.modal-box {
  max-width: min(520px, calc(100vw - 32px));
  padding: clamp(16px, 2.5vw, 24px);
  min-inline-size: 0;  
  overflow: hidden;   
}


.modal-box input[type="text"],
.modal-box input[type="email"],
.modal-box select,
.modal-box textarea {
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box; 
}


.modal-box,
.modal-box * {
  overflow-wrap: anywhere;   
  word-break: break-word;  
}


.modal-overlay {
  padding: 8px;
}


:root{
  --badges-fade: 28px;  
  --card-bg: #fff;     
}


.badges{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;           
  height: 24px;               
  overflow: hidden;             
  position: relative;
  padding-right: var(--badges-fade);

  
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--badges-fade)), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--badges-fade)), transparent 100%);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}


@supports not ((-webkit-mask-image: linear-gradient(#000,#000)) or (mask-image: linear-gradient(#000,#000))) {
  .badges{ -webkit-mask-image: none; mask-image: none; }
  .badges::after{
    content: "";
    position: absolute; inset: 0 0 0 auto;
    width: var(--badges-fade);
    pointer-events: none;
    background: linear-gradient(to right, transparent, var(--card-bg));
  }
}

/* ===== BADGE – základ ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform .18s ease, box-shadow .18s ease;
  backdrop-filter: blur(2px);
  position: relative;   /* pre prípadné z-index layering */
  z-index: 1;
}
.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

/* ===== Ikonka – menšia ===== */
.badge::before {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  background-color: currentColor;
  -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
          mask-size: contain;          mask-repeat: no-repeat;          mask-position: center;
}

/* 💎 VIP – GTA VI neon gradient (jemný pulz, neorezáva susedov) */
.badge-vip{
  --g1: #ff2aa1; /* neon magenta */
  --g2: #b832f6; /* purple */
  --g3: #06b6d4; /* electric teal */
  --g4: #ff9a3c; /* sunset orange */

  background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 35%, var(--g3) 70%, var(--g4) 100%);
  background-size: 340% 340%;
  animation: vipPulse 1.1s ease-in-out infinite, flameGradient 10s linear infinite;
  color: #fff;
  text-shadow: 0 0 2px rgba(255,255,255,.75);
  box-shadow:
    0 0 12px rgba(255, 42, 161, .35),
    0 2px 8px rgba(0,0,0,.15);
}
.badge-vip::before{ content: none; }

/* 🔥 TOP – bez ikonky */
.badge-top {
  background: linear-gradient(135deg, #ff0066, #ff7b00, #ffb300);
  background-size: 200% 200%;
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.4);
}
.badge-top::before { content: none; }

/* ✅ Overený */
.badge-verified {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.3);
}
.badge-verified::before {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.285 2.857L9 14.143 3.715 8.857 2.3 10.272 9 16.972l12-12z"/></svg>');
          mask-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.285 2.857L9 14.143 3.715 8.857 2.3 10.272 9 16.972l12-12z"/></svg>');
}

/* 👤 Registrovaný */
.badge-registered {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}
.badge-registered::before {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 12c2.67 0 8 1.34 8 4v2H4v-2c0-2.66 5.33-4 8-4zm0-2a4 4 0 100-8 4 4 0 000 8z"/></svg>');
          mask-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 12c2.67 0 8 1.34 8 4v2H4v-2c0-2.66 5.33-4 8-4zm0-2a4 4 0 100-8 4 4 0 000 8z"/></svg>');
}


@keyframes vipPulse {
  0%   { transform: scale(1);     box-shadow: 0 0 6px rgba(255,0,149,0.40), 0 0 3px rgba(255,255,255,0.70); }
  50%  { transform: scale(1.005); box-shadow: 0 0 12px rgba(255,0,149,0.55), 0 0 5px rgba(255,255,255,0.90); }
  100% { transform: scale(1);     box-shadow: 0 0 6px rgba(255,0,149,0.40), 0 0 3px rgba(255,255,255,0.70); }
}

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


@media (max-width: 900px) {
  .badge { font-size: 0.72em; padding: 2px 7px 2px 5px; }
  .badge::before { width: 11px; height: 11px; }
}
@media (max-width: 600px) {
  .badge { font-size: 0.7em; padding: 2px 6px 2px 5px; }
  .badge::before { width: 10px; height: 10px; }
}
@media (max-width: 400px) {
  .badge { font-size: 0.68em; padding: 2px 5px; }
  .badge::before { width: 9px; height: 9px; }
}









:root{ --sidebar-top: 161px; } 

#categorySidebar{
  max-height: 740px;
  width: 255px;
  margin-left: -300px;                
  padding: 18px 16px;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);

  border-left: 4px solid transparent;
  border-image: linear-gradient(
    to bottom,
    #ff2aa1 0%,
    #ff7ab3 10%,
    #ffb86b 30%,
    #ffd56b 40%,
    #06b6d4 60%,
    #60a5fa 75%,
    #34d399 90%,
    #fda4af 100%
  ) 1;

  position: sticky;
  top: var(--sidebar-top);

  height: auto;
  max-height: calc(100vh - var(--sidebar-top));
  overflow-y: hidden;
  overflow-x: hidden;

  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  contain: layout paint;
  backface-visibility: hidden;
  transform: translateZ(0);

  animation: slideInSidebar .8s ease-out;
  transition: box-shadow .25s ease, transform .25s ease, max-height .25s ease;
}

#categorySidebar.has-open{
  height: calc(100vh - var(--sidebar-top));
  overflow-y: auto;
  scrollbar-gutter: stable;
}

#categorySidebar:hover{
  box-shadow: 0 4px 18px rgba(0,0,0,.20);
  transform: translateZ(0) translateX(1px);
}


body.dark-mode #categorySidebar{
  background: #111827;
  box-shadow: 0 2px 16px rgba(0,0,0,.7);
}


@keyframes slideInSidebar{
  from{ transform: translateX(-20px); opacity: 0; }
  to  { transform: translateX(0);     opacity: 1; }
}


@media (max-width: 768px) {
  #categorySidebar { display: none; }
}


.category-box h2 {
  font-size: 1.15em;
  margin-bottom: 12px;
  color: var(--text-color);
}


.category {
  font-weight: 600;
  margin: 10px 0 5px;
  cursor: pointer;
  color: var(--text-color);
  transition: color 0.2s ease;
}
.category:hover { color: var(--highlight-color); }


.bubble-container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
  margin-top: 10px;
  justify-content: flex-start;
  border-left: 2px solid var(--hover-border);
  padding-left: 10px;
}


.bubble{
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(#f9f9f9, #e6e6e6) padding-box,
    linear-gradient(135deg,
      #ff2aa1 0%,
      #ff7ab3 8%,
      #ffb86b 22%,
      #ffd56b 32%,
      #06b6d4 50%,
      #60a5fa 66%,
      #34d399 82%,
      #fda4af 100%
    ) border-box;
  background-size: 300% 300%;
  animation: liveBoxBorderMove 10s ease infinite;

  color: #333;
  padding: 12px 18px;
  font-size: 0.95em;
  text-align: center;
  cursor: pointer;
  user-select: none;

  display: inline-flex;
  justify-content: center;
  align-items: center;

  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.bubble:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}


body.dark-mode .bubble{
  background:
    linear-gradient(#1b1b1b, #2a2a2a) padding-box,
    linear-gradient(135deg,
      #ff2aa1 0%,
      #ff7ab3 8%,
      #ffb86b 22%,
      #ffd56b 32%,
      #06b6d4 50%,
      #60a5fa 66%,
      #34d399 82%,
      #fda4af 100%
    ) border-box;
  color: #e0e0e0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
}
body.dark-mode .bubble:hover{ box-shadow: 0 6px 16px rgba(0,0,0,0.5); }


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



#categorySidebar .category{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;

  transition:
    background-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease,
    color .18s ease;
}


#categorySidebar .category:hover{
  background: rgba(0,0,0,0.04);
  transform: translateX(3px) scale(1.01);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}


#categorySidebar .category:active{
  transform: translateX(1px) scale(0.99);
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

body.dark-mode #categorySidebar .category:hover{
  background: rgba(255,255,255,0.04);
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}


#categorySidebar .bubble-container{
  display: block !important;   
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin: 1px 0 1px 1px;
  border-left: 2px solid var(--hover-border);
  padding-left: 10px;
  transition: max-height .28s ease, opacity .2s ease;
  will-change: max-height;
}


#categorySidebar .bubble-container.open{
  opacity: 1;
  max-height: var(--open-h, 1200px);
}


#categorySidebar .bubble{
  min-width: 120px;
  width: calc(50% - 12px);
  max-width: 100%;
}


#categorySidebar .bubble-container .bubble-container{ margin-left: 16px; }

@media (min-width:769px){
  #categorySidebar{
    scrollbar-width: none;
  }

  #categorySidebar::-webkit-scrollbar{
    width: 0;
    height: 0;
  }

  #categorySidebar.has-open{
    scrollbar-width: thin;
    scrollbar-color: #20b2aa transparent;
  }

  #categorySidebar.has-open::-webkit-scrollbar{
    width: 10px;
  }

  #categorySidebar.has-open:hover::-webkit-scrollbar{
    width: 12px;
  }

  #categorySidebar.has-open::-webkit-scrollbar-track{
    background: transparent;
  }

  #categorySidebar.has-open::-webkit-scrollbar-thumb{
    background: #20b2aa;
    border-radius: 12px;
    border: 2px solid transparent;
    min-height: 40px;
  }

  #categorySidebar.has-open::-webkit-scrollbar-thumb:hover{
    background: #1a9a94; 
  }
}

/* =========================================================
   TYPOGRAFIA – čistý text DajSem.sk
   ========================================================= */

html,
body,
button,
input,
textarea,
select {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
}

body,
main,
section,
article,
.modal,
.modal-content,
.modern-modal,
.card,
.ad-card {
  text-shadow: none;
}

h1,
h2,
h3 {
  font-weight: 760;
  letter-spacing: -0.03em;
}

p,
span,
small,
label,
li {
  letter-spacing: -0.005em;
}

button,
.btn,
.action-btn,
.verify-button {
  font-weight: 730;
  letter-spacing: -0.01em;
  text-shadow: none;
}

input,
textarea,
select {
  font-weight: 500;
  letter-spacing: -0.005em;
}
/* =========================================================
   KATEGORIA.HTML – filtre a nadpis podľa vsetky.html
   ========================================================= */

@media (max-width: 600px) {
  main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 10px !important;
    box-sizing: border-box !important;
  }

  #categoryTitle,
  h2#categoryTitle {
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px auto 18px !important;
    box-sizing: border-box !important;

    font-size: 1.3em !important;
    line-height: 1.25 !important;
    padding: 10px 0 !important;

    text-align: center !important;
    border-radius: 18px !important;

    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .filter-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 30px !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .filter-container input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    box-sizing: border-box !important;

    font-size: 0.9em !important;
    padding: 8px !important;
  }
}
@media (max-width: 430px) {
  #categoryTitle,
  h2#categoryTitle {
    margin-top: 30px !important;
  }
}
/* =========================================================
   KATEGORIA.HTML – 1:1 layout podľa vsetky.html
   sidebar + obsah + nadpis + filtre
   ========================================================= */

@media (min-width: 901px) {
  body > .main-wrapper > main {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 40px 20px !important;

    display: grid !important;
    grid-template-columns: 255px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 20px !important;

    box-sizing: border-box !important;
  }

  body > .main-wrapper > main > #categorySidebar {
    width: 255px !important;
    min-width: 255px !important;
    max-width: 255px !important;

    margin-left: 0 !important;
    flex: none !important;

    position: sticky !important;
    top: 20px !important;

    transform: none !important;
    animation: none !important;

    box-sizing: border-box !important;
  }

  body > .main-wrapper > main > #categorySidebar:hover {
    transform: none !important;
  }

  body > .main-wrapper > main > div {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body > .main-wrapper > main #categoryTitle {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto 20px !important;
    box-sizing: border-box !important;
  }

  body > .main-wrapper > main .filter-container {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto 30px !important;
    box-sizing: border-box !important;

    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px !important;
  }

  body > .main-wrapper > main .filter-container input {
    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
    box-sizing: border-box !important;
  }

  body > .main-wrapper > main #adsContainer {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

/* =========================================================
   FIX – VIP/TOP badge časomiera po zjednotení gridov
   časomiera sa už neodrezáva na PC ani mobile
   ========================================================= */

.ad-card .badges {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;

  gap: 6px !important;
  height: auto !important;
  min-height: 24px !important;
  max-height: none !important;

  overflow: visible !important;
  padding-right: 0 !important;
  margin-bottom: 8px !important;

  -webkit-mask-image: none !important;
          mask-image: none !important;
}

.ad-card .badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;

  width: auto !important;
  max-width: 100% !important;

  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: unset !important;

  line-height: 1.15 !important;
}

.ad-card .badge .remain {
  display: inline-flex !important;
  align-items: center !important;

  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: unset !important;

  font-size: 0.92em !important;
  opacity: 0.96 !important;
}

/* užšie karty – nech sa VIP/TOP zmestí aj pri 5-grid rozložení */
@media (min-width: 901px) {
  .ad-card .badge {
    font-size: 0.70em !important;
    padding: 3px 7px !important;
  }

  .ad-card .badge .remain {
    font-size: 0.9em !important;
  }
}

/* tablet */
@media (max-width: 900px) {
  .ad-card .badges {
    gap: 5px !important;
    margin-bottom: 7px !important;
  }

  .ad-card .badge {
    font-size: 0.70em !important;
    padding: 3px 7px !important;
  }
}

/* mobil */
@media (max-width: 600px) {
  .ad-card .badges {
    gap: 5px !important;
    margin-bottom: 7px !important;
  }

  .ad-card .badge {
    font-size: 0.68em !important;
    padding: 3px 6px !important;
  }

  .ad-card .badge .remain {
    font-size: 0.88em !important;
  }
}

/* veľmi úzke mobily */
@media (max-width: 380px) {
  .ad-card .badge {
    font-size: 0.64em !important;
    padding: 3px 5px !important;
  }

  .ad-card .badge .remain {
    font-size: 0.84em !important;
  }
}

/* =========================================================
   MOBILNÉ FILTRE – modal v strede, mierne nižšie,
   bezpečný spodok + štýl podľa bubble-back
   ========================================================= */

.mobile-filter-toggle,
.mobile-filter-head,
.mobile-filter-actions,
.mobile-filter-backdrop {
  display: none;
}

@media (max-width: 768px) {

  /* Tlačidlo otvorenia filtrov */
  .mobile-filter-toggle {
    width: min(100%, 420px);
    margin: 0 auto 18px !important;
    padding: 11px 16px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    border: 1px solid rgba(6, 182, 212, .42) !important;
    border-radius: 999px !important;

    background:
      radial-gradient(circle at 18% 50%, rgba(6, 182, 212, .18), transparent 38%),
      linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
      rgba(8, 12, 16, .92) !important;

    color: #f8fafc !important;

    box-shadow:
      0 8px 20px rgba(0,0,0,.26),
      inset 0 1px 0 rgba(255,255,255,.08),
      0 0 0 1px rgba(255,255,255,.035) !important;

    font-size: .88rem !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;

    cursor: pointer !important;

    transition:
      transform .18s ease,
      border-color .18s ease,
      background .18s ease,
      box-shadow .22s ease,
      color .18s ease !important;
  }

  .mobile-filter-toggle:hover {
    transform: translateY(-1px) scale(1.02) !important;
    border-color: rgba(6, 182, 212, .82) !important;
    color: #fff !important;

    background:
      radial-gradient(circle at 18% 50%, rgba(6, 182, 212, .30), transparent 42%),
      linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045)),
      rgba(8, 12, 16, .96) !important;

    box-shadow:
      0 12px 28px rgba(0,0,0,.34),
      0 0 24px rgba(6,182,212,.18),
      inset 0 1px 0 rgba(255,255,255,.10) !important;
  }

  /* Pozadie modalu */
  .mobile-filter-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9997 !important;

    display: block !important;
    opacity: 0 !important;
    pointer-events: none !important;

    background: rgba(0,0,0,.46) !important;
    backdrop-filter: blur(4px) !important;

    transition: opacity .22s ease !important;
  }

  body.filters-open .mobile-filter-backdrop {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Samotný filter modal */
  .filter-container {
    position: fixed !important;

    /* Mierne nižšie pod headerom */
    top: 105px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;

    z-index: 9998 !important;

    width: calc(100vw - 24px) !important;
    max-width: 430px !important;

    /*
      Bezpečný spodok:
      100vh - top - spodná rezerva.
      Tlačidlá nezapadnú pod obrazovku.
    */
    max-height: calc(100vh - 125px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;

    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 14px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;

    border: 1px solid rgba(6, 182, 212, .42) !important;
    border-radius: 26px !important;

    background:
      radial-gradient(circle at 18% 10%, rgba(6, 182, 212, .16), transparent 28%),
      linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
      rgba(8, 12, 16, .96) !important;

    color: #f8fafc !important;

    box-shadow:
      0 18px 40px rgba(0,0,0,.38),
      0 0 24px rgba(6,182,212,.10),
      inset 0 1px 0 rgba(255,255,255,.08),
      0 0 0 1px rgba(255,255,255,.03) !important;

    transform: translateX(-50%) translateY(-12px) scale(.985) !important;
    opacity: 0 !important;
    pointer-events: none !important;

    transition:
      transform .22s ease,
      opacity .18s ease !important;

    scrollbar-width: thin;
    scrollbar-color: rgba(34,211,238,.55) transparent;
  }

  .filter-container::-webkit-scrollbar {
    width: 6px;
  }

  .filter-container::-webkit-scrollbar-track {
    background: transparent;
  }

  .filter-container::-webkit-scrollbar-thumb {
    background: rgba(34,211,238,.45);
    border-radius: 999px;
  }

  body.filters-open .filter-container {
    transform: translateX(-50%) translateY(0) scale(1) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Hlavička modalu */
  .mobile-filter-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;

    flex: 0 0 auto !important;

    padding: 2px 2px 8px !important;
    margin-bottom: 2px !important;

    color: #f8fafc !important;
    border-bottom: 1px solid rgba(6,182,212,.18) !important;
  }

  .mobile-filter-head strong {
    font-size: .95rem !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
  }

  .mobile-filter-head button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;

    display: inline-grid !important;
    place-items: center !important;

    border: 1px solid rgba(6, 182, 212, .48) !important;
    border-radius: 999px !important;

    background:
      radial-gradient(circle, rgba(6, 182, 212, .24), rgba(8, 150, 185, .08)) !important;

    color: #22d3ee !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.10),
      0 0 14px rgba(6,182,212,.20) !important;

    font-size: 1.2rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;

    cursor: pointer !important;
  }

  /* Inputy */
  .filter-container input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 42px !important;

    flex: 0 0 auto !important;
    box-sizing: border-box !important;

    padding: 10px 14px !important;
    border-radius: 999px !important;
    border: 2px solid transparent !important;

    color: #111 !important;

    background:
      linear-gradient(#ffffff, #fff8f8) padding-box,
      linear-gradient(135deg, #f511b0, #0595a8, #fc1287, #0595a8) border-box !important;

    background-size: 300% 300% !important;
    animation: filterBorderMove 8s ease infinite !important;

    font-size: .92rem !important;
    outline: none !important;
  }

  .filter-container input:focus {
    box-shadow:
      0 0 0 2px rgba(6,182,212,.14),
      0 0 12px rgba(245,17,176,.24) !important;
    transform: none !important;
  }

  /* Akcie dole */
  .mobile-filter-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;

    flex: 0 0 auto !important;

    margin-top: 6px !important;
    padding-top: 2px !important;
  }

  .mobile-filter-actions button {
    height: 40px !important;
    min-height: 40px !important;

    border-radius: 999px !important;

    font-size: .86rem !important;
    font-weight: 900 !important;

    cursor: pointer !important;

    transition:
      transform .18s ease,
      box-shadow .18s ease,
      border-color .18s ease !important;
  }

  .mobile-filter-actions button:hover {
    transform: translateY(-1px) !important;
  }

  .filter-clear-btn {
    border: 1px solid rgba(6, 182, 212, .42) !important;

    background:
      radial-gradient(circle at 18% 50%, rgba(6, 182, 212, .12), transparent 38%),
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
      rgba(8, 12, 16, .82) !important;

    color: #f8fafc !important;

    box-shadow:
      0 8px 18px rgba(0,0,0,.22),
      inset 0 1px 0 rgba(255,255,255,.06) !important;
  }

  .filter-apply-btn {
    border: 1px solid rgba(6, 182, 212, .62) !important;

    background:
      radial-gradient(circle at 18% 50%, rgba(6, 182, 212, .22), transparent 38%),
      linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04)),
      rgba(8, 12, 16, .94) !important;

    color: #f8fafc !important;

    box-shadow:
      0 8px 20px rgba(0,0,0,.26),
      0 0 18px rgba(6,182,212,.12),
      inset 0 1px 0 rgba(255,255,255,.08),
      0 0 0 1px rgba(255,255,255,.035) !important;
  }

  .filter-clear-btn:active,
  .filter-apply-btn:active,
  .mobile-filter-head button:active,
  .mobile-filter-toggle:active {
    transform: scale(.985) !important;
  }
}

/* Nižšie mobily – trochu kompaktnejšie */
@media (max-width: 768px) and (max-height: 760px) {
  .filter-container {
    top: 86px !important;
    max-height: calc(100vh - 102px) !important;
    padding: 12px !important;
    gap: 8px !important;
    border-radius: 22px !important;
  }

  .filter-container input {
    height: 39px !important;
    padding: 8px 13px !important;
    font-size: .88rem !important;
  }

  .mobile-filter-actions button {
    height: 38px !important;
    min-height: 38px !important;
  }

  .mobile-filter-head {
    padding-bottom: 6px !important;
  }
}

/* Extra nízka obrazovka – stále bezpečne v obraze */
@media (max-width: 768px) and (max-height: 650px) {
  .filter-container {
    top: 72px !important;
    max-height: calc(100vh - 86px) !important;
  }
}

/* =========================================================
   KATEGORIA.HTML – zjednotenie logout + toggle podľa vsetky.html
   iba responzívne
   ========================================================= */

@media (max-width: 600px) {
  .auth-links {
    position: absolute !important;
    top: 3px !important;
    right: 13px !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;

    max-width: 230px !important;
    width: auto !important;
    flex-wrap: wrap !important;
  }

  #userInfo {
    font-size: 0.7em !important;
    max-width: 120px !important;
    width: auto !important;

    text-align: right !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;

    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;

    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1.15 !important;
  }

  #logoutBtn {
    font-size: 0.6em !important;
    padding: 5px 8px !important;
    border-radius: 20px !important;

    margin-left: 0 !important;
    flex: 0 0 auto !important;
  }

  .theme-toggle {
    margin-left: 0 !important;
    flex: 0 0 auto !important;
  }
}
/* =========================================================
   MOBILNÉ FILTRE – PERFORMANCE LIGHT PATCH
   rýchlejšie otvorenie burger filtrov bez ťažkého blur efektu
   ========================================================= */

@media (max-width: 768px) {

  .mobile-filter-backdrop {
    background: rgba(0, 0, 0, .42) !important;

    /* najväčší brzdič na mobile */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    transition: opacity .14s ease-out !important;
    will-change: opacity !important;
  }

  .filter-container {
    /* ľahší panel */
    background:
      linear-gradient(180deg, rgba(18, 24, 32, .98), rgba(8, 12, 16, .98)) !important;

    box-shadow:
      0 12px 28px rgba(0, 0, 0, .34),
      inset 0 1px 0 rgba(255, 255, 255, .06) !important;

    /* menej neohrabaný pohyb */
    transform: translate3d(-50%, -8px, 0) !important;
    opacity: 0 !important;

    transition:
      transform .16s ease-out,
      opacity .13s ease-out !important;

    will-change: transform, opacity !important;
    contain: layout paint style !important;
  }

  body.filters-open .filter-container {
    transform: translate3d(-50%, 0, 0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .mobile-filter-toggle:hover {
    transform: none !important;
  }

  .filter-container input {
    /* počas otvoreného modalu nech sa nehýbe gradient na každom inpute */
    animation: none !important;
    background:
      linear-gradient(#ffffff, #fff8f8) padding-box,
      linear-gradient(135deg, #f511b0, #0595a8) border-box !important;
  }

  .mobile-filter-head button,
  .filter-clear-btn,
  .filter-apply-btn {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.08),
      0 4px 12px rgba(0,0,0,.22) !important;
  }
}
/* =========================================================
   MOBILE SECTION TITLE NAD HEADEROM
   iba pre mobil – kompaktnejšie rozloženie
   ========================================================= */

.mobile-only {
  display: none;
}

.mobile-section-title {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }

  .mobile-section-title {
    display: block;
    margin: 10px 10px 8px;
    padding: 12px 14px;
    border-radius: 16px;

    background:
      linear-gradient(180deg, rgba(8, 150, 185, 0.96), rgba(5, 149, 168, 0.94));
    color: #ffffff;

    font-size: 1.05rem;
    line-height: 1.28;
    font-weight: 800;
    text-align: center;

    box-shadow:
      0 8px 20px rgba(0,0,0,.22),
      inset 0 1px 0 rgba(255,255,255,.10);
  }

  /* pôvodný veľký title už na mobile netreba */
  #categoryTitle {
    display: none !important;
  }

  /* header nech ide hneď pod nový nadpis a pôsobí kompaktnejšie */
  header {
    margin-top: 0 !important;
    padding-top: 6px !important;
  }
}
@media (max-width: 768px) {
  .mobile-section-title {
    margin-bottom: 6px !important;
  }

  header {
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 6px !important;
  }

  main {
    padding-top: 10px !important;
  }
}
/* =========================================================
   MOBILE HEADER ORDER PATCH
   logo hore, späť pod ním
   odhlásiť + toggle nad Pridať inzerát
   iba responzivita
   ========================================================= */

@media (max-width: 768px) {

  header {
    height: auto !important;
    min-height: 92px !important;
    padding: 7px 9px 8px !important;

    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  /* Ľavá časť headera */
  .logo-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    min-width: 0 !important;
  }

  /* Logo ide hore */
  .logo-container .logo {
    order: 1 !important;

    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;

    font-size: 1.38em !important;
    line-height: 1 !important;
    margin: 0 0 0 5px !important;
    white-space: nowrap !important;
  }

  /* Späť button ide pod logo */
  .logo-container .bubble-back,
  .logo-container #backBtn.bubble-back {
    order: 2 !important;

    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;

    height: 31px !important;
    min-height: 31px !important;
    padding: 0 10px 0 7px !important;
    font-size: .72rem !important;
    gap: 6px !important;
  }

  .logo-container .bubble-back::before {
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
    font-size: .9rem !important;
  }

  /* Pravá časť headera */
  .auth-links {
    position: static !important;
    top: auto !important;
    right: auto !important;

    margin-left: auto !important;
    max-width: 170px !important;

    display: grid !important;
    grid-template-areas:
      "user"
      "actions"
      "add";
    justify-items: end !important;
    align-items: start !important;
    gap: 5px !important;
  }

  /* Prvý wrapper obsahuje userInfo + Pridať inzerát.
     Dáme display: contents, aby sa dali zoradiť samostatne. */
  .auth-links > div:first-child {
    display: contents !important;
  }

  #userInfo {
    grid-area: user !important;

    max-width: 165px !important;
    font-size: .68rem !important;
    line-height: 1.15 !important;
    text-align: right !important;

    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  /* Druhý wrapper: Odhlásiť sa + toggle */
  .auth-links > div:nth-child(2) {
    grid-area: actions !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 7px !important;
  }

  #logoutBtn {
    font-size: .62rem !important;
    padding: 5px 8px !important;
    margin: 0 !important;
    height: 26px !important;
    line-height: 1 !important;
  }

  .theme-toggle {
    margin-left: 0 !important;
    padding: 3px 4px !important;
    font-size: .95rem !important;
    line-height: 1 !important;
  }

  /* Pridať inzerát pôjde až pod Odhlásiť + toggle */
  #goToAdFormBtn {
    grid-area: add !important;

    margin: 0 !important;
    height: 27px !important;
    min-height: 27px !important;
    padding: 0 10px !important;

    font-size: .66rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
}
/* =========================================================
   MOBILE AUTH ORDER FINAL
   user info -> odhlásiť -> pridať inzerát -> toggle
   čistejší text v responzívnom headeri
   ========================================================= */

@media (max-width: 768px) {
  .auth-links {
    display: grid !important;
    grid-template-areas:
      "user"
      "logout"
      "add"
      "theme" !important;

    justify-items: end !important;
    align-items: start !important;
    gap: 5px !important;

    max-width: 172px !important;
    margin-left: auto !important;
  }

  .auth-links > div:first-child,
  .auth-links > div:nth-child(2) {
    display: contents !important;
  }

  #userInfo {
    grid-area: user !important;

    max-width: 168px !important;
    font-size: .69rem !important;
    line-height: 1.18 !important;
    font-weight: 800 !important;
    text-align: right !important;

    color: var(--text-color) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;

    text-shadow: none !important;
    filter: none !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeLegibility !important;
  }

  #logoutBtn {
    grid-area: logout !important;
    justify-self: end !important;

    margin: 0 !important;
    height: 25px !important;
    min-height: 25px !important;
    padding: 0 9px !important;

    font-size: .62rem !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    border-radius: 999px !important;

    text-shadow: none !important;
    filter: none !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeLegibility !important;
  }

  #goToAdFormBtn {
    grid-area: add !important;
    justify-self: end !important;

    margin: 0 !important;
    height: 27px !important;
    min-height: 27px !important;
    padding: 0 11px !important;

    font-size: .66rem !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    white-space: nowrap !important;

    text-shadow: none !important;
    filter: none !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeLegibility !important;
  }

  .theme-toggle {
    grid-area: theme !important;
    justify-self: end !important;

    margin: 0 !important;
    padding: 0 !important;

    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 1rem !important;
    line-height: 1 !important;
    border-radius: 999px !important;

    text-shadow: none !important;
    filter: none !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeLegibility !important;
  }
}
/* =========================================================
   MOBILE AUTH BUTTONS – kompaktnejší padding
   ========================================================= */

@media (max-width: 768px) {
  #logoutBtn {
    height: 23px !important;
    min-height: 23px !important;
    padding: 0 7px !important;
    font-size: .59rem !important;
    line-height: 1 !important;
  }

  #goToAdFormBtn {
    height: 25px !important;
    min-height: 25px !important;
    padding: 0 8px !important;
    font-size: .63rem !important;
    line-height: 1 !important;
  }

  .theme-toggle {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    padding: 0 !important;
    font-size: .92rem !important;
  }

  .auth-links {
    gap: 4px !important;
  }
}
/* =========================================================
   KATEGORIA.HTML – detail modal v dark režime
   podľa vsetky.html
   ========================================================= */

body.dark-mode #adModal {
  background: rgba(0, 0, 0, 0.78) !important;
}

body.dark-mode #modalContent {
  background:
    linear-gradient(180deg, #171a21 0%, #111827 100%) !important;
  color: #e5e7eb !important;

  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow:
    0 22px 55px rgba(0,0,0,.62),
    inset 0 1px 0 rgba(255,255,255,.06) !important;
}

body.dark-mode #modalContent h2,
body.dark-mode #modalContent h3,
body.dark-mode #modalContent p,
body.dark-mode #modalContent span,
body.dark-mode #modalContent strong,
body.dark-mode #modalContent label {
  color: #e5e7eb !important;
  text-shadow: none !important;
}

body.dark-mode #modalContent small,
body.dark-mode #modalContent .muted,
body.dark-mode #modalContent .ad-location-time {
  color: #9ca3af !important;
}

body.dark-mode #closeModal {
  color: #e5e7eb !important;
  background: rgba(255,255,255,.06) !important;
  border-radius: 999px !important;
}

body.dark-mode #closeModal:hover {
  color: #22d3ee !important;
  background: rgba(34,211,238,.12) !important;
}

body.dark-mode .modal-link,
body.dark-mode #modalContent a {
  color: #22d3ee !important;
}

body.dark-mode .modal-link:hover,
body.dark-mode #modalContent a:hover {
  color: #67e8f9 !important;
}

body.dark-mode .modal-gallery-main img,
body.dark-mode .modal-gallery-thumbs img {
  background: #0f172a !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

body.dark-mode .modal-gallery-thumbs img {
  box-shadow: 0 4px 12px rgba(0,0,0,.35) !important;
}

body.dark-mode #modalContent button {
  color: #f8fafc !important;
}
/* =========================================================
   KATEGORIA.HTML – TOP odznak v modale podľa vsetky.html
   kompaktnejší, zarovnaný, nie obrovský
   ========================================================= */

#adModal .badges {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  height: 24px !important;
  min-height: 24px !important;
  margin: 6px 0 10px !important;
  overflow: visible !important;
  flex-wrap: nowrap !important;
}

#adModal .top-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  height: 22px !important;
  min-height: 22px !important;
  padding: 2px 8px !important;

  font-size: 0.76em !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  border-radius: 999px !important;
  white-space: nowrap !important;

  background: linear-gradient(45deg, #ff0066, #ff9900) !important;
  color: #fff !important;

  box-shadow: 0 1px 3px rgba(0,0,0,0.18) !important;
  animation: none !important;
  transform: none !important;
  text-shadow: none !important;
  filter: none !important;
}

/* =========================================================
   MOBILE FILTER FOCUS MODE
   po výbere jedného filtra skryje ostatné inputy
   ========================================================= */

@media (max-width: 768px) {

  body.mobile-filter-focused .filter-container {
    max-height: none !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    gap: 10px !important;
    padding-bottom: 12px !important;
  }

  body.mobile-filter-focused .filter-container input {
    display: none !important;
  }

  body.mobile-filter-focused .filter-container input.mobile-active-filter {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.mobile-filter-focused .mobile-filter-head strong::after {
    content: " – aktívny filter";
    font-weight: 700;
    opacity: .72;
    font-size: .78rem;
  }

  body.mobile-filter-focused .mobile-filter-actions {
    margin-top: 2px !important;
  }

  body.mobile-filter-focused .filter-clear-btn::before {
    content: "↺ ";
  }

  body.mobile-filter-focused .filter-apply-btn::before {
    content: "✓ ";
  }
}

/* =========================================================
   ULTRA SMALL MOBILE FIX – POD 380px
   kategoria.html
   ========================================================= */

@media (max-width: 380px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  * {
    box-sizing: border-box !important;
  }

  header {
    min-height: 96px !important;
    height: auto !important;
    padding: 6px 7px 7px !important;
    overflow: visible !important;
  }

  .logo-container {
    max-width: 48% !important;
    min-width: 0 !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
  }

  .logo {
    font-size: 1.18rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .bubble-back {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;

  height: 34px !important;
  min-height: 34px !important;

  padding: 0 !important;
  border-radius: 999px !important;

  font-size: 0 !important;
  line-height: 0 !important;

  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
}

.bubble-back::before {
  content: "←" !important;

  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 1.05rem !important;
  line-height: 1 !important;
  margin: 0 !important;
}

  .auth-links {
    top: 4px !important;
    right: 7px !important;
    max-width: 178px !important;
    gap: 4px !important;
  }

  #userInfo {
    max-width: 95px !important;
    font-size: 0.62rem !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  #logoutBtn,
  .theme-toggle,
  #goToAdFormBtn,
  .action-btn {
    font-size: 0.58rem !important;
    padding: 4px 6px !important;
    min-height: 26px !important;
    line-height: 1 !important;
    border-radius: 999px !important;
  }

  main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 7px !important;
    margin: 0 auto !important;
    overflow-x: hidden !important;
  }

  #categoryTitle {
    display: none !important;
  }

  .mobile-section-title {
    margin: 7px 7px 5px !important;
    padding: 9px 10px !important;
    font-size: 0.86rem !important;
    line-height: 1.22 !important;
    border-radius: 13px !important;
  }

  .filter-container {
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    left: 50% !important;
    padding: 10px !important;
    gap: 8px !important;
    border-radius: 16px !important;
  }

  .filter-container input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 0.82rem !important;
    padding: 8px 9px !important;
  }

  body.mobile-filter-focused .filter-container input:not(.mobile-active-filter) {
    display: none !important;
  }

  body.mobile-filter-focused .filter-container input.mobile-active-filter {
    display: block !important;
    width: 100% !important;
  }

  #adsContainer,
  .ads-container,
  .grid-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .ad-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 11px !important;
    border-radius: 18px !important;
  }

  .ad-card img,
  .ad-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}
/* =========================================================
   FINAL FIX – pod 380px bubble-back iba šípka
   prebíja aj .logo-container .bubble-back
   ========================================================= */

@media (max-width: 380px) {
  .bubble-back,
  #backBtn.bubble-back,
  .logo-container .bubble-back,
  .logo-container #backBtn.bubble-back {
    order: 2 !important;

    position: static !important;
    top: auto !important;
    left: auto !important;

    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;

    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;

    padding: 0 !important;
    margin: 0 0 0 5px !important;
    gap: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 999px !important;

    font-size: 0 !important;
    line-height: 0 !important;
    letter-spacing: 0 !important;

    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
  }

  .bubble-back::before,
  #backBtn.bubble-back::before,
  .logo-container .bubble-back::before,
  .logo-container #backBtn.bubble-back::before {
    content: "←" !important;

    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;

    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 999px !important;

    background: transparent !important;
    box-shadow: none !important;

    color: #22d3ee !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
    font-weight: 950 !important;
  }
}
/* =========================================================
   KATEGORIA.HTML – POD 380px fix headera a e-mailu
   podľa opraveného inzerat/vsetky layoutu
   ========================================================= */

@media (max-width: 380px) {
  header {
    height: 112px !important;
    min-height: 112px !important;
    max-height: none !important;

    position: relative !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 8px !important;

    padding: 10px 10px 8px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .logo-container {
    position: static !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    width: auto !important;
    max-width: 150px !important;
    min-width: 0 !important;

    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
    z-index: 5 !important;
  }

  .logo-container .bubble-back {
    order: 1 !important;

    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;

    transform: none !important;

    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;

    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;

    padding: 0 !important;
    margin: 0 0 0 5px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 0 !important;
    line-height: 0 !important;

    overflow: hidden !important;
    z-index: 6 !important;
  }

  .logo-container .bubble-back::before {
    content: "←" !important;

    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;

    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    font-size: 1.08rem !important;
    line-height: 1 !important;
    font-weight: 950 !important;
  }

  .logo-container .logo {
    order: 2 !important;

    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;

    transform: none !important;

    display: block !important;

    margin: 0 0 0 5px !important;
    padding: 0 !important;

    font-size: 1.38em !important;
    line-height: 1 !important;
    white-space: nowrap !important;

    z-index: 5 !important;
  }

  .auth-links {
    position: static !important;
    top: auto !important;
    right: auto !important;

    justify-self: end !important;
    align-self: start !important;

    max-width: 170px !important;
    margin: 0 !important;

    display: grid !important;
    grid-template-areas:
      "user"
      "add"
      "actions" !important;
    justify-items: end !important;
    align-items: start !important;
    gap: 5px !important;

    z-index: 4 !important;
  }

  .auth-links > div:first-child {
    display: contents !important;
  }

  #userInfo {
    grid-area: user !important;

    max-width: 165px !important;
    font-size: 0.62rem !important;
    line-height: 1.08 !important;
    text-align: right !important;

    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  #goToAdFormBtn,
  .action-btn {
    grid-area: add !important;
  }

  .auth-links > div:nth-child(2) {
    grid-area: actions !important;

    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 7px !important;
  }

  #logoutBtn,
  .theme-toggle,
  #goToAdFormBtn,
  .action-btn {
    font-size: 0.58rem !important;
    padding: 4px 6px !important;
    min-height: 26px !important;
    line-height: 1 !important;
    border-radius: 999px !important;
  }
}
/* =========================================================
   KATEGORIA.HTML – 380px- rovnaký header fix ako vsetky.html
   back/logo bližšie k nadpisu + kompaktnejšie user info
   ========================================================= */

@media (max-width: 380px) {

  header {
    min-height: 92px !important;
    height: auto !important;
    padding-top: 4px !important;
    padding-bottom: 6px !important;
    overflow: visible !important;
  }

  header .logo-container {
    position: relative !important;
    top: -10px !important;

    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;

    max-width: 52% !important;
    min-width: 0 !important;
  }

  body header .logo-container .bubble-back,
  body header .logo-container #backBtn.bubble-back {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;

    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;

    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;

    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;

    font-size: 0 !important;
    line-height: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    transform: translateY(12px) !important;
  }

  body header .logo-container .bubble-back::before,
  body header .logo-container #backBtn.bubble-back::before {
    content: "←" !important;

    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: #22d3ee !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
    font-weight: 950 !important;
  }

  header .logo {
    position: relative !important;
    top: -3px !important;

    font-size: 1.55em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  header .auth-links {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;

    display: grid !important;
    grid-template-areas:
      "user"
      "add"
      "actions" !important;

    justify-items: end !important;
    align-items: start !important;

    gap: 2px !important;
    line-height: 1.05 !important;

    max-width: 178px !important;
    width: auto !important;
    z-index: 4 !important;
  }

  header .auth-links > div:first-child {
    display: contents !important;
  }

  header .auth-links > div:nth-child(2) {
    grid-area: actions !important;

    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;

    gap: 3px !important;
    margin: 0 !important;
  }

  header #userInfo {
    grid-area: user !important;

    margin: 0 !important;
    padding: 0 !important;

    max-width: 165px !important;
    font-size: 0.78rem !important;
    line-height: 1.05 !important;
    text-align: right !important;

    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  header #goToAdFormBtn,
  header .action-btn {
    grid-area: add !important;

    margin: 0 !important;
    padding: 3px 8px !important;

    min-height: 24px !important;
    height: 24px !important;

    font-size: 0.76rem !important;
    line-height: 1 !important;
    border-radius: 999px !important;
  }

  header .theme-toggle {
    margin: 0 !important;
    padding: 2px 5px !important;

    min-height: 22px !important;
    height: 22px !important;

    font-size: 0.9rem !important;
    line-height: 1 !important;
  }

  header #logoutBtn {
    margin: 0 !important;
    padding: 3px 8px !important;

    min-height: 24px !important;
    height: 24px !important;

    font-size: 0.74rem !important;
    line-height: 1 !important;
    border-radius: 999px !important;
  }
}
/* =========================================================
   FINAL FIX – 430px aj 380px rovnaký bubble-back + logo
   ruší režim "iba šípka" pod 380px
   použiť vo vsetky.css, kategoria.html, inzerat.html
   MUSÍ BYŤ ÚPLNE NASPODKU CSS / <style>
   ========================================================= */

@media (max-width: 430px) {

  header {
    height: auto !important;
    min-height: 92px !important;
    padding: 7px 9px 8px !important;
    overflow: visible !important;

    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  header .logo-container {
    position: relative !important;
    top: -6px !important;
    left: -4px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    gap: 7px !important;
    min-width: 0 !important;
    max-width: 56% !important;
    flex-wrap: nowrap !important;
  }

  header .logo-container .bubble-back,
  header .logo-container #backBtn.bubble-back,
  body header .logo-container .bubble-back,
  body header .logo-container #backBtn.bubble-back {
    order: 1 !important;

    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 190px) !important;

    height: 31px !important;
    min-height: 31px !important;
    max-height: 31px !important;

    padding: 0 10px 0 7px !important;
    margin: 0 !important;
    gap: 6px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: .72rem !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-indent: 0 !important;
  }

  header .logo-container .bubble-back::before,
  header .logo-container #backBtn.bubble-back::before,
  body header .logo-container .bubble-back::before,
  body header .logo-container #backBtn.bubble-back::before {
    content: "←" !important;

    width: 21px !important;
    min-width: 21px !important;
    max-width: 21px !important;

    height: 21px !important;
    min-height: 21px !important;
    max-height: 21px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: inline-grid !important;
    place-items: center !important;

    border: 1px solid rgba(6, 182, 212, .48) !important;
    border-radius: 999px !important;

    background:
      radial-gradient(circle, rgba(6, 182, 212, .24), rgba(8, 150, 185, .08)) !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.10),
      0 0 14px rgba(6,182,212,.20) !important;

    color: #22d3ee !important;
    font-size: .9rem !important;
    line-height: 1 !important;
    font-weight: 950 !important;
  }

  header .logo-container .logo,
  body header .logo-container .logo {
    order: 2 !important;

    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;

    margin: 0 0 0 5px !important;
    font-size: 1.38em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
}
/* =========================================================
   KATEGORIA.HTML – categoryTitle sa pri scrollovaní celý stratí
   ruší sticky správanie nadpisu
   ========================================================= */

#categoryTitle {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
}
/* =========================================================
   VSETKY + KATEGORIA – jemný desktop panel nad inzerátmi
   len PC režim, mobil ostáva bez zmeny
   ========================================================= */

@media (min-width: 901px) {
  #categoryTitle,
  h1#categoryTitle,
  h2#categoryTitle {
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;

    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto 22px !important;
    padding: 16px 22px !important;
    box-sizing: border-box !important;

    background:
      linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.86)) padding-box,
      linear-gradient(135deg, rgba(6,182,212,.42), rgba(245,17,176,.28), rgba(252,18,135,.24)) border-box !important;

    border: 1px solid transparent !important;
    border-radius: 22px !important;

    color: #172033 !important;
    text-align: center !important;

    font-size: 1.28rem !important;
    line-height: 1.28 !important;
    font-weight: 780 !important;
    letter-spacing: -0.025em !important;
    text-transform: none !important;

    box-shadow:
      0 10px 26px rgba(15, 23, 42, .08),
      inset 0 1px 0 rgba(255,255,255,.70) !important;

    filter: none !important;
    animation: none !important;
    text-shadow: none !important;
  }

  #categoryTitle:hover,
  h1#categoryTitle:hover,
  h2#categoryTitle:hover {
    transform: none !important;
    box-shadow:
      0 12px 28px rgba(15, 23, 42, .10),
      inset 0 1px 0 rgba(255,255,255,.75) !important;
  }

  body.dark-mode #categoryTitle,
  body.dark-mode h1#categoryTitle,
  body.dark-mode h2#categoryTitle {
    background:
      linear-gradient(180deg, rgba(23,26,33,.94), rgba(17,20,27,.92)) padding-box,
      linear-gradient(135deg, rgba(6,182,212,.45), rgba(245,17,176,.24), rgba(255,255,255,.08)) border-box !important;

    color: #eef2f7 !important;
    border: 1px solid transparent !important;

    box-shadow:
      0 12px 30px rgba(0,0,0,.34),
      inset 0 1px 0 rgba(255,255,255,.06) !important;
  }
}
/* =========================================================
   KATEGORIA.HTML – FINAL jemný panel názvu kategórie
   rieši #categoryTitle aj mobilný .mobile-section-title
   nič iné nemení
   ========================================================= */

/* PC */
@media (min-width: 901px) {
  body .main-wrapper main #categoryTitle,
  body .main-wrapper main h1#categoryTitle,
  body .main-wrapper main h2#categoryTitle,
  body #categoryTitle {
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;

    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto 22px !important;
    padding: 16px 22px !important;
    box-sizing: border-box !important;

    background:
      linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.86)) padding-box,
      linear-gradient(135deg, rgba(6,182,212,.42), rgba(245,17,176,.28), rgba(252,18,135,.24)) border-box !important;

    border: 1px solid transparent !important;
    border-radius: 22px !important;

    color: #172033 !important;
    text-align: center !important;

    font-size: 1.28rem !important;
    line-height: 1.28 !important;
    font-weight: 780 !important;
    letter-spacing: -0.025em !important;
    text-transform: none !important;

    box-shadow:
      0 10px 26px rgba(15, 23, 42, .08),
      inset 0 1px 0 rgba(255,255,255,.70) !important;

    filter: none !important;
    animation: none !important;
    text-shadow: none !important;
  }

  body.dark-mode .main-wrapper main #categoryTitle,
  body.dark-mode .main-wrapper main h1#categoryTitle,
  body.dark-mode .main-wrapper main h2#categoryTitle,
  body.dark-mode #categoryTitle {
    background:
      linear-gradient(180deg, rgba(23,26,33,.94), rgba(17,20,27,.92)) padding-box,
      linear-gradient(135deg, rgba(6,182,212,.45), rgba(245,17,176,.24), rgba(255,255,255,.08)) border-box !important;

    color: #eef2f7 !important;

    box-shadow:
      0 12px 30px rgba(0,0,0,.34),
      inset 0 1px 0 rgba(255,255,255,.06) !important;
  }
}


/* Tablet + mobil */
@media (max-width: 900px) {
  body .mobile-section-title.mobile-only,
  body .main-wrapper main #categoryTitle,
  body .main-wrapper main h1#categoryTitle,
  body .main-wrapper main h2#categoryTitle,
  body #categoryTitle {
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;

    width: calc(100% - 18px) !important;
    max-width: 100% !important;
    margin: 10px auto 14px !important;
    padding: 11px 14px !important;
    box-sizing: border-box !important;

    background:
      linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.88)) padding-box,
      linear-gradient(135deg, rgba(6,182,212,.36), rgba(245,17,176,.20), rgba(252,18,135,.18)) border-box !important;

    border: 1px solid transparent !important;
    border-radius: 17px !important;

    color: #172033 !important;
    text-align: center !important;

    font-size: 1.02rem !important;
    line-height: 1.25 !important;
    font-weight: 760 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;

    box-shadow:
      0 7px 18px rgba(15, 23, 42, .07),
      inset 0 1px 0 rgba(255,255,255,.72) !important;

    filter: none !important;
    animation: none !important;
    text-shadow: none !important;
  }

  body .mobile-section-title.mobile-only {
    display: block !important;
  }

  body.dark-mode .mobile-section-title.mobile-only,
  body.dark-mode .main-wrapper main #categoryTitle,
  body.dark-mode .main-wrapper main h1#categoryTitle,
  body.dark-mode .main-wrapper main h2#categoryTitle,
  body.dark-mode #categoryTitle {
    background:
      linear-gradient(180deg, rgba(23,26,33,.94), rgba(17,20,27,.92)) padding-box,
      linear-gradient(135deg, rgba(6,182,212,.38), rgba(245,17,176,.18), rgba(255,255,255,.07)) border-box !important;

    color: #eef2f7 !important;

    box-shadow:
      0 9px 22px rgba(0,0,0,.28),
      inset 0 1px 0 rgba(255,255,255,.06) !important;
  }
}


/* Extra malé mobily */
@media (max-width: 380px) {
  body .mobile-section-title.mobile-only,
  body .main-wrapper main #categoryTitle,
  body .main-wrapper main h1#categoryTitle,
  body .main-wrapper main h2#categoryTitle,
  body #categoryTitle {
    width: calc(100% - 14px) !important;
    margin: 8px auto 12px !important;
    padding: 10px 11px !important;

    border-radius: 15px !important;

    font-size: .94rem !important;
    line-height: 1.22 !important;
    font-weight: 750 !important;
    letter-spacing: -0.018em !important;

    box-shadow:
      0 6px 15px rgba(15, 23, 42, .065),
      inset 0 1px 0 rgba(255,255,255,.70) !important;
  }

  body.dark-mode .mobile-section-title.mobile-only,
  body.dark-mode .main-wrapper main #categoryTitle,
  body.dark-mode .main-wrapper main h1#categoryTitle,
  body.dark-mode .main-wrapper main h2#categoryTitle,
  body.dark-mode #categoryTitle {
    box-shadow:
      0 8px 18px rgba(0,0,0,.26),
      inset 0 1px 0 rgba(255,255,255,.055) !important;
  }
}
/* =========================================================
   MODAL DETAIL – finál: zelený detail button + medzery + X
   vsetky.html + kategoria.html
   PC + 450px + 380px
   ========================================================= */

#adModal {
  align-items: center !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

#adModal #modalContent {
  position: relative !important;

  max-height: calc(100dvh - 20px) !important;
  overflow: hidden !important;

  display: flex !important;
  flex-direction: column !important;

  box-sizing: border-box !important;
}

/* X zatváranie – vždy viditeľné vnútri modalu */
#adModal #closeModal {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;

  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;

  background: rgba(15, 23, 42, 0.94) !important;
  color: #fff !important;

  font-size: 1.45rem !important;
  line-height: 1 !important;
  font-weight: 900 !important;

  z-index: 99999 !important;
  cursor: pointer !important;

  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

#adModal #closeModal:hover {
  background: rgba(239, 68, 68, 0.96) !important;
  color: #fff !important;
  transform: scale(1.04) !important;
}

/* Nadpis trochu kompaktnejší + miesto pre X */
#adModal #modalContent h2 {
  margin: 4px 0 8px !important;
  padding-right: 46px !important;
  line-height: 1.15 !important;
}

/* Obrázok menší, aby modal nepýtal vnútorný scroll */
#adModal .modal-gallery-main img {
  max-height: 34vh !important;
  object-fit: contain !important;
}

/* Thumbnail obrázky kompaktnejšie */
#adModal .modal-gallery-thumbs {
  gap: 6px !important;
  margin: 8px 0 10px !important;
}

#adModal .modal-gallery-thumbs img {
  width: 58px !important;
  height: 44px !important;
  object-fit: cover !important;
}

/* Texty v modale kompaktnejšie */
#adModal #modalContent p {
  margin: 5px 0 !important;
  line-height: 1.25 !important;
}

/* Spoločné nastavenie pre Zobraziť inzerát + Nahlásiť inzerát */
#adModal #modalContent .modal-detail-link,
#adModal #modalContent #reportAdBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 40px !important;
  padding: 10px 16px !important;
  margin: 8px 8px 4px 0 !important;

  border-radius: 999px !important;
  box-sizing: border-box !important;

  font-size: 0.92rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-decoration: none !important;

  white-space: normal !important;
  max-width: 100% !important;
  vertical-align: middle !important;

  cursor: pointer !important;
}

/* Zobraziť inzerát – reálne zelený button */
#adModal #modalContent .modal-detail-link {
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  color: #fff !important;
  border: none !important;

  box-shadow:
    0 8px 18px rgba(22, 163, 74, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* Hover pre zelený button */
#adModal #modalContent .modal-detail-link:hover {
  background: linear-gradient(135deg, #15803d, #16a34a) !important;
  color: #fff !important;
  transform: translateY(-1px) scale(1.01) !important;
  text-decoration: none !important;
}

/* Hover pre nahlásiť */
#adModal #modalContent #reportAdBtn:hover {
  transform: translateY(-1px) scale(1.01) !important;
  text-decoration: none !important;
}

/* 450px a menej – tlačidlá pod seba */
@media (max-width: 450px) {
  #adModal {
    padding: 8px !important;
  }

  #adModal #modalContent {
    max-height: calc(100dvh - 16px) !important;
    padding: 14px !important;
  }

  #adModal #closeModal {
    top: 8px !important;
    right: 8px !important;

    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;

    font-size: 1.25rem !important;
  }

  #adModal #modalContent h2 {
    padding-right: 40px !important;
  }

  #adModal .modal-gallery-main img {
    max-height: 29vh !important;
  }

  #adModal .modal-gallery-thumbs img {
    width: 50px !important;
    height: 38px !important;
  }

  #adModal #modalContent .modal-detail-link,
  #adModal #modalContent #reportAdBtn {
    width: 100% !important;
    min-height: 40px !important;
    margin: 7px 0 0 !important;
    padding: 10px 13px !important;
    font-size: 0.86rem !important;
  }
}

/* 380px a menej – ešte kompaktnejšie */
@media (max-width: 380px) {
  #adModal {
    padding: 6px !important;
  }

  #adModal #modalContent {
    max-height: calc(100dvh - 12px) !important;
    padding: 12px !important;
    border-radius: 12px !important;
  }

  #adModal #closeModal {
    top: 7px !important;
    right: 7px !important;

    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;

    font-size: 1.15rem !important;
  }

  #adModal #modalContent h2 {
    font-size: 1rem !important;
    margin: 2px 28px 6px 0 !important;
    padding-right: 38px !important;
  }

  #adModal .modal-gallery-main img {
    max-height: 25vh !important;
  }

  #adModal .modal-gallery-thumbs {
    gap: 4px !important;
    margin: 6px 0 8px !important;
  }

  #adModal .modal-gallery-thumbs img {
    width: 44px !important;
    height: 34px !important;
  }

  #adModal #modalContent p {
    font-size: 0.82rem !important;
    margin: 4px 0 !important;
    line-height: 1.18 !important;
  }

  #adModal #modalContent .modal-detail-link,
  #adModal #modalContent #reportAdBtn {
    min-height: 38px !important;
    padding: 9px 11px !important;
    font-size: 0.8rem !important;
    border-radius: 16px !important;
  }
}
/* =========================================================
   MODAL DETAIL – finál: zelený detail button + medzery + X
   SCROLL pri dlhom texte / PC / mobil / 450px / 380px
   vsetky.html + kategoria.html
   ========================================================= */

/* Overlay musí byť nad horným oznamom/bannerom */
#adModal {
  position: fixed !important;
  inset: 0 !important;

  width: 100vw !important;
  height: 100dvh !important;

  display: none;
  align-items: center !important;
  justify-content: center !important;

  padding: 14px !important;
  box-sizing: border-box !important;

  background: rgba(0, 0, 0, 0.86) !important;

  /* stránka pod modalom sa nehýbe */
  overflow: hidden !important;
  overscroll-behavior: contain !important;

  z-index: 2147483000 !important;
}

/* Keď JS nastaví display:flex */
#adModal[style*="display: flex"] {
  display: flex !important;
}

/* Obsah modalu – hlavná zmena:
   NIE hidden, ale auto scroll pri dlhom texte */
#adModal #modalContent {
  position: relative !important;

  width: min(900px, calc(100vw - 28px)) !important;
  max-width: 900px !important;

  max-height: calc(100dvh - 28px) !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;

  display: block !important;

  box-sizing: border-box !important;

  background:
    linear-gradient(180deg, #171a21 0%, #111827 100%) !important;
  color: #e5e7eb !important;

  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 14px !important;

  padding: 18px !important;
  padding-bottom: 22px !important;

  box-shadow:
    0 22px 55px rgba(0,0,0,.62),
    inset 0 1px 0 rgba(255,255,255,.06) !important;

  scrollbar-width: thin !important;
  scrollbar-color: rgba(34, 211, 238, 0.55) rgba(15, 23, 42, 0.45) !important;
}

/* Scrollbar pre Chrome/Edge */
#adModal #modalContent::-webkit-scrollbar {
  width: 9px !important;
}

#adModal #modalContent::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.45) !important;
  border-radius: 999px !important;
}

#adModal #modalContent::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.55) !important;
  border-radius: 999px !important;
}

#adModal #modalContent::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.78) !important;
}

/* X zatváranie – je mimo #modalContent, preto fixne na overlay */
#adModal #closeModal {
  position: fixed !important;

  top: max(14px, env(safe-area-inset-top)) !important;
  right: max(14px, env(safe-area-inset-right)) !important;

  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;

  background: rgba(15, 23, 42, 0.96) !important;
  color: #fff !important;

  font-size: 1.35rem !important;
  line-height: 1 !important;
  font-weight: 900 !important;

  cursor: pointer !important;

  z-index: 2147483640 !important;

  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

#adModal #closeModal:hover {
  background: rgba(239, 68, 68, 0.96) !important;
  color: #fff !important;
  transform: scale(1.04) !important;
}

/* Nadpis */
#adModal #modalContent h2 {
  margin: 0 48px 8px 0 !important;
  padding: 0 !important;

  line-height: 1.15 !important;
  font-size: 1.45rem !important;

  text-align: center !important;
  color: #e5e7eb !important;

  word-break: break-word !important;
}

/* Badges pod nadpisom */
#adModal .badges {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  gap: 6px !important;
  min-height: 24px !important;

  margin: 4px 0 10px !important;

  overflow: visible !important;
  flex-wrap: wrap !important;
}

/* Hlavný obrázok */
#adModal .modal-gallery-main img {
  width: 100% !important;
  max-height: 34vh !important;

  object-fit: contain !important;
  border-radius: 8px !important;

  background: #0f172a !important;
}

/* Thumbnail obrázky */
#adModal .modal-gallery-thumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;

  gap: 6px !important;
  margin: 8px 0 10px !important;
}

#adModal .modal-gallery-thumbs img {
  width: 58px !important;
  height: 44px !important;

  object-fit: cover !important;
  border-radius: 6px !important;

  background: #0f172a !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

/* Texty v modale */
#adModal #modalContent p {
  margin: 5px 0 !important;
  line-height: 1.25 !important;

  color: #e5e7eb !important;
}

/* Dlhý popis nech sa zalamuje a nerozbíja modal */
#adModal #modalContent p,
#adModal #modalContent br,
#adModal #modalContent strong,
#adModal #modalContent em {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

/* Like/stat riadky */
#adModal .modal-stats {
  margin: 4px 0 6px !important;
  line-height: 1.15 !important;
}

#adModal .modal-like-btn {
  width: 100% !important;
  min-height: 34px !important;
  margin: 4px 0 8px !important;
  padding: 7px 12px !important;

  border-radius: 999px !important;
  line-height: 1.1 !important;
}

/* Zobraziť inzerát + Nahlásiť inzerát */
#adModal #modalContent .modal-detail-link,
#adModal #modalContent #reportAdBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 40px !important;
  padding: 10px 16px !important;
  margin: 8px 8px 4px 0 !important;

  border-radius: 999px !important;
  box-sizing: border-box !important;

  font-size: 0.92rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;

  text-align: center !important;
  text-decoration: none !important;

  white-space: normal !important;
  max-width: 100% !important;
  vertical-align: middle !important;

  cursor: pointer !important;
}

/* Zobraziť inzerát – zelený */
#adModal #modalContent .modal-detail-link {
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  color: #fff !important;
  border: none !important;

  box-shadow:
    0 8px 18px rgba(22, 163, 74, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

#adModal #modalContent .modal-detail-link:hover {
  background: linear-gradient(135deg, #15803d, #16a34a) !important;
  color: #fff !important;

  transform: translateY(-1px) scale(1.01) !important;
  text-decoration: none !important;
}

/* Nahlásiť – červený */
#adModal #modalContent #reportAdBtn {
  background: crimson !important;
  color: #fff !important;
  border: none !important;
}

#adModal #modalContent #reportAdBtn:hover {
  transform: translateY(-1px) scale(1.01) !important;
  text-decoration: none !important;
}

/* Autor link */
#adModal #modalContent .modal-link,
#adModal #modalContent a {
  color: #22d3ee !important;
}

#adModal #modalContent .modal-link:hover,
#adModal #modalContent a:hover {
  color: #67e8f9 !important;
}

/* 450px a menej */
@media (max-width: 450px) {
  #adModal {
    align-items: flex-start !important;
    justify-content: center !important;

    padding: 10px 8px !important;
    overflow: hidden !important;
  }

  #adModal #modalContent {
    width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 20px) !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding: 14px !important;
    padding-bottom: 18px !important;

    border-radius: 12px !important;
  }

  #adModal #closeModal {
    top: 12px !important;
    right: 12px !important;

    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;

    font-size: 1.12rem !important;
  }

  #adModal #modalContent h2 {
    font-size: 1.02rem !important;
    line-height: 1.12 !important;

    margin: 0 42px 7px 0 !important;
    text-align: left !important;
  }

  #adModal .badges {
    margin: 3px 0 8px !important;
    min-height: 22px !important;
  }

  #adModal .modal-gallery-main img {
    max-height: 25vh !important;
  }

  #adModal .modal-gallery-thumbs {
    gap: 5px !important;
    margin: 7px 0 8px !important;
  }

  #adModal .modal-gallery-thumbs img {
    width: 48px !important;
    height: 36px !important;
  }

  #adModal #modalContent p {
    font-size: 0.84rem !important;
    margin: 4px 0 !important;
    line-height: 1.18 !important;
  }

  #adModal .modal-like-btn {
    min-height: 32px !important;
    margin: 4px 0 7px !important;
    padding: 7px 10px !important;
    font-size: 0.82rem !important;
  }

  #adModal #modalContent .modal-detail-link,
  #adModal #modalContent #reportAdBtn {
    width: 100% !important;

    min-height: 39px !important;
    margin: 7px 0 0 !important;
    padding: 10px 13px !important;

    font-size: 0.84rem !important;
  }
}

/* 380px a menej */
@media (max-width: 380px) {
  #adModal {
    padding: 7px 6px !important;
  }

  #adModal #modalContent {
    width: calc(100vw - 12px) !important;
    max-height: calc(100dvh - 14px) !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding: 12px !important;
    padding-bottom: 16px !important;

    border-radius: 12px !important;
  }

  #adModal #closeModal {
    top: 9px !important;
    right: 9px !important;

    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    min-height: 31px !important;

    font-size: 1rem !important;
  }

  #adModal #modalContent h2 {
    font-size: 0.96rem !important;
    line-height: 1.1 !important;

    margin: 0 38px 6px 0 !important;
  }

  #adModal .badges {
    gap: 4px !important;
    margin: 2px 0 6px !important;
    min-height: 20px !important;
  }

  #adModal .modal-gallery-main img {
    max-height: 23vh !important;
  }

  #adModal .modal-gallery-thumbs {
    gap: 4px !important;
    margin: 6px 0 7px !important;
  }

  #adModal .modal-gallery-thumbs img {
    width: 42px !important;
    height: 32px !important;
  }

  #adModal #modalContent p {
    font-size: 0.79rem !important;
    margin: 3px 0 !important;
    line-height: 1.15 !important;
  }

  #adModal .modal-stats {
    font-size: 0.82rem !important;
    margin: 3px 0 5px !important;
  }

  #adModal .modal-like-btn {
    min-height: 30px !important;
    padding: 6px 9px !important;
    font-size: 0.78rem !important;
  }

  #adModal #modalContent .modal-detail-link,
  #adModal #modalContent #reportAdBtn {
    min-height: 36px !important;
    padding: 8px 10px !important;

    font-size: 0.78rem !important;
    border-radius: 15px !important;
  }
}

/* =========================================================
   SIMPLE BUBBLE BACK – obyčajný nerušivý späť button
   PC + mobil + 380px/430px
   prebíja staré glow / gradient / cyan efekty
   ========================================================= */

.bubble-back,
#backBtn.bubble-back,
.logo-container .bubble-back,
.logo-container #backBtn.bubble-back {
  position: relative !important;

  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;

  padding: 0 11px 0 8px !important;
  margin: 0 !important;
  gap: 6px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border: 1px solid rgba(120, 120, 120, 0.22) !important;
  border-radius: 999px !important;

  background: rgba(255, 255, 255, 0.62) !important;
  color: rgba(20, 20, 20, 0.76) !important;

  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;

  font-size: 0.78rem !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-indent: 0 !important;

  cursor: pointer !important;

  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease !important;
}

.bubble-back::before,
#backBtn.bubble-back::before,
.logo-container .bubble-back::before,
.logo-container #backBtn.bubble-back::before {
  content: "←" !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;
  box-shadow: none !important;

  color: currentColor !important;

  font-size: 0.95rem !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.bubble-back:hover,
#backBtn.bubble-back:hover,
.logo-container .bubble-back:hover,
.logo-container #backBtn.bubble-back:hover {
  transform: translateY(-1px) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  border-color: rgba(120, 120, 120, 0.36) !important;
  color: rgba(0, 0, 0, 0.9) !important;
  box-shadow: none !important;
}

.bubble-back:hover::before,
#backBtn.bubble-back:hover::before,
.logo-container .bubble-back:hover::before,
.logo-container #backBtn.bubble-back:hover::before {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: currentColor !important;
}

.bubble-back:active,
#backBtn.bubble-back:active,
.logo-container .bubble-back:active,
.logo-container #backBtn.bubble-back:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Dark mode – decentný sivý button, nie svietiaci */
body.dark-mode .bubble-back,
body.dark-mode #backBtn.bubble-back,
body.dark-mode .logo-container .bubble-back,
body.dark-mode .logo-container #backBtn.bubble-back {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.78) !important;
  box-shadow: none !important;
}

body.dark-mode .bubble-back:hover,
body.dark-mode #backBtn.bubble-back:hover,
body.dark-mode .logo-container .bubble-back:hover,
body.dark-mode .logo-container #backBtn.bubble-back:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: none !important;
}

/* Mobil – stále čitateľný, ale menší */
@media (max-width: 600px) {
  .bubble-back,
  #backBtn.bubble-back,
  .logo-container .bubble-back,
  .logo-container #backBtn.bubble-back {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;

    padding: 0 9px 0 7px !important;
    gap: 5px !important;

    font-size: 0.7rem !important;
    font-weight: 700 !important;
  }

  .bubble-back::before,
  #backBtn.bubble-back::before,
  .logo-container .bubble-back::before,
  .logo-container #backBtn.bubble-back::before {
    font-size: 0.88rem !important;
  }
}

/* Extra malé mobily – NECHÁME text, ale skrátime ho cez max-width */
@media (max-width: 430px) {
  header .logo-container .bubble-back,
  header .logo-container #backBtn.bubble-back,
  body header .logo-container .bubble-back,
  body header .logo-container #backBtn.bubble-back {
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 190px) !important;

    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;

    padding: 0 9px 0 7px !important;
    gap: 5px !important;

    font-size: 0.68rem !important;
    line-height: 1 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* Pod 380px – stále obyčajné, žiadna cyan ikona */
@media (max-width: 380px) {
  .bubble-back,
  #backBtn.bubble-back,
  .logo-container .bubble-back,
  .logo-container #backBtn.bubble-back {
    width: auto !important;
    min-width: 0 !important;
    max-width: 138px !important;

    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;

    padding: 0 8px 0 7px !important;
    gap: 5px !important;

    font-size: 0.66rem !important;
    line-height: 1 !important;

    border-radius: 999px !important;
  }

  .bubble-back::before,
  #backBtn.bubble-back::before,
  .logo-container .bubble-back::before,
  .logo-container #backBtn.bubble-back::before {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;

    font-size: 0.86rem !important;
  }
}
/* =========================================================
   LOGO AKO NÁVRAT NA HLAVNÚ STRÁNKU – kategoria.html
   bubble-back odstránený z headeru
   ========================================================= */

.logo-home {
  cursor: pointer !important;
  user-select: none !important;
  display: inline-block !important;
  transition: transform 0.16s ease, opacity 0.16s ease !important;
}

.logo-home:hover {
  transform: translateY(-1px) !important;
  opacity: 0.88 !important;
}

.logo-home:active {
  transform: translateY(0) scale(0.98) !important;
}

.logo-container {
  gap: 0 !important;
}

/* =========================================================
   MOBILE HEADER CLEAN – jeden riadok
   vsetky.html + kategoria.html
   ========================================================= */

@media (max-width: 600px) {
  .site-header-clean {
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;

    padding: 7px 9px !important;
    gap: 7px !important;

    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .site-header-clean .logo-container {
    position: relative !important;
    flex: 0 0 auto !important;

    display: flex !important;
    align-items: center !important;

    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header-clean .logo,
  .site-header-clean .logo.logo-home {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;

    transform: none !important;

    font-size: 1.25rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header-clean .header-actions-clean {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;

    flex: 1 1 auto !important;
    min-width: 0 !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;
    justify-content: flex-end !important;

    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header-clean #userInfo {
    flex: 0 1 auto !important;

    display: inline-block !important;
    max-width: 74px !important;
    min-width: 0 !important;

    font-size: 0.62rem !important;
    line-height: 1 !important;
    font-weight: 800 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    text-align: right !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header-clean #logoutBtn,
  .site-header-clean #goToAdFormBtn,
  .site-header-clean .action-btn {
    flex: 0 0 auto !important;

    height: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;

    padding: 0 7px !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 0.56rem !important;
    line-height: 1 !important;
    font-weight: 850 !important;

    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  .site-header-clean .theme-toggle {
    flex: 0 0 25px !important;

    width: 25px !important;
    min-width: 25px !important;
    max-width: 25px !important;

    height: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 0.95rem !important;
    line-height: 1 !important;

    border-radius: 999px !important;
  }
}

/* 400px a menej – tvrdé zmenšenie, aby sa nezalomilo */
@media (max-width: 400px) {
  .site-header-clean {
    padding: 7px 7px !important;
    gap: 5px !important;
  }

  .site-header-clean .logo,
  .site-header-clean .logo.logo-home {
    font-size: 1.12rem !important;
  }

  .site-header-clean .header-actions-clean {
    gap: 3px !important;
  }

  .site-header-clean #userInfo {
    max-width: 54px !important;
    font-size: 0.56rem !important;
  }

  .site-header-clean #logoutBtn,
  .site-header-clean #goToAdFormBtn,
  .site-header-clean .action-btn {
    height: 23px !important;
    min-height: 23px !important;
    max-height: 23px !important;

    padding: 0 5px !important;
    font-size: 0.51rem !important;
  }

  .site-header-clean .theme-toggle {
    flex-basis: 23px !important;
    width: 23px !important;
    min-width: 23px !important;
    max-width: 23px !important;

    height: 23px !important;
    min-height: 23px !important;
    max-height: 23px !important;

    font-size: 0.85rem !important;
  }
}
/* =========================================================
   MOBILE HEADER FINAL – 1 RIADOK + celý user nick/mail
   vsetky.html + kategoria.html
   ========================================================= */

@media (max-width: 600px) {

  header.site-header-clean,
  .site-header-clean {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;
    justify-content: space-between !important;

    padding: 6px 8px !important;
    gap: 6px !important;

    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .site-header-clean .logo-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;

    flex: 0 0 auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .site-header-clean .logo,
  .site-header-clean .logo.logo-home {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;

    transform: none !important;

    flex: 0 0 auto !important;

    font-size: 1.12rem !important;
    line-height: 1 !important;
    font-weight: 900 !important;

    white-space: nowrap !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header-clean .auth-links,
  .site-header-clean .header-actions-clean {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;

    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;
    justify-content: flex-end !important;

    gap: 4px !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header-clean #userInfo {
    flex: 1 1 auto !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    font-size: 0.6rem !important;
    line-height: 1 !important;
    font-weight: 850 !important;

    text-align: right !important;

    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: normal !important;
    overflow-wrap: normal !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header-clean #logoutBtn {
    flex: 0 0 auto !important;

    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;

    padding: 0 7px !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 0.54rem !important;
    line-height: 1 !important;
    font-weight: 850 !important;

    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  .site-header-clean #goToAdFormBtn,
  .site-header-clean .action-btn {
    flex: 0 0 auto !important;

    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;

    padding: 0 6px !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 0.54rem !important;
    line-height: 1 !important;
    font-weight: 850 !important;

    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  .site-header-clean .theme-toggle {
    flex: 0 0 24px !important;

    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;

    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 0.86rem !important;
    line-height: 1 !important;

    border-radius: 999px !important;
  }
}

/* 400px a menej – ešte kompaktnejšie, stále 1 riadok */
@media (max-width: 400px) {

  header.site-header-clean,
  .site-header-clean {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;

    padding: 6px 7px !important;
    gap: 5px !important;
  }

  .site-header-clean .logo,
  .site-header-clean .logo.logo-home {
    font-size: 1.02rem !important;
  }

  .site-header-clean .auth-links,
  .site-header-clean .header-actions-clean {
    gap: 3px !important;
  }

  .site-header-clean #userInfo {
    font-size: 0.55rem !important;
    letter-spacing: -0.02em !important;
  }

  .site-header-clean #logoutBtn {
    height: 23px !important;
    min-height: 23px !important;
    max-height: 23px !important;

    padding: 0 6px !important;
    font-size: 0.5rem !important;
  }

  .site-header-clean #goToAdFormBtn,
  .site-header-clean .action-btn {
    height: 23px !important;
    min-height: 23px !important;
    max-height: 23px !important;

    padding: 0 5px !important;
    font-size: 0.5rem !important;
  }

  .site-header-clean .theme-toggle {
    flex-basis: 23px !important;

    width: 23px !important;
    min-width: 23px !important;
    max-width: 23px !important;

    height: 23px !important;
    min-height: 23px !important;
    max-height: 23px !important;

    font-size: 0.82rem !important;
  }
}

/* 380px a menej – posledné zmenšenie bez skrývania nicku/mailu */
@media (max-width: 380px) {

  header.site-header-clean,
  .site-header-clean {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;

    padding: 5px 6px !important;
    gap: 4px !important;
  }

  .site-header-clean .logo,
  .site-header-clean .logo.logo-home {
    font-size: 0.96rem !important;
  }

  .site-header-clean .auth-links,
  .site-header-clean .header-actions-clean {
    gap: 2px !important;
  }

  .site-header-clean #userInfo {
    font-size: 0.51rem !important;
    letter-spacing: -0.035em !important;
  }

  .site-header-clean #logoutBtn {
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;

    padding: 0 5px !important;
    font-size: 0.46rem !important;
  }

  .site-header-clean #goToAdFormBtn,
  .site-header-clean .action-btn {
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;

    padding: 0 4px !important;
    font-size: 0.46rem !important;
  }

  .site-header-clean .theme-toggle {
    flex-basis: 22px !important;

    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;

    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;

    font-size: 0.78rem !important;
  }
}
/* =========================================================
   AUTH FIX – logout sa nikdy nezobrazí neprihlásenému
   prebije mobilné display:inline-flex !important pravidlá
   ========================================================= */

body:not(.is-authenticated) #logoutBtn,
body.auth-guest #logoutBtn {
  display: none !important;
}

body.is-authenticated #logoutBtn {
  display: inline-flex !important;
}

/* =========================================================
   MOBILE FILTER + KATEGÓRIE V JEDNOM PANELI
   iba responzivita – kategoria.html
   ========================================================= */

@media (max-width: 768px) {

  body.filters-open {
    overflow: hidden !important;
  }

  .filter-container {
    display: flex !important;
    flex-direction: column !important;

    position: fixed !important;
    top: 82px !important;
    left: 50% !important;
    z-index: 10001 !important;

    width: calc(100vw - 22px) !important;
    max-width: 430px !important;
    max-height: calc(100vh - 98px) !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;

    padding: 13px !important;
    gap: 10px !important;
    border-radius: 22px !important;

    scrollbar-width: thin !important;
    scrollbar-color: rgba(34, 211, 238, .75) transparent !important;
  }

  .filter-container::-webkit-scrollbar {
    width: 5px !important;
  }

  .filter-container::-webkit-scrollbar-track {
    background: transparent !important;
  }

  .filter-container::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, .75) !important;
    border-radius: 999px !important;
  }

  .mobile-filter-fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
  }

  .mobile-category-section {
    display: block !important;
    flex: 0 0 auto !important;

    margin-top: 2px !important;
    padding: 10px !important;

    border: 1px solid rgba(6, 182, 212, .24) !important;
    border-radius: 18px !important;

    background:
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
      rgba(8, 12, 16, .58) !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.06),
      0 8px 18px rgba(0,0,0,.16) !important;
  }

  .mobile-category-title {
    margin: 0 0 8px !important;
    padding: 0 2px 7px !important;

    border-bottom: 1px solid rgba(255,255,255,.08) !important;

    color: #f8fafc !important;
    font-size: .9rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
  }

  #mobileCategoryMount .categories {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  #mobileCategoryMount .category,
  #mobileCategoryMount .bubble {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    display: flex !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 9px 10px !important;

    border: 1px solid rgba(6, 182, 212, .18) !important;
    border-radius: 14px !important;

    background:
      linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
      rgba(255,255,255,.025) !important;

    color: #f8fafc !important;
    font-size: .88rem !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;

    box-sizing: border-box !important;
    cursor: pointer !important;
    text-shadow: none !important;
    filter: none !important;
  }

  #mobileCategoryMount .category:hover,
  #mobileCategoryMount .bubble:hover {
    transform: none !important;
    background:
      linear-gradient(180deg, rgba(6,182,212,.13), rgba(255,255,255,.025)),
      rgba(255,255,255,.035) !important;
  }

  #mobileCategoryMount .bubble-container {
    display: block !important;
    overflow: hidden !important;

    max-height: 0;
    opacity: 0;

    margin: 2px 0 2px 8px !important;
    padding-left: 8px !important;

    border-left: 2px solid rgba(34, 211, 238, .45) !important;

    transition: max-height .24s ease, opacity .18s ease !important;
  }

  #mobileCategoryMount .bubble-container.open {
    opacity: 1 !important;
  }

  #mobileCategoryMount .bubble-container .bubble-container {
    margin-left: 8px !important;
  }

  #mobileCategoryMount .categories > .category::after,
  #mobileCategoryMount .categories > .category::before {
    right: 10px !important;
  }

  .mobile-filter-actions {
    position: sticky !important;
    bottom: -1px !important;
    z-index: 2 !important;

    background:
      linear-gradient(180deg, rgba(8,12,16,0), rgba(8,12,16,.98) 32%, rgba(8,12,16,.98)) !important;

    padding-top: 10px !important;
    padding-bottom: 2px !important;
  }

  body.mobile-filter-focused .mobile-category-section {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .filter-container {
    top: 72px !important;
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    max-height: calc(100vh - 86px) !important;
    padding: 10px !important;
    border-radius: 17px !important;
  }

  #mobileCategoryMount .category,
  #mobileCategoryMount .bubble {
    padding: 8px 9px !important;
    font-size: .82rem !important;
    border-radius: 12px !important;
  }

  .mobile-category-title {
    font-size: .84rem !important;
  }
}

/* =========================================================
   MOBILE KATEGÓRIE – podkategórie v stredovom modale
   iba responzivita – kategoria.html
   ========================================================= */

@media (max-width: 768px) {

  /* v hlavnom filter paneli zobraz len hlavné kategórie */
  #mobileCategoryMount > .categories > .bubble-container {
    display: none !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  #mobileCategoryMount > .categories {
    width: 100% !important;
  }

  #mobileCategoryMount > .categories > .category {
    width: 100% !important;
  }

  /* hlavné kategórie nech sa nesnažia otvárať do strany */
  #mobileCategoryMount .categories > .category {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  /* overlay modalu s podkategóriami */
  .mobile-subcategory-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10050 !important;

    display: none !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 14px !important;
    box-sizing: border-box !important;

    background: rgba(0, 0, 0, .58) !important;
    backdrop-filter: blur(6px) !important;
  }

  .mobile-subcategory-modal.is-open {
    display: flex !important;
  }

  .mobile-subcategory-box {
    width: min(92vw, 390px) !important;
    max-height: min(76vh, 620px) !important;

    display: flex !important;
    flex-direction: column !important;

    border: 1px solid rgba(6, 182, 212, .42) !important;
    border-radius: 22px !important;

    background:
      radial-gradient(circle at 20% 0%, rgba(6, 182, 212, .16), transparent 34%),
      linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .98)) !important;

    box-shadow:
      0 24px 70px rgba(0,0,0,.52),
      inset 0 1px 0 rgba(255,255,255,.08) !important;

    overflow: hidden !important;
  }

  .mobile-subcategory-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;

    padding: 13px 14px !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
  }

  .mobile-subcategory-head strong {
    color: #f8fafc !important;
    font-size: .98rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
  }

  .mobile-subcategory-close {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;

    border: 1px solid rgba(34, 211, 238, .46) !important;
    border-radius: 999px !important;

    background: rgba(6, 182, 212, .12) !important;
    color: #67e8f9 !important;

    font-size: 1.25rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    cursor: pointer !important;
  }

  .mobile-subcategory-body {
    padding: 12px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
  }

  .mobile-subcategory-body .category,
  .mobile-subcategory-body .bubble {
    width: 100% !important;
    max-width: 100% !important;

    display: flex !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 10px 11px !important;

    border: 1px solid rgba(6, 182, 212, .22) !important;
    border-radius: 15px !important;

    background:
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
      rgba(255,255,255,.03) !important;

    color: #f8fafc !important;
    font-size: .88rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-align: left !important;

    box-sizing: border-box !important;
    cursor: pointer !important;
    text-shadow: none !important;
    filter: none !important;
  }

  .mobile-subcategory-body .category:hover,
  .mobile-subcategory-body .bubble:hover {
    background:
      linear-gradient(180deg, rgba(6,182,212,.16), rgba(255,255,255,.028)),
      rgba(255,255,255,.04) !important;
  }

  .mobile-subcategory-body .bubble-container {
    display: none !important;
    max-height: none !important;
    opacity: 1 !important;

    margin: 2px 0 2px 8px !important;
    padding-left: 8px !important;

    border-left: 2px solid rgba(34, 211, 238, .42) !important;
  }

  .mobile-subcategory-body .bubble-container.mobile-modal-open {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
  }
}

@media (max-width: 380px) {
  .mobile-subcategory-box {
    width: calc(100vw - 18px) !important;
    max-height: 78vh !important;
    border-radius: 18px !important;
  }

  .mobile-subcategory-head {
    padding: 11px 12px !important;
  }

  .mobile-subcategory-body {
    padding: 10px !important;
  }

  .mobile-subcategory-body .category,
  .mobile-subcategory-body .bubble {
    padding: 9px 10px !important;
    font-size: .82rem !important;
    border-radius: 13px !important;
  }
}
/* =========================================================
   MOBILE FILTER – kategórie už nie sú pravý panel
   iba mobil / tablet
   ========================================================= */

@media (max-width: 768px) {

  .mobile-category-section,
  #mobileCategorySection,
  #mobileCategoryMount {
    display: none !important;
  }

  .mobile-category-open-btn {
    width: 100% !important;
    height: 42px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    margin: 2px 0 0 !important;
    padding: 0 14px !important;

    border: 1px solid rgba(6, 182, 212, .42) !important;
    border-radius: 999px !important;

    background:
      radial-gradient(circle at 18% 50%, rgba(6, 182, 212, .16), transparent 38%),
      linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)),
      rgba(8, 12, 16, .92) !important;

    color: #f8fafc !important;
    box-shadow:
      0 8px 18px rgba(0,0,0,.24),
      inset 0 1px 0 rgba(255,255,255,.08) !important;

    font-size: .88rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;

    cursor: pointer !important;
  }

  .mobile-category-open-btn:hover {
    border-color: rgba(34, 211, 238, .78) !important;
    background:
      radial-gradient(circle at 18% 50%, rgba(6, 182, 212, .26), transparent 42%),
      linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)),
      rgba(8, 12, 16, .96) !important;
  }

  .mobile-subcategory-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10080 !important;

    display: none !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 14px !important;
    box-sizing: border-box !important;

    background: rgba(0, 0, 0, .58) !important;
    backdrop-filter: blur(6px) !important;
  }

  .mobile-subcategory-modal.is-open {
    display: flex !important;
  }

  .mobile-subcategory-box {
    width: min(92vw, 390px) !important;
    max-height: min(78vh, 620px) !important;

    display: flex !important;
    flex-direction: column !important;

    border: 1px solid rgba(6, 182, 212, .42) !important;
    border-radius: 22px !important;

    background:
      radial-gradient(circle at 20% 0%, rgba(6, 182, 212, .16), transparent 34%),
      linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .98)) !important;

    box-shadow:
      0 24px 70px rgba(0,0,0,.52),
      inset 0 1px 0 rgba(255,255,255,.08) !important;

    overflow: hidden !important;
  }

  .mobile-subcategory-head {
    display: grid !important;
    grid-template-columns: 36px 1fr 36px !important;
    align-items: center !important;
    gap: 8px !important;

    padding: 12px 13px !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
  }

  .mobile-subcategory-head strong {
    color: #f8fafc !important;
    font-size: .98rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  .mobile-subcategory-close,
  .mobile-subcategory-back {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;

    display: inline-grid !important;
    place-items: center !important;

    border: 1px solid rgba(34, 211, 238, .46) !important;
    border-radius: 999px !important;

    background: rgba(6, 182, 212, .12) !important;
    color: #67e8f9 !important;

    font-size: 1.15rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    cursor: pointer !important;
  }

  .mobile-subcategory-body {
    padding: 12px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
  }

  .mobile-subcategory-body .category,
  .mobile-subcategory-body .bubble {
    width: 100% !important;
    max-width: 100% !important;

    display: flex !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 10px 11px !important;

    border: 1px solid rgba(6, 182, 212, .22) !important;
    border-radius: 15px !important;

    background:
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
      rgba(255,255,255,.03) !important;

    color: #f8fafc !important;
    font-size: .88rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-align: left !important;

    box-sizing: border-box !important;
    cursor: pointer !important;
    text-shadow: none !important;
    filter: none !important;
  }

  .mobile-subcategory-body .category:hover,
  .mobile-subcategory-body .bubble:hover {
    background:
      linear-gradient(180deg, rgba(6,182,212,.16), rgba(255,255,255,.028)),
      rgba(255,255,255,.04) !important;
  }
}

@media (max-width: 380px) {
  .mobile-category-open-btn {
    height: 39px !important;
    font-size: .82rem !important;
  }

  .mobile-subcategory-box {
    width: calc(100vw - 18px) !important;
    max-height: 78vh !important;
    border-radius: 18px !important;
  }

  .mobile-subcategory-body .category,
  .mobile-subcategory-body .bubble {
    padding: 9px 10px !important;
    font-size: .82rem !important;
    border-radius: 13px !important;
  }
}
/* =========================================================
   MOBILE FILTER + KATEGÓRIE – INDEX MODAL STYLE
   čistý tmavý namodralý štýl, bez gradientových prvkov
   iba responzivita
   ========================================================= */

@media (max-width: 768px) {

  body.filters-open,
  body.mobile-subcategory-open {
    overflow: hidden !important;
  }

  /* FILTER PANEL */
  .filter-container {
    position: fixed !important;
    top: 82px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10001 !important;

    width: calc(100vw - 22px) !important;
    max-width: 430px !important;
    max-height: calc(100vh - 98px) !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;

    padding: 16px !important;
    margin: 0 !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;

    border: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 22px !important;

    background:
      linear-gradient(180deg, rgba(17, 24, 39, .98), rgba(8, 13, 22, .98)) !important;

    box-shadow:
      0 20px 55px rgba(0, 0, 0, .52),
      inset 0 1px 0 rgba(255, 255, 255, .04) !important;

    backdrop-filter: blur(8px) !important;
    box-sizing: border-box !important;

    color: #f8fafc !important;

    scrollbar-width: thin !important;
    scrollbar-color: rgba(148, 163, 184, .28) transparent !important;
  }

  .filter-container::-webkit-scrollbar {
    width: 6px !important;
  }

  .filter-container::-webkit-scrollbar-track {
    background: transparent !important;
  }

  .filter-container::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .28) !important;
    border-radius: 999px !important;
  }

  .filter-container::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, .42) !important;
  }

  /* Nadpis filtra */
  .mobile-filter-title,
  .filter-container .mobile-filter-title,
  .filter-container h3 {
    margin: 0 0 2px !important;
    padding: 0 34px 10px 0 !important;

    border-bottom: 1px solid rgba(148, 163, 184, .28) !important;

    color: #f8fafc !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    letter-spacing: -0.02em !important;
    text-shadow: none !important;
  }

  /* X v paneli filtrov */
  .mobile-filter-close,
  .filter-close-btn {
    width: 32px !important;
    height: 32px !important;

    display: inline-grid !important;
    place-items: center !important;

    border: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 999px !important;

    background: rgba(15, 23, 42, .72) !important;
    color: #f8fafc !important;

    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer !important;
  }

  .mobile-filter-fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* INPUTY – ako index modal */
  .filter-container input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;

    padding: 0 14px !important;
    box-sizing: border-box !important;

    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 14px !important;

    background: rgba(30, 41, 59, .72) !important;
    color: #f8fafc !important;

    font-size: .92rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    outline: none !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.035),
      0 8px 18px rgba(0,0,0,.20) !important;

    animation: none !important;
    filter: none !important;
    text-shadow: none !important;
  }

  .filter-container input::placeholder {
    color: rgba(203, 213, 225, .72) !important;
    font-weight: 700 !important;
  }

  .filter-container input:focus {
    border-color: rgba(45, 212, 191, .55) !important;
    background: rgba(30, 41, 59, .92) !important;

    box-shadow:
      0 0 0 3px rgba(45, 212, 191, .12),
      0 10px 22px rgba(0,0,0,.24) !important;

    transform: none !important;
  }

  /* starý panel kategórií nesmie byť vidno */
  .mobile-category-section,
  #mobileCategorySection,
  #mobileCategoryMount {
    display: none !important;
  }

  /* BUTTON KATEGÓRIE */
  .mobile-category-open-btn {
    width: 100% !important;
    min-height: 44px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    margin: 0 !important;
    padding: 0 14px !important;

    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 14px !important;

    background: rgba(30, 41, 59, .72) !important;
    color: #f8fafc !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.035),
      0 8px 18px rgba(0,0,0,.20) !important;

    font-size: .92rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
    text-shadow: none !important;

    cursor: pointer !important;
    transition: background .18s ease, border-color .18s ease, transform .18s ease !important;
  }

  .mobile-category-open-btn:hover,
  .mobile-category-open-btn:focus {
    border-color: rgba(45, 212, 191, .45) !important;
    background: rgba(30, 41, 59, .92) !important;
    transform: translateY(-1px) !important;
  }

  /* ACTION BUTTONY */
  .mobile-filter-actions {
    position: sticky !important;
    bottom: -1px !important;
    z-index: 2 !important;

    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;

    padding-top: 10px !important;
    margin-top: 2px !important;

    background:
      linear-gradient(180deg,
        rgba(8, 13, 22, 0),
        rgba(8, 13, 22, .96) 28%,
        rgba(8, 13, 22, .99)
      ) !important;
  }

  .mobile-filter-actions button,
  .filter-clear-btn,
  .filter-apply-btn {
    min-height: 42px !important;
    padding: 0 12px !important;

    border-radius: 14px !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;

    font-size: .85rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
    text-shadow: none !important;

    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.22) !important;

    transition: background .18s ease, transform .18s ease, filter .18s ease !important;
  }

  .filter-clear-btn {
    background: rgba(30, 41, 59, .72) !important;
    color: rgba(248, 250, 252, .88) !important;
  }

  .filter-apply-btn {
    background: #23c7c6 !important;
    color: #ffffff !important;
    border-color: rgba(45, 212, 191, .55) !important;
  }

  .mobile-filter-actions button:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.05) !important;
  }

  /* KATEGÓRICKÝ MODAL */
  .mobile-subcategory-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10080 !important;

    display: none !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 14px !important;
    box-sizing: border-box !important;

    background: rgba(0, 0, 0, .62) !important;
    backdrop-filter: blur(8px) !important;
  }

  .mobile-subcategory-modal.is-open {
    display: flex !important;
  }

  .mobile-subcategory-box {
    width: min(92vw, 390px) !important;
    max-height: min(78vh, 620px) !important;

    display: flex !important;
    flex-direction: column !important;

    border: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 22px !important;

    background:
      linear-gradient(180deg, rgba(17, 24, 39, .98), rgba(8, 13, 22, .98)) !important;

    box-shadow:
      0 24px 70px rgba(0, 0, 0, .58),
      inset 0 1px 0 rgba(255, 255, 255, .04) !important;

    overflow: hidden !important;
    color: #f8fafc !important;

    animation: dsCleanModalIn .18s ease both !important;
  }

  .mobile-subcategory-head {
    display: grid !important;
    grid-template-columns: 36px 1fr 36px !important;
    align-items: center !important;
    gap: 8px !important;

    padding: 15px 14px 13px !important;
    border-bottom: 1px solid rgba(148, 163, 184, .28) !important;

    background: transparent !important;
  }

  .mobile-subcategory-head strong {
    color: #f8fafc !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-shadow: none !important;
  }

  .mobile-subcategory-close,
  .mobile-subcategory-back {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;

    display: inline-grid !important;
    place-items: center !important;

    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 999px !important;

    background: rgba(30, 41, 59, .72) !important;
    color: #f8fafc !important;

    box-shadow: none !important;

    font-size: 1.12rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    cursor: pointer !important;
  }

  .mobile-subcategory-close:hover,
  .mobile-subcategory-back:hover {
    background: rgba(30, 41, 59, .94) !important;
    border-color: rgba(45, 212, 191, .42) !important;
  }

  .mobile-subcategory-body {
    padding: 14px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;

    scrollbar-width: thin !important;
    scrollbar-color: rgba(148, 163, 184, .28) transparent !important;
  }

  .mobile-subcategory-body::-webkit-scrollbar {
    width: 6px !important;
  }

  .mobile-subcategory-body::-webkit-scrollbar-track {
    background: transparent !important;
  }

  .mobile-subcategory-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .28) !important;
    border-radius: 999px !important;
  }

  .mobile-subcategory-body::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, .42) !important;
  }

  /* KATEGÓRIE / PODKATEGÓRIE – čisté riadky ako v index modale */
  .mobile-subcategory-body .category,
  .mobile-subcategory-body .bubble {
    width: 100% !important;
    max-width: 100% !important;

    display: flex !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 12px 13px !important;

    border: 1px solid rgba(148, 163, 184, .16) !important;
    border-radius: 14px !important;

    background: rgba(30, 41, 59, .72) !important;
    color: #f8fafc !important;

    font-size: .9rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    text-align: left !important;
    text-shadow: none !important;

    box-sizing: border-box !important;
    cursor: pointer !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.035),
      0 7px 16px rgba(0,0,0,.18) !important;

    transition: background .18s ease, border-color .18s ease, transform .18s ease !important;
  }

  .mobile-subcategory-body .category:hover,
  .mobile-subcategory-body .bubble:hover {
    background: rgba(30, 41, 59, .94) !important;
    border-color: rgba(45, 212, 191, .38) !important;
    transform: translateY(-1px) !important;
  }

  @keyframes dsCleanModalIn {
    from {
      opacity: 0;
      transform: translateY(8px) scale(.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@media (max-width: 380px) {
  .filter-container {
    top: 72px !important;
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    max-height: calc(100vh - 86px) !important;
    padding: 13px !important;
    border-radius: 20px !important;
  }

  .filter-container input,
  .mobile-category-open-btn {
    height: 40px !important;
    min-height: 40px !important;
    font-size: .82rem !important;
  }

  .mobile-filter-actions button,
  .filter-clear-btn,
  .filter-apply-btn {
    min-height: 39px !important;
    font-size: .8rem !important;
  }

  .mobile-subcategory-box {
    width: calc(100vw - 18px) !important;
    max-height: 78vh !important;
    border-radius: 20px !important;
  }

  .mobile-subcategory-head {
    padding: 13px 12px 11px !important;
  }

  .mobile-subcategory-body {
    padding: 12px !important;
  }

  .mobile-subcategory-body .category,
  .mobile-subcategory-body .bubble {
    padding: 10px 11px !important;
    font-size: .82rem !important;
    border-radius: 13px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-subcategory-box,
  .mobile-category-open-btn,
  .mobile-subcategory-body .category,
  .mobile-subcategory-body .bubble {
    animation: none !important;
    transition: none !important;
  }
}
/* =========================================================
   MOBILE KATEGÓRIE – root bez scrollu, podvetvy scroll
   ========================================================= */

@media (max-width: 768px) {

  /* hlavný modal Kategórie nech sa prispôsobí obsahu */
  .mobile-subcategory-modal.is-root-categories .mobile-subcategory-box {
    max-height: none !important;
    height: auto !important;
  }

  .mobile-subcategory-modal.is-root-categories .mobile-subcategory-body {
    overflow: visible !important;
    max-height: none !important;
  }

  /* hlavné kategórie môžu byť kompaktnejšie, aby vošli celé */
  .mobile-subcategory-modal.is-root-categories .mobile-subcategory-body {
    gap: 8px !important;
    padding: 12px !important;
  }

  .mobile-subcategory-modal.is-root-categories .mobile-subcategory-body .category,
  .mobile-subcategory-modal.is-root-categories .mobile-subcategory-body .bubble {
    min-height: 34px !important;
    padding: 8px 12px !important;
    font-size: .84rem !important;
    border-radius: 12px !important;
  }

  /* podkategórie / značky môžu ďalej scrollovať */
  .mobile-subcategory-modal.is-child-categories .mobile-subcategory-box {
    max-height: min(78vh, 620px) !important;
  }

  .mobile-subcategory-modal.is-child-categories .mobile-subcategory-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}

@media (max-width: 380px) {
  .mobile-subcategory-modal.is-root-categories .mobile-subcategory-body {
    gap: 7px !important;
    padding: 11px !important;
  }

  .mobile-subcategory-modal.is-root-categories .mobile-subcategory-body .category,
  .mobile-subcategory-modal.is-root-categories .mobile-subcategory-body .bubble {
    min-height: 32px !important;
    padding: 7px 10px !important;
    font-size: .78rem !important;
  }
}
/* =========================================================
   MOBILE TOGGLE BUTTON – filter/kategórie v štýle modalov
   vsetky.html + kategoria.html
   ========================================================= */

@media (max-width: 768px) {

  .mobile-filter-toggle {
    width: calc(100vw - 22px) !important;
    max-width: 430px !important;
    min-height: 44px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    margin: 10px auto 12px !important;
    padding: 0 16px !important;

    border: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 16px !important;

    background:
      linear-gradient(180deg, rgba(17, 24, 39, .98), rgba(8, 13, 22, .98)) !important;

    color: #f8fafc !important;

    box-shadow:
      0 14px 34px rgba(0, 0, 0, .34),
      inset 0 1px 0 rgba(255, 255, 255, .04) !important;

    font-size: .92rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
    line-height: 1 !important;
    text-align: center !important;
    text-shadow: none !important;

    cursor: pointer !important;
    outline: none !important;

    transition:
      background .18s ease,
      border-color .18s ease,
      transform .18s ease,
      box-shadow .18s ease !important;
  }

  .mobile-filter-toggle:hover,
  .mobile-filter-toggle:focus {
    border-color: rgba(45, 212, 191, .42) !important;
    background:
      linear-gradient(180deg, rgba(22, 32, 48, .98), rgba(10, 18, 30, .98)) !important;

    box-shadow:
      0 16px 38px rgba(0, 0, 0, .40),
      0 0 0 3px rgba(45, 212, 191, .09),
      inset 0 1px 0 rgba(255, 255, 255, .045) !important;

    transform: translateY(-1px) !important;
  }

  .mobile-filter-toggle:active {
    transform: translateY(0) scale(.99) !important;
  }

  body.filters-open .mobile-filter-toggle {
    border-color: rgba(45, 212, 191, .48) !important;
    background:
      linear-gradient(180deg, rgba(22, 32, 48, .98), rgba(10, 18, 30, .98)) !important;

    box-shadow:
      0 16px 38px rgba(0, 0, 0, .42),
      0 0 0 3px rgba(45, 212, 191, .10),
      inset 0 1px 0 rgba(255, 255, 255, .045) !important;
  }
}

@media (max-width: 380px) {
  .mobile-filter-toggle {
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    min-height: 40px !important;

    margin-top: 8px !important;
    margin-bottom: 10px !important;

    border-radius: 14px !important;
    font-size: .82rem !important;
    padding: 0 12px !important;
  }
}
/* =========================================================
   MOBILE FILTER + KATEGÓRIE – LIGHT MODE OVERRIDE
   vsetky.html + kategoria.html
   ========================================================= */

@media (max-width: 768px) {

  body:not(.dark-mode) .mobile-filter-toggle,
  body:not(.dark-mode) .filter-container,
  body:not(.dark-mode) .mobile-subcategory-box {
    border: 1px solid rgba(15, 23, 42, .10) !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,245,249,.98)) !important;
    color: #0f172a !important;

    box-shadow:
      0 18px 44px rgba(15, 23, 42, .18),
      inset 0 1px 0 rgba(255,255,255,.88) !important;
  }

  body:not(.dark-mode) .mobile-filter-title,
  body:not(.dark-mode) .filter-container .mobile-filter-title,
  body:not(.dark-mode) .filter-container h3,
  body:not(.dark-mode) .mobile-subcategory-head strong {
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, .12) !important;
  }

  body:not(.dark-mode) .mobile-subcategory-head {
    border-bottom: 1px solid rgba(15, 23, 42, .12) !important;
    background: transparent !important;
  }

  body:not(.dark-mode) .filter-container input,
  body:not(.dark-mode) .mobile-category-open-btn,
  body:not(.dark-mode) .filter-clear-btn,
  body:not(.dark-mode) .mobile-subcategory-close,
  body:not(.dark-mode) .mobile-subcategory-back,
  body:not(.dark-mode) .mobile-subcategory-body .category,
  body:not(.dark-mode) .mobile-subcategory-body .bubble {
    border: 1px solid rgba(15, 23, 42, .10) !important;
    background: rgba(255, 255, 255, .88) !important;
    color: #0f172a !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.9),
      0 7px 18px rgba(15,23,42,.08) !important;

    text-shadow: none !important;
  }

  body:not(.dark-mode) .filter-container input::placeholder {
    color: rgba(15, 23, 42, .48) !important;
  }

  body:not(.dark-mode) .filter-container input:focus,
  body:not(.dark-mode) .mobile-category-open-btn:hover,
  body:not(.dark-mode) .mobile-category-open-btn:focus,
  body:not(.dark-mode) .mobile-subcategory-close:hover,
  body:not(.dark-mode) .mobile-subcategory-back:hover,
  body:not(.dark-mode) .mobile-subcategory-body .category:hover,
  body:not(.dark-mode) .mobile-subcategory-body .bubble:hover {
    border-color: rgba(8, 150, 185, .42) !important;
    background: #ffffff !important;

    box-shadow:
      0 0 0 3px rgba(8, 150, 185, .10),
      0 10px 22px rgba(15,23,42,.12) !important;
  }

  body:not(.dark-mode) .filter-apply-btn {
    border-color: rgba(8, 150, 185, .55) !important;
    background: #0896b9 !important;
    color: #ffffff !important;

    box-shadow:
      0 10px 22px rgba(8, 150, 185, .24),
      inset 0 1px 0 rgba(255,255,255,.20) !important;
  }

  body:not(.dark-mode) .mobile-filter-actions {
    background:
      linear-gradient(180deg,
        rgba(241,245,249,0),
        rgba(241,245,249,.94) 28%,
        rgba(241,245,249,.99)
      ) !important;
  }

  body:not(.dark-mode) .mobile-subcategory-modal {
    background: rgba(15, 23, 42, .28) !important;
    backdrop-filter: blur(8px) !important;
  }

  body:not(.dark-mode) .mobile-filter-toggle:hover,
  body:not(.dark-mode) .mobile-filter-toggle:focus,
  body:not(.dark-mode).filters-open .mobile-filter-toggle {
    border-color: rgba(8, 150, 185, .42) !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,1), rgba(236,244,247,.98)) !important;

    box-shadow:
      0 18px 42px rgba(15, 23, 42, .20),
      0 0 0 3px rgba(8, 150, 185, .08),
      inset 0 1px 0 rgba(255,255,255,.9) !important;
  }

  body:not(.dark-mode) .filter-container::-webkit-scrollbar-thumb,
  body:not(.dark-mode) .mobile-subcategory-body::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, .22) !important;
  }

  body:not(.dark-mode) .filter-container,
  body:not(.dark-mode) .mobile-subcategory-body {
    scrollbar-color: rgba(15, 23, 42, .22) transparent !important;
  }
}
/* =========================================================
   FIX – button Kategórie len v responzívnych filtroch
   vsetky.html + kategoria.html
   ========================================================= */

/* Desktop/tablet nad 768px: nikdy nezobrazovať */
.mobile-category-open-btn {
  display: none !important;
}

/* Mobil / responzívny filter: zobraziť iba vo filter paneli */
@media (max-width: 768px) {
  #filterContainer .mobile-category-open-btn,
  .filter-container .mobile-category-open-btn {
    width: 100% !important;
    min-height: 44px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    margin: 0 !important;
    padding: 0 14px !important;

    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 14px !important;

    background: rgba(30, 41, 59, .72) !important;
    color: #f8fafc !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.035),
      0 8px 18px rgba(0,0,0,.20) !important;

    font-size: .92rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
    text-shadow: none !important;

    cursor: pointer !important;
    transition: background .18s ease, border-color .18s ease, transform .18s ease !important;
  }

  #filterContainer .mobile-category-open-btn:hover,
  .filter-container .mobile-category-open-btn:hover,
  #filterContainer .mobile-category-open-btn:focus,
  .filter-container .mobile-category-open-btn:focus {
    border-color: rgba(45, 212, 191, .45) !important;
    background: rgba(30, 41, 59, .92) !important;
    transform: translateY(-1px) !important;
  }
}

/* Light mode pre tento button */
@media (max-width: 768px) {
  body:not(.dark-mode) #filterContainer .mobile-category-open-btn,
  body:not(.dark-mode) .filter-container .mobile-category-open-btn {
    border: 1px solid rgba(15, 23, 42, .10) !important;
    background: rgba(255, 255, 255, .88) !important;
    color: #0f172a !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.9),
      0 7px 18px rgba(15,23,42,.08) !important;
  }

  body:not(.dark-mode) #filterContainer .mobile-category-open-btn:hover,
  body:not(.dark-mode) .filter-container .mobile-category-open-btn:hover,
  body:not(.dark-mode) #filterContainer .mobile-category-open-btn:focus,
  body:not(.dark-mode) .filter-container .mobile-category-open-btn:focus {
    border-color: rgba(8, 150, 185, .42) !important;
    background: #ffffff !important;

    box-shadow:
      0 0 0 3px rgba(8, 150, 185, .10),
      0 10px 22px rgba(15,23,42,.12) !important;
  }
}

@media (max-width: 380px) {
  #filterContainer .mobile-category-open-btn,
  .filter-container .mobile-category-open-btn {
    min-height: 40px !important;
    font-size: .82rem !important;
    border-radius: 13px !important;
  }
}
/* =========================================================
   FIX – rozloženie filtrov, cena spolu vedľa seba
   vsetky.html + kategoria.html
   ========================================================= */

/* PC / desktop: wrapper nech sa správa, akoby tam nebol */
@media (min-width: 769px) {
  .filter-container .mobile-filter-fields {
    display: contents !important;
  }

  .filter-container #minPrice,
  .filter-container #maxPrice {
    order: 20 !important;
  }
}

/* Mobilný filter panel: riadený grid */
@media (max-width: 768px) {

  .filter-container .mobile-filter-fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  /* Kľúčové slovo na celú šírku */
  .filter-container #keyword {
    grid-column: 1 / -1 !important;
    order: 1 !important;
  }

  /* Obec + kraj spolu */
  .filter-container #obecFilter {
    grid-column: 1 / 2 !important;
    order: 2 !important;
  }

  .filter-container #krajFilter {
    grid-column: 2 / 3 !important;
    order: 3 !important;
  }

  /* Okres na celú šírku */
  .filter-container #okresFilter {
    grid-column: 1 / -1 !important;
    order: 4 !important;
  }

  /* Cena vždy spolu v jednom riadku */
  .filter-container #minPrice {
    grid-column: 1 / 2 !important;
    order: 5 !important;
  }

  .filter-container #maxPrice {
    grid-column: 2 / 3 !important;
    order: 6 !important;
  }

  .filter-container .mobile-filter-fields input {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Extra malé mobily – cena stále spolu, len kompaktnejšie */
@media (max-width: 380px) {
  .filter-container .mobile-filter-fields {
    gap: 8px !important;
  }

  .filter-container #minPrice,
  .filter-container #maxPrice {
    font-size: .78rem !important;
    padding-left: 9px !important;
    padding-right: 9px !important;
  }
}
/* =========================================================
   MOBILE FILTER – aktívny input vždy na stred
   vsetky.html + kategoria.html
   ========================================================= */

@media (max-width: 768px) {

  /* keď je fokusnutý jeden filter, zruš grid pozície */
  body.mobile-filter-focused .filter-container .mobile-filter-fields {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 0 !important;
  }

  /* všetky neaktívne inputy skryť */
  body.mobile-filter-focused .filter-container .mobile-filter-fields input:not(.mobile-active-filter) {
    display: none !important;
  }

  /* aktívny input vždy centrovať */
  body.mobile-filter-focused .filter-container .mobile-filter-fields input.mobile-active-filter {
    display: block !important;

    width: min(100%, 320px) !important;
    max-width: 320px !important;
    min-width: 0 !important;

    margin-left: auto !important;
    margin-right: auto !important;

    grid-column: 1 / -1 !important;
    justify-self: center !important;
    align-self: center !important;
  }

  /* pri veľmi úzkom mobile nech ide skoro na celú šírku */
  body.mobile-filter-focused .filter-container .mobile-filter-fields input.mobile-active-filter {
    width: min(100%, 100%) !important;
  }
}

@media (max-width: 380px) {
  body.mobile-filter-focused .filter-container .mobile-filter-fields input.mobile-active-filter {
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* =========================================================
   MOBILE FILTER – späť z aktívneho inputu na všetky filtre
   vsetky.html + kategoria.html
   ========================================================= */

/* Defaultne skryté všade */
.mobile-filter-back-btn {
  display: none !important;
}

@media (max-width: 768px) {

  /* Zobrazí sa iba keď je aktívny konkrétny input */
  body.mobile-filter-focused .filter-container .mobile-filter-back-btn {
    width: min(100%, 320px) !important;
    max-width: 320px !important;
    min-height: 40px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;

    margin: 10px auto 0 !important;
    padding: 0 14px !important;

    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 14px !important;

    background: rgba(30, 41, 59, .72) !important;
    color: #f8fafc !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.035),
      0 8px 18px rgba(0,0,0,.20) !important;

    font-size: .84rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
    text-shadow: none !important;

    cursor: pointer !important;

    transition:
      background .18s ease,
      border-color .18s ease,
      transform .18s ease !important;
  }

  body.mobile-filter-focused .filter-container .mobile-filter-back-btn:hover,
  body.mobile-filter-focused .filter-container .mobile-filter-back-btn:focus {
    border-color: rgba(45, 212, 191, .45) !important;
    background: rgba(30, 41, 59, .92) !important;
    transform: translateY(-1px) !important;
  }

  /* Keď nie je aktívny input, button sa nezobrazí */
  body:not(.mobile-filter-focused) .filter-container .mobile-filter-back-btn {
    display: none !important;
  }

  /* Light mode */
  body:not(.dark-mode).mobile-filter-focused .filter-container .mobile-filter-back-btn {
    border: 1px solid rgba(15, 23, 42, .10) !important;
    background: rgba(255, 255, 255, .88) !important;
    color: #0f172a !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.9),
      0 7px 18px rgba(15,23,42,.08) !important;
  }

  body:not(.dark-mode).mobile-filter-focused .filter-container .mobile-filter-back-btn:hover,
  body:not(.dark-mode).mobile-filter-focused .filter-container .mobile-filter-back-btn:focus {
    border-color: rgba(8, 150, 185, .42) !important;
    background: #ffffff !important;

    box-shadow:
      0 0 0 3px rgba(8, 150, 185, .10),
      0 10px 22px rgba(15,23,42,.12) !important;
  }
}

@media (max-width: 380px) {
  body.mobile-filter-focused .filter-container .mobile-filter-back-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 38px !important;
    font-size: .78rem !important;
    border-radius: 13px !important;
  }
}
  