







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;
}


:root{
  --grad-wide: linear-gradient(135deg,
    #ff2aa1 0%,
    #ff7ab3 8%,
    #ffb86b 22%,
    #ffd56b 32%,
    #06b6d4 50%,
    #60a5fa 66%,
    #34d399 82%,
    #fda4af 100%
  );
  --card-bg: #fff;
}

        :root {
      --bg-color: #ffffff;
      --text-color: #000;
      --hover-color: #0595a8;
      --container-bg: rgb(255, 253, 253);  
      --highlight-color:  #0896b9;
      --category-hover: #060e11;
      --button-active: #463d41c9;
    }

main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
  gap: 10px;
  box-sizing: border-box; 
}




.ad-form {
  max-width: 100%;
  max-height: 1700px;
  padding: 20px;
  overflow-y: auto;
  margin: auto;
  margin-top: 1px;
  background-color: var(--container-bg);
  border-radius: 12px;
  flex: 1;
  outline: none;
  border: 2px solid var(--highlight-color);
  box-shadow: 0 0 10px var(--highlight-color);
  transition: all 0.2s ease-in-out;

  
  scrollbar-width: none;
}



.ad-form::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

.ad-form::-webkit-scrollbar-thumb {
  background: transparent;
}

.ad-form::-webkit-scrollbar-track {
  background: transparent;
}



.ad-form textarea#description {
  min-height: 100px;    
  font-size: 1.2em;     
  line-height: 1.5em;   
  resize: vertical;     
  font-family: inherit;   
}

.ad-form textarea#description::-webkit-scrollbar {
  width: 6px;
}

.ad-form textarea#description::-webkit-scrollbar-thumb {
  background-color: var(--highlight-color);
  border-radius: 10px;
}

.ad-form textarea#description::-webkit-scrollbar-track {
  background: transparent;
}





.latest-ads-box:hover,
.live-room-preview, .category-box  {
  background-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: inherit !important;
}


:root { --ib-h: auto; }

.latest-ads-box {
  height: var(--ib-h, min(55vh, 520px));
  max-height: var(--ib-h, min(55vh, 520px));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.latest-ads-box::-webkit-scrollbar { width: 0; height: 0; }


.latest-ad-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.latest-ad-card:hover { background-color: transparent; }

.latest-ad-card img {
  width: 100%;
   max-width: 100%;
  height: auto;
  image-rendering: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 auto 10px auto;
  transition: transform 1s ease;
  will-change: transform;
  transform-origin: center;
}
.latest-ad-card:hover img { transform: scale(1.4); }


.latest-ad-card .ad-price {
  display: block;
  margin: 8px auto 0 auto;
  text-align: center;
  color: #ffeef8;
  font-weight: 600;
  font-size: 1.1em;
  padding: 6px 14px;
  border-radius: 14px;

  background-image:
    linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.12)),
    var(--grad-wide);
  background-size: auto, 240% 240%;
  background-position: center;
  animation: flameGradient 18s ease-in-out infinite;

  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 1px 5px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.latest-ad-card::after {
  content: "👁️‍🗨 Zobraziť detail";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px;
  font-size: 0.95em;
  text-align: center;
  color: #fff;
  opacity: 1;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;

  background-image:
    linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.12)),
    var(--grad-wide);
  background-size: auto, 240% 240%;
  background-position: center;
  animation: flameGradient 18s ease-in-out infinite;

  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.latest-ad-card:hover::after {
  opacity: 0;
  transform: translateY(100%);
}


.latest-ad-card .ad-title {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 1em;
  color: #000000;
  text-align: center;
}


@keyframes flameGradient {
  0%   { background-position: center,   0% 50%; }
  50%  { background-position: center, 100% 50%; }
  100% { background-position: center,   0% 50%; }
}


@media (prefers-reduced-motion: reduce){
  .latest-ad-card .ad-price,
  .latest-ad-card::after{ animation: none; }
}


.live-box {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  max-height: 710px;
  overflow-y: auto;
  margin: auto;
  margin-top: 1px;
  padding: 20px;

  border: 3px solid transparent;
  border-radius: 14px;


  background:
    linear-gradient(var(--container-bg, #ffffff), var(--container-bg, #ffffff)) padding-box,
    var(--grad-wide, linear-gradient(135deg,
      #ff2aa1 0%,
      #ff7ab3 8%,
      #ffb86b 22%,
      #ffd56b 32%,
      #06b6d4 50%,
      #60a5fa 66%,
      #34d399 82%,
      #fda4af 100%
    )) border-box;

  background-size: auto, 220% 220%;
  background-position: center;
  animation: liveBoxBorderMove 22s ease-in-out infinite;

  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.651);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  flex: none;
  outline: none;
  scroll-behavior: smooth;


  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}


.live-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}


.live-box::-webkit-scrollbar { width: 8px; }
.live-box::-webkit-scrollbar-track { background: transparent; }
.live-box::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.25); border-radius: 4px; }
.live-box::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.35); }


@keyframes liveBoxBorderMove {
  0%   { background-position: center,   0% 50%; }
  50%  { background-position: center, 100% 50%; }
  100% { background-position: center,   0% 50%; }
}


body.dark-mode .live-box {
  background:
    linear-gradient(var(--container-bg, #1a1a1a), var(--container-bg, #1a1a1a)) padding-box,
    var(--grad-wide, linear-gradient(135deg,
      #ff2aa1 0%,
      #ff7ab3 8%,
      #ffb86b 22%,
      #ffd56b 32%,
      #06b6d4 50%,
      #60a5fa 66%,
      #34d399 82%,
      #fda4af 100%
    )) border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
body.dark-mode .live-box::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); }
body.dark-mode .live-box::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.35); }


@media (prefers-reduced-motion: reduce){
  .live-box { animation: none; }
}













    body.dark-mode {
      --bg-color: #1c1c1c;
      --text-color: #f0f0f0;
      --hover-color: #15c9ba;
      --container-bg: #2a2a2a;
      --highlight-color: #2c6d6a;
      --category-hover: #272424;
      --button-active: #0fc4c4;
    }

    
    body {
      
      margin: 0;
      font-family: Arial, sans-serif;
      background-color: var(--bg-color);
      color: var(--text-color);
      transition: background 0.3s, color 0.3s;
    }



   header {
  position: relative;
  background-color: var(--container-bg);
  
  height: 120px;
  padding: 0 20px;
  box-sizing: border-box;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  position: relative;
}

.header-left {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--highlight-color);
  cursor: pointer;
  z-index: 1;
}

.header-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  z-index: 1;
}

.header-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 500px;
}


.description {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1.05rem, 1.05vw + 0.2rem, 1.3rem);
  font-weight: 500;
  line-height: 1.35;              /* bolo 1.5 – teraz je to hustejšie */
  letter-spacing: -0.015em;
  text-align: center;
  max-width: 40rem;               /* mierne užšie, text bližšie pri sebe */
  margin: 8px auto 14px;          /* menšie medzery hore/dole */
  color: #111827;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.description strong {
  font-weight: 600;
  color: #0595a8;
}

.description span {
  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;
}

body.dark-mode .description {
  color: #fff; 
}



.keyword-input {
  width: 100%;
  max-width: 380px;
  padding: 10px 16px;
  font-size: 1rem;
  border-radius: 10px;
  border: 2px solid var(--highlight-color);
}




.text-highlight {
  color: var(--highlight-color); 
}

.text-default {
  color: var(--text-color);      
}


#userInfo {
  font-weight: 700;
  font-size: 1.05em;
  color: var(--text-color);
  display: block;
 
}

@media (max-width: 768px) {
  #userInfo {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  #userInfo {
    font-size: 0.85em;
  }
}

@media (max-width: 360px) {
  #userInfo {
    font-size: 0.75em;
  }
}






.main-flex-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}


.ad-form,
.category-box,
.latest-ads-box,
.live-box,
.live-room-preview {
  flex: 1 1 1px;
  max-width: 100%;
  min-width: 320px;
  box-sizing: border-box;
}


.category-box { order: 1; }
.live-box     { order: 2; }
.latest-ads-box { order: 3; }
.live-room-preview { order: 4; }

    section {
      
  background-color: var(--container-bg);
  border: 1px solid var(--highlight-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  flex: 1 1 100%;
  max-width: 100%;
  box-sizing: border-box;
}
    section:hover {
      transform: scale(1.02);
      background-color: var(--highlight-color);
      color: #fff;
      box-shadow: 0 0 12px var(--highlight-color);
    }
    h2 { text-align: center; }
    form { display: flex; flex-direction: column; gap: 12px; }
    input, textarea, select {
      padding: 10px; font-size: 1em;
      border-radius: 8px; border: 1px solid #999;
      background-color: var(--container-bg);
      color: var(--text-color);
      transition: background-color 0.3s, color 0.3s;
    }
    textarea {
      resize: none;
      overflow-y: auto;
    }



    
    .radio-row {
      display: flex; justify-content: space-around;
      margin: 10px 0;
    }
    .radio-row label {
      cursor: pointer;
      padding: 2px 10px;
      border-radius: 20px;
      transition: background 0.3s, color 0.3s;
      color: var(--text-color);
      user-select: none;
    }
    .radio-row input[type="radio"] { margin-right: 6px; }
    .radio-row label.active {
      background: var(--button-active);
      color: #ffffff00;
    }
    
.radio-row input[type="radio"] {
  margin-right: 6px;
}


.radio-row {
  display: flex;
  justify-content: space-around;
  margin: 10px 0;
}

.radio-row label {
  position: relative;
  cursor: pointer;
  padding: 6px 12px 6px 32px; 
  border-radius: 20px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  color: var(--text-color);
  user-select: none;
}

.radio-row input[type="radio"] {
  position: absolute;
  opacity: 0; 
}

.radio-row label::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) scale(1);
  width: 14px;
  height: 14px;
  border: 2px solid var(--text-color);
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s ease;
}

.radio-row input[type="radio"]:checked + label::before {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(5, 149, 168, 0.5);
  transform: translateY(-50%) scale(1.3);
}

.radio-row label:hover {
  transform: scale(1.05);
}

.radio-row label.active {
  background-color: var(--button-active);
  color: #ffffff;
}

    #priceInput { display: none; }
    .buttons {
      display: flex; justify-content: space-between;
      margin-top: 10px;
    }


.buttons button{
  padding: 12px 24px;
  font-size: 1em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;

 
  background-image: linear-gradient(135deg, #ffffff, #f1f1f1);
  color: #000;
  font-weight: 600;

  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform .2s ease, box-shadow .2s ease, background-position .25s ease, filter .25s ease;
  will-change: transform, box-shadow, background-position, filter;
}

.buttons button:hover{

  background-image:
    linear-gradient(rgba(0,0,0,.14), rgba(0,0,0,.14)),
    var(--grad-wide);
  background-size: auto, 240% 240%;
  background-position: center;
  animation: flameGradient 18s ease-in-out infinite; 

  color: #fff;
  transform: scale(1.07);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  filter: saturate(.96) brightness(1);
}

body.dark-mode .buttons button {
  background: linear-gradient(135deg, #222, #333);
  color: #f0f0f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}





body.dark-mode .buttons button:hover {
  background: linear-gradient(135deg, var(--highlight-color), var(--hover-color));
  color: #fff;
  transform: scale(1.07);
}

    .file-upload {
  border: 2px dashed var(--highlight-color);
  border-radius: 999px;
  padding: 14px 20px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  background-color: var(--container-bg);
  color: var(--text-color);
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.file-upload:hover {
  background-color: rgba(0, 0, 0, 0.575);
  color: white;
  transform: scale(1.05);
}

    .categories .category {
      padding: 10px;
      border: 1px solid #aaa;
      border-radius: 8px;
      text-align: center;
      cursor: pointer;
      transition: background-color 0.3s;
      margin-bottom: 8px;
      color: var(--text-color);
      user-select: none;
      font-size: 1.06em;
      font-weight: bold;
      
    }
   .categories .category:hover {
  background-color: white;
  color: black;
}













.modal{
  display:none;
  position:fixed;
  z-index:999;
  inset:0;              
  background-color: rgba(0, 0, 0, 0.952); 
  display:flex;          
  justify-content:center;
  align-items:center;
  backdrop-filter: blur(3px);      
}

.modern-modal {
  background: linear-gradient(
    555deg,
    var(--highlight-color) 11%,
    #db00b762 25%,
    var(--hover-color) 50%,
    #b8054fa2 75%,
    var(--highlight-color) 2%
  );
  background-size: 400% 400%;


  padding: 25px 24px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  color: var(--text-color);
  text-align: center;
  position: relative;
  box-shadow: 0 0 28px rgb(0, 0, 0);
  border: 1px solid rgba(255, 255, 255, 0.808);
  backdrop-filter: blur(8px);

  
  max-height: 90vh;
  overflow-y: auto;
}


.modern-modal h3 {
  font-size: 1.4em;
  margin-bottom: 16px;
  color: white;
}


.modern-modal input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #bbb;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: border-color 0.3s;
  box-sizing: border-box;


  font-weight: 700;        
  caret-color: #fff;      
  letter-spacing: .2px;   
}

.modern-modal input:focus {
  border-color: var(--hover-color);
  outline: none;
}


.modern-modal button {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  background-color: var(--hover-color);
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.modern-modal button:hover {
  background-color: var(--button-active);
  transform: scale(1.05);
}


.modern-modal .close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  transition: color 0.2s;
}

.modern-modal .close:hover {
  color: var(--hover-color);
}
.modern-modal input::placeholder {
  color: rgba(255, 255, 255, 0.7); 
  font-style: italic;
}


#registerModal .modern-modal {
  overflow-y: auto;
  max-height: 80vh;
  scrollbar-width: thin;           
  scrollbar-color: #cccccc transparent; 
}


#registerModal .modern-modal::-webkit-scrollbar {
  width: 8px;
}

#registerModal .modern-modal::-webkit-scrollbar-track {
  background: transparent;
}

#registerModal .modern-modal::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

#registerModal .modern-modal::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}




@keyframes modalGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}












.preview-modal-content {
  max-width: 700px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  color: #333;
  font-family: sans-serif;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.preview-modal-content h2 {
  text-align: center;
  margin-top: 0;
  font-size: 24px;
}

.preview-modal-content .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
}

.preview-content p {
  margin: 10px 0;
}

.preview-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
  justify-content: center;
}

.preview-images img {
  max-width: 120px;
  max-height: 120px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  object-fit: cover;
}





#search-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin: auto;
  max-width: 600px;
}

#searchInput {
  width: 100%;
  padding: 12px 40px 12px 16px; 
  border-radius: 30px;
  border: 1px solid #aaa;
  font-size: 1em;
  background-color: var(--container-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#searchInput:hover {
  border-color: var(--hover-color);
  box-shadow: 0 0 30px rgba(37, 228, 123, 0.5);
}



#searchInput:focus {
  border-color: var(--highlight-color);
  box-shadow: 0 0 30px rgba(3, 253, 253, 0.6);
}


#search-wrapper::after {
  content: "🔍";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: var(--text-color);
  pointer-events: none;
}


.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content input[type="text"] {
  background-color: #fff;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  margin: 6px 0;
  width: 90%;
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .modal-content input[type="email"],
body.dark-mode .modal-content input[type="password"],
body.dark-mode .modal-content input[type="text"] {
  background-color: #333;
  color: #f0f0f0;
  border: 1px solid #666;
}

#logoutBtn {
  background-color: #0595a8;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 5px 22px;
  font-weight: bold;
  font-size: 0.85em;
  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); 
  transform: scale(1.05);
}


.custom-box {
  position: fixed;
  overflow-y: auto;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: 96vw; 
  max-width: 1800px; 
  height: 650px;
  background-color: rgba(58, 127, 129, 0);
  color: var(--text-color);
  border: 2px solid var(--highlight-color);
  border-radius: 16px;
  backdrop-filter: blur(3px);
  box-shadow:
    0 -20px 20px rgba(1, 190, 174, 0.192),
    0 0 10px var(--highlight-color);
  overflow-y: auto;
  z-index: 10;
  outline: none;
  transition: all 0.2s ease-in-out;

  scrollbar-width: thin; 
  scrollbar-color: var(--highlight-color) transparent;
}

.custom-box::-webkit-scrollbar {
  width: 6px;
}
.custom-box::-webkit-scrollbar-track {
  background: transparent;
}
.custom-box::-webkit-scrollbar-thumb {
  background-color: var(--highlight-color);
  border-radius: 10px;
  border: none;
}




.custom-box:hover {
  border: 3px solid rgba(9, 192, 168, 0);
  box-shadow: 0 20px 20px rgba(3, 215, 230, 0.137);
}








.result-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.result-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.result-thumbs img:hover {
  transform: scale(1.05);
}

.chat-login-button{
  background:
    linear-gradient(var(--container-bg), var(--container-bg)) padding-box,
    var(--grad-wide) border-box;             
  background-size: auto, 220% 220%;
  background-position: center;
  animation: chatBorderFlow 22s ease-in-out infinite;

  color: var(--text-color);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 1.3em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: transform .2s, box-shadow .3s ease;
  display: inline-block;
  margin: 6px 0 8px 0;
  max-width: 100%;
  word-break: break-word;
  text-decoration: none;
}

.chat-login-button:hover{
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}


body.dark-mode .chat-login-button{
  background:
    linear-gradient(var(--container-bg, #1a1a1a), var(--container-bg, #1a1a1a)) padding-box,
    var(--grad-wide) border-box;
  color: #f0f0f0;
}
body.dark-mode .chat-login-button:hover{
  box-shadow: 0 6px 18px rgba(0,0,0,.6);
}


@keyframes chatBorderFlow{
  0%   { background-position: center,   0% 50%; }
  50%  { background-position: center, 100% 50%; }
  100% { background-position: center,   0% 50%; }
}


@media (prefers-reduced-motion: reduce){
  .chat-login-button{ animation: none; }
}






#ownerLoginModal .modern-modal p {
  color: rgba(255, 255, 255, 0.774);
}

@keyframes fadeInScale {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.auth-links {
  display: flex;
  flex-direction: column;     
  align-items: flex-end;      
  gap: 1px;                   
  padding-top: 1px;           
}

.auth-links button,
.theme-toggle,
#myAdsBtn {
  
  background: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-color);
  font-size: 1.2em;
 
  margin-left: 0;             
  padding: 1px 1px;         
  text-align: right;          
}

.auth-links button:hover,
.theme-toggle:hover {
  color: var(--highlight-color);
}

#myAdsBtn:hover {
  color: var(--hover-color);
}



@media (max-width: 768px) {
  a[href="profil.html"] {
    font-size: 1.15em !important;
    margin-left: 6px !important;
  }
}

@media (max-width: 480px) {
  a[href="profil.html"] {
    font-size: 1em !important;
    margin-left: 4px !important;
    transform: translateY(0) !important;
  }
}



.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--container-bg);
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  color: var(--text-color);
  animation: scaleIn 0.3s ease-out;
}

.modal-content input {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-content button {
  padding: 10px;
  width: 100%;
  background-color: var(--highlight-color);
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: var(--button-active);
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}



@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


.animated-modal {
  animation: fadeInScale 0.35s ease forwards;
}
@keyframes fadeInScale {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}





#chatBubbleBtn {
  background-color: var(--hover-bg);      
  color: var(--text-color);
  border: none;
  border-radius: 999px;                  
  padding: 4px 4px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.644);
  transition: transform 0.2s, background-color 0.3s;
  display: inline-block;
}

#chatBubbleBtn:hover {
  background-color:  rgba(0, 255, 234, 0.185);
  transform: scale(1.06);
}









.chat-rules-button{
  background:
    linear-gradient(var(--hover-bg, #fdfdfd), var(--hover-bg, #ffffff)) padding-box,
    var(--grad-wide) border-box;                
  background-size: auto, 220% 220%;
  background-position: center;
  animation: rulesBorderFlow 22s ease-in-out infinite;

  border: 3px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.95em;
  font-weight: bold;
  color: var(--text-color, #111);
  cursor: pointer;
  display: inline-block;
  margin-bottom: 10px;
  text-decoration: none;

  box-shadow: 0 4px 12px rgba(0,0,0,.55);
  transition: transform .2s, background-color .3s, box-shadow .3s;
}

#resetAdPassModal{
  --text-color: #111;   
  --hover-bg:  #fff;    
}

#resetAdPassModal .chat-rules-button,
#resetAdPassModal .chat-rules-button:hover{
  color: var(--text-color) !important;
}
.chat-rules-button:hover{
  background:
    linear-gradient(rgba(0,0,0,.14), rgba(0,0,0,.14)) padding-box, 
    var(--grad-wide) border-box;
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(0,0,0,.6);
}


body.dark-mode .chat-rules-button{
  background:
    linear-gradient(var(--hover-bg, #1a1a1a), var(--hover-bg, #1a1a1a)) padding-box,
    var(--grad-wide) border-box;
  color: #f0f0f0;
}


@keyframes rulesBorderFlow{
  0%   { background-position: center,   0% 50%; }
  50%  { background-position: center, 100% 50%; }
  100% { background-position: center,   0% 50%; }
}


@media (prefers-reduced-motion: reduce){
  .chat-rules-button{ animation: none; }
}











.bubble-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  padding-left: 16px;
  justify-content: flex-start;
  width: 100%;
}
.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;
  min-width: 120px;
  width: calc(20% - 12px);
  max-width: 100%;
  word-break: break-word;
  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%; }
}








@media (max-width: 900px) {
  .bubble {
    width: calc(33.33% - 12px);
  }
}
@media (max-width: 600px) {
  .bubble {
    width: calc(50% - 12px);
  }
}
@media (max-width: 400px) {
  .bubble {
    width: 100%;
  }
}




.search-result-card {
  display: flex;
  flex-direction: column;
  padding: 18px;                
  border-radius: 18px;          
  background: var(--card-bg);
  color: var(--text-color);
  margin-bottom: 15px;          
  box-shadow: 0 0px 12px rgba(0, 0, 0, 0.808); 
  transition: background 0.3s;
  cursor: pointer;
  font-size: 1em;            
}


.card-flex {
  display: flex;
  align-items: stretch;   
  gap: 12px;
}

.card-image {
  width: 300px;            
  aspect-ratio: 16 / 9;    
  flex-shrink: 0;          
  overflow: hidden;
  border-radius: 8px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-content {
  flex: 1;                
  display: flex;
  flex-direction: column;
  justify-content: center;
}







.badge-row {
  margin: 4px 0;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 8px;
  font-weight: bold;
  margin-right: 6px;
}

.badge.top {
  background: linear-gradient(45deg, #ff0066, #ff9900);
  color: white;
}

.badge.reg {
  background: green;
  color: white;
}

.badge.ver {
  background: #007bff;
  color: white;
}

.card-price {
  font-size: 1.5em;
  font-weight: bold;
  white-space: nowrap;
  padding-left: 8px;
  color: #030303d8
}
body.dark-mode .card-price {
  color: #f8f8f8d8; 
}



@media (max-width: 900px) {
  .card-flex {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .card-image {
    width: 100%;
    aspect-ratio: 16 / 9;    
    overflow: hidden;
    border-radius: 8px;
  }

  .card-content {
    width: 100%;
    text-align: center;
  }

  .badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 6px 0;
  }

  .badge {
    margin: 2px 4px;
  }

  .card-price {
    font-size: 1.3em;
    margin: 6px 0;
    text-align: center;
  }

  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


@media (max-width: 600px) {
  .search-result-card {
    padding: 10px;
  }

  .card-flex {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .card-image {
    width: 100%;
    aspect-ratio: 16 / 9;    
    overflow: hidden;
    border-radius: 8px;
  }

  .card-content {
    width: 100%;
    text-align: center;
  }

  .badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 6px 0;
  }

  .badge {
    margin: 2px 4px;
  }

  .card-price {
    font-size: 1.2em;
    margin-top: 8px;
    text-align: center;
  }

  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


@media (min-width: 600px) and (max-width: 900px) {
  .card-flex {
    flex-direction: row;          
    align-items: center;
    gap: 12px;
  }

  .card-image {
    width: 300px;                
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    border-radius: 8px;
  }

  .card-content {
    flex: 1;
    text-align: left;
  }

  .badge-row {
    justify-content: flex-start;
  }

  .card-price {
    text-align: right;
  }
}



.grid-container {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 12px;
  max-height: none;
  overflow: hidden;
}
:root {
  
  --accent-text: var(--highlight-color, #ff2aa1);
}

.room-preview {
  border: 2px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(var(--container-bg, #ffffff), var(--container-bg, #ffffff)) padding-box,
    linear-gradient(135deg, #f511b0, #0595a8, #fc1287, #0595a8) border-box; 
  background-size: 300% 300%;
  animation: liveBoxBorderMove 10s ease infinite;

  padding: 10px;


  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1em;
  line-height: 1.5; 
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  color: var(--text-color, #333);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.25s ease;
}


.room-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}


body.dark-mode .room-preview {
  background:
    linear-gradient(var(--container-bg, #1a1a1a), var(--container-bg, #1a1a1a)) padding-box,
    linear-gradient(135deg, #f511b0, #0595a8, #fc1287, #0595a8) border-box;
  color: #f0f0f0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}
body.dark-mode .room-preview:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}


.room-title {
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: .01em;
}


.room-desc {
  font-size: 1.05em; 
  color: #666;
}
body.dark-mode .room-desc {
  color: #aaa;
}


.last-message {
  font-weight: 600;
  font-size: 1.1em;
  margin-top: 6px;
  color: #070203;
}
body.dark-mode .last-message {
  color: #ddd;
}


.last-message .msg-author,
.last-message strong {
  color: var(--accent-text);
  font-weight: 800;
}


@keyframes liveBoxBorderMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}













#customContainer {
  position: fixed;
  top: 150px; 
  transform: translateX(-50%);
  width: 95vw;
  max-width: 1800px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
}
#customContainer.active {
  opacity: 1;
  pointer-events: auto;
}



#mainWrapper {
  transition: transform 3s ease;
}

.custom-active #mainWrapper {
  transform: translateY(700px);
}



@media (max-width: 900px) {
  .custom-active #mainWrapper {
    transform: translateY(700px);
  }
}


@media (max-width: 600px) {
  .custom-active #mainWrapper {
    transform: translateY(700px);
  }
}


@media (max-width: 400px) {
  .custom-active #mainWrapper {
    transform: translateY(450px);
  }
}








#customResultsContainer {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: nowrap;
}




@media (min-width: 1222px) {
  body {
    font-size: 0.9em;
  }
}
@media (min-width: 1222px) {
  body {
    zoom: 0.85;
  }
  
}




@media (max-width: 600px) {
  .bubble {
    font-size: 0.85rem;
    min-width: 80px;
    padding: 8px 6px;
    width: auto;
  }
}




input, textarea, select {
  width: 100%;
  box-sizing: border-box;
}


@media (max-width: 900px) {
  .ad-form,
  .category-box,
  .latest-ads-box,
  .live-box {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}


@media (max-width: 600px) {
  .ad-form,
  .category-box,
  .latest-ads-box,
  .live-box {
    flex: 1 1 100%;
    max-width: 100%;
  }

  section {
    padding: 12px;
  }

  h2 {
    font-size: 1.1rem;
  }

  header {
    font-size: 1rem;
    padding: 10px;
  }
}


@media (max-width: 600px) {
  .latest-ad-card .ad-title,
  .latest-ad-card .ad-price,
  h2 {
    color: #fff6f6;;
  }
}


.latest-ad-card:hover,
.bubble:hover,
.buttons button:hover {
  transform: scale(1.05);
}







.category-box {
  flex: 1 1 100%;
  max-width: 100%;
  max-height: 710px;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; 
  margin: auto;
  margin-top: 1px;
  margin-left: 0;
  background-color: var(--container-bg);
  border-radius: 12px;
  flex: none;
  outline: none;
  border: 3px solid rgba(0, 0, 0, 0.1);
  box-shadow: none;
  transition: all 0.2s ease-in-out;

 
  scrollbar-width: none;        
}


.category-box {
  -ms-overflow-style: none;    
}


.category-box::-webkit-scrollbar {
  width: 0;                   
  height: 0;                    
}


.category-box {
 
  border-radius: 14px;
  background:
    linear-gradient(var(--container-bg, #ffffff), var(--container-bg, #ffffff)) 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;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}


.category-box .category {
 
  border-radius: 12px;
  background:
    linear-gradient(var(--container-bg, #ffffff), var(--container-bg, #ffffff)) 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;
  padding:7px;
}


body.dark-mode .category-box {
  background:
    linear-gradient(var(--container-bg, #1a1a1a), var(--container-bg, #1a1a1a)) padding-box,
   
    linear-gradient(135deg,
      #ff2aa1 0%,
      #ff7ab3 8%,
      #ffb86b 22%,
      #ffd56b 32%,
      #06b6d4 50%,
      #60a5fa 66%,
      #34d399 82%,
      #fda4af 100%
    ) border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}


@media (max-width: 600px) {
  .logo {
    display: none !important;
  }

  .header-left {
    display: none;
  }

  .header-center {
    flex: 1 1 60%;
    order: 1;
    margin: 0;
    padding: 0 4px;
     position: relative;
  z-index: 2;
  }

  .keyword-input {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 4px 6px;
    font-size: 0.8em;
  }

  .header-right.auth-links {
    flex: 1 1 40%;
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 2px;
    padding: 4px 2px;
    margin-top: -4px;
      position: relative;
  z-index: 1;
  pointer-events: auto;
  }

#logoutBtn {
  background-color: #0595a8;
  color: white;
  border: none;
  border-radius: 22px;
  padding: 2px 2px;
  font-weight: bold;
  font-size: 0.8em;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

  #userInfo {
  max-width: 66%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
  text-align: left;
  font-size: 0.5rem; 
}

  .auth-links button {
    font-size: 0.68em;
    padding: 4px 8px;
    border-radius: 14px;
    margin: 0;
    white-space: nowrap;
  }

  .theme-toggle {
    font-size: 0.75em;
    padding: 4px 8px;
    margin-top: 2px;
  }

  .description {
    font-size: 1.05rem;
    margin-top: 2px;
    margin-bottom: 4px;
  }
}










.custom-box img {
  width: 100%;
  height: auto;
  max-width: 333px; 
  min-width: 300px; 
  border-radius: 10px;
  object-fit: cover;
}

@media (max-width: 600px) {
  .custom-box {
    width: 90vw;
    height: 380px; 
    padding: 12px;
    overflow-y: auto;
  }

}

@media (max-width: 600px) {
  #carBrandBubbles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 8px; 
  }

  .bubble {
    flex: 1 1 22; 
    min-width: 100px; 
    max-width: 48%; 
    font-size: 0.9rem;
    padding: 6px 8px;
    text-align: center;
  }
}

.gdpr-checkbox {
  margin: 15px 0;
  font-size: 1.12em;
}

.gdpr-checkbox label {
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.gdpr-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #0595a8;
}

.gdpr-checkbox a {
  color: #000708;
  text-decoration: underline;
}

body.dark-mode .gdpr-checkbox a {
  color: #f0f0f0;
}


@media (max-width: 600px) {
  .gdpr-checkbox {
    font-size: 0.85em; 
  }

  .gdpr-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px; 
  }

  .gdpr-checkbox label {
    gap: 6px; 
  }
}



.highlighted {
  outline: 3px solid rgba(7, 23, 26, 0.658);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.767);
  transition: outline 0.3s ease, box-shadow 0.3s ease;
}





@media (max-width: 600px) {
  
 .auth-links {
    flex-direction: column; 
    flex-wrap: wrap;    
    justify-content: flex-end;
    max-width: 100%;
  }

  .auth-links button,
  .theme-toggle {
    
    font-size: 0.9em;
    padding: 4px 1px;
  }

  
}











.top-middle-row > section {
  flex: 1 1 50%;
  margin: 0;
}

.category-box, .live-box {
  flex: 1 1 auto;
  margin: 0; 
}



.middle-column {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(50% - -32px);
  max-width: calc(50% - -12px);
  gap: 10px;
}

.top-middle-row {
  display: flex;
  gap: 10px;
}

.top-middle-row > section {
  flex: 1 1 50%;
  margin: 0; 
}

.category-box, .live-box {
  flex: 1 1 auto;
  margin: 0; 
}




.info-box {

  --pad: clamp(8px, 1.6vw, 16px);
  --radius: 16px;
  --maxh: min(22vh, 510px);  

  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: var(--pad);
  
  width: min(100%, 1000px);

  background:
    linear-gradient(var(--container-bg), var(--container-bg)) padding-box,
    linear-gradient(135deg, var(--highlight-color), #f511b0, var(--hover-color), #fc1287) border-box;
  background-size: 400% 400%;
  animation: liveBoxBorderMove 12s ease infinite;

  color: var(--text-color);
  text-align: center;
  line-height: 1.35;


  height: var(--ib-h, var(--maxh));
  max-height: var(--ib-h, var(--maxh));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}



.info-box {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;     
  -ms-overflow-style: none;  
}
.info-box::-webkit-scrollbar {
  width: 0;
  height: 0;
}


.info-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
  text-align: left; 
}

@media (min-width: 600px) {
  .info-items { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .info-items { grid-template-columns: 1fr 1fr 1fr; }
}



.info-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 3px solid rgba(255,255,255,0.08);
  font-size: clamp(.9rem, 2.1vw, 1rem);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.342); 
}


@media (prefers-color-scheme: dark) {
  .info-item {
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }
}
.info-item::before {
  content: attr(data-icon);
  flex: 0 0 auto;
  font-size: 1.2em;
  line-height: 1.2;
}


.info-text { 
  margin: 8px 0 12px;
  text-align: justify; 
}


.info-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.info-intro .logos {
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-intro .logo-text { 
  max-height: 42px; 
  height: auto; 
}


:root{
  --grad-gta: linear-gradient(135deg, #ff2aa1 0%, #b832f6 35%, #06b6d4 70%, #ff9a3c 100%);
}
#infoMoreBtn,
#openContactBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  padding: clamp(8px, 1.6vh, 12px) clamp(11px, 3vw, 18px);
  min-height: 38px;
  font-weight: 700;
  font-size: clamp(.88rem, 1vw, 1rem);
  line-height: 1;
  letter-spacing: .15px;
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;


  background-image:
    linear-gradient(rgba(0,0,0,.16), rgba(0,0,0,.16)),
    linear-gradient(135deg,
     
      #ff2aa1 0%,
      #ff7ab3 8%,
     
      #ffb86b 22%,
      #ffd56b 32%,
    
      #06b6d4 50%,
      #60a5fa 66%,
    
      #34d399 82%,
      
      #fda4af 100%
    );
  background-size: auto, 260% 260%;
  background-position: center;
  animation: flameGradient 20s ease-in-out infinite;

  filter: saturate(.9) brightness(.98);
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  transition: transform .16s ease, box-shadow .22s ease, filter .22s ease, background-position .22s ease;
  will-change: transform, box-shadow, background-position, filter;
}


#infoMoreBtn:hover,
#openContactBtn:hover{
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  filter: saturate(.95) brightness(1);
}

#infoMoreBtn:active,
#openContactBtn:active{
  transform: translateY(0) scale(.985);
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
}

#infoMoreBtn:focus-visible,
#openContactBtn:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(6,182,212,.32),  
    0 6px 18px rgba(0,0,0,.18);
}


@keyframes flameGradient{
  0%   { background-position: center,   0% 50%; }
  50%  { background-position: center, 100% 50%; }
  100% { background-position: center,   0% 50%; }
}


@media (prefers-reduced-motion: reduce){
  #infoMoreBtn, #openContactBtn{ animation: none; }
}


.info-box:hover{
  background:
    linear-gradient(var(--container-bg, #fff), var(--container-bg, #fff)) padding-box,
    linear-gradient(135deg,
      #ff2aa1 0%,
      #ff7ab3 8%,
      #ffb86b 22%,
      #ffd56b 32%,
      #06b6d4 50%,
      #60a5fa 66%,
      #34d399 82%,
      #fda4af 100%
    ) border-box !important;
  color: var(--text-color, #111) !important;
  transform: none !important;
  box-shadow: none !important;
}


.info-box:hover{
  background:
    linear-gradient(var(--container-bg, #fff), var(--container-bg, #fff)) padding-box,
    var(--grad-gta) border-box !important;
  color: var(--text-color, #111) !important;
  transform: none !important;
  box-shadow: none !important;
}


.info-box p,
.info-box li,
.info-box strong {
  color: var(--text-color);
  font-size: clamp(.9rem, 2.1vw, 1rem);
  margin: 4px 0;
  word-break: break-word;
}


.info-box.compact {
  --pad: clamp(6px, 1.2vw, 12px);
  --maxh: min(26vh, 220px);
  border-radius: 14px;
}


@media (max-width: 600px) {
  .info-box { --maxh: min(38vh, 320px); }
  .info-box.compact { --maxh: min(34vh, 280px); }
}


body.index-locked .info-box {
  margin-top: 8px;
}

.info-box h2,
.info-box p,
.info-box li,
.info-box strong {
  color: var(--text-color);
}


@media (prefers-color-scheme: dark) {
  .info-box {
    background-color: #f7eded;
    border-color: #fff2f2;
    color: #ffffff;
  }

  .info-box h2,
  .info-box p,
  .info-box li,
  .info-box strong {
    color: #f0f0f0;
  }

  .info-box:hover {
    background-color: #726c6c !important;
    color: #f0f0f0 !important;
    transform: none !important;
    box-shadow: none !important;
  }
}



@media (min-width: 601px) {
  .middle-column {
    
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .info-box {
    order: -1;
    width: 100%;
    max-width: 100%;
  }
}


@media (max-width: 600px) {
  .middle-column {
     flex: 1 1 100%;
    max-width: 100%;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }
  .info-box {
    order: -1;
    width: 100%;
    max-width: 100%;
  }

  .top-middle-row {
    flex-direction: column;
  }

  .ad-form,
.category-box,
.latest-ads-box,
.live-box,
.info-box {
    flex: 1 1 100%;
    max-width: 100%;
}
}


@media (max-width: 600px) {
  .info-box { order: 1; }
  .ad-form { order: 2; }
  .category-box { order: 3; }
  .live-box { order: 4; }
  .latest-ads-box { order: 5; }
}


@media (max-width: 600px) {
  .ad-form {
    max-height: none;
    overflow: visible;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  main {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .ad-form,
  .category-box,
  .latest-ads-box,
  .live-box,
  .info-box {
    flex: 1 1 calc(99% - 20px);
    max-width: calc(99% - 20px);
  }

  .middle-column {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .top-middle-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .info-box {
    order: 1;
  }

  .ad-form {
    order: 3;
  }

  .category-box {
    order: 2;
  }

  .live-box {
    order: 5;
  }

  .latest-ads-box {
    order: 4;
  }

  .card-image img {
    width: 100%;
    height: auto;
  }

  .card-content {
    text-align: left;
  }

  .badge-row {
    justify-content: flex-start;
  }
}


@media (max-width: 400px) {
  
  .info-box { 
    order: 1; 
  }
  .ad-form { 
    order: 2; /
  }
  .category-box { 
    order: 3; 
  }
  .live-box { 
    order: 4; 
  }
  .latest-ads-box { 
    order: 5; 
  }


  .info-box, .ad-form, .category-box, .live-box, .latest-ads-box {
    font-size: 14px; 
  }
  

  .info-box, .ad-form, .category-box, .live-box, .latest-ads-box {
    width: 100%; 
  }
}


.logo-img {
  margin-left: -25px;
  height: 100px;  
   width: 280px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .logo-img {
    width: 180px;
  }
}


@media (max-width: 600px) {
  .logo-img {
    width: 160px;
     height: 120px;  
  }
}

@media (orientation: landscape) and (max-width: 900px) {
  .logo-img {
    width: 305px;  
  }
}






.ad-form, .category-box, .live-box, .latest-ads-box {
  position: relative;
  overflow: auto; 
  border-radius: 16px;
}


.ad-form{
   border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  position: relative;
  isolation: isolate;
  border-radius: 16px;     
  overflow: hidden;
}

.ad-form::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;


  background-image:
    linear-gradient(rgba(0,0,0,.16), rgba(0,0,0,.16)),
    linear-gradient(135deg,
    
      #ff2aa1 0%,
      #ff7ab3 8%,
     
      #ffb86b 22%,
      #ffd56b 32%,
     
      #06b6d4 50%,
      #60a5fa 66%,
    
      #34d399 82%,
    
      #fda4af 100%
    );
  background-size: auto, 220% 220%;
  background-position: center;

  animation: flameGradient 24s ease-in-out infinite; 
  filter: saturate(.88) brightness(.96);              
  opacity: .9;
}

@keyframes flameGradient{
  0%   { background-position: center,   0% 50%; }
  50%  { background-position: center, 100% 50%; }
  100% { background-position: center,   0% 50%; }
}

@media (prefers-reduced-motion: reduce){
  .ad-form::before{ animation: none; }
}



.ad-form > *,
.category-box > *,
.live-box > *,
.latest-ads-box > * {
  position: relative;
  z-index: 1;
}










@media (min-width: 1200px) {
  .category-box h2, .live-box h2, .info-box h2 {
    font-size: 1.5em;
    margin-bottom: 12px;
    position: relative;
    z-index: 3;
  }
}


@media (min-width: 768px) and (max-width: 1199px) {
  .category-box h2, .live-box h2, .info-box h2 {
    font-size: 1.3em;
    margin-bottom: 10px;
    position: relative;
    z-index: 3;
  }
}


@media (min-width: 480px) and (max-width: 767px) {
  .category-box h2, .live-box h2, .info-box h2 {
    font-size: 1.1em;
    margin-bottom: 8px;
    position: relative;
    z-index: 3;
  }
}


@media (max-width: 479px) {
  .category-box h2, .live-box h2, .info-box h2 {
    font-size: 1em;
    margin-bottom: 6px;
    position: relative;
    z-index: 3;
  }
}







.ad-thumb-note {
  font-size: 1.2em;
  text-align: left;
  opacity: 1;
  margin-top: -8px;
  margin-bottom: 8px;
}


.info-box {
  order: 3;
}
.category-box {
  order: 1;
}
.live-box {
  order: 3;
}





#generateTextBtn{
 
  background-image:
    linear-gradient(rgba(0,0,0,.16), rgba(0,0,0,.16)),
    linear-gradient(135deg,
      #ff2aa1 0%,
      #ff7ab3 8%,
      #ffb86b 22%,
      #ffd56b 32%,
      #06b6d4 50%,
      #60a5fa 66%,
      #34d399 82%,
      #fda4af 100%
    );
  background-size: auto, 260% 260%;
  background-position: center;
  animation: flameGradient 20s ease-in-out infinite, glowPulse 3s ease-in-out infinite;

  color:#fff;
  font-size:16px;
  font-weight:600;
  padding:11px 24px;
  border:none;
  border-radius:10px;
  cursor:pointer;

  filter:saturate(.9) brightness(.98);
  transition: transform .15s ease, box-shadow .25s ease, filter .25s ease, background-position .25s ease;
  box-shadow:0 3px 12px rgba(0,0,0,.18);
  text-shadow:0 1px 2px rgba(0,0,0,.25);
  will-change: background-position, box-shadow, filter, transform;
}

#generateTextBtn:hover{
  transform: translateY(-1px) scale(1.01);
  box-shadow:0 6px 18px rgba(0,0,0,.22);
  filter:saturate(.95) brightness(1);
}

#generateTextBtn:active{
  transform: translateY(0) scale(.985);
  box-shadow:0 3px 10px rgba(0,0,0,.25);
}

#generateTextBtn:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 3px rgba(6,182,212,.32),
    0 6px 18px rgba(0,0,0,.22);
}


@keyframes flameGradient{
  0%   { background-position: center,   0% 50%; }
  50%  { background-position: center, 100% 50%; }
  100% { background-position: center,   0% 50%; }
}


@keyframes glowPulse{
  0%,100% { box-shadow: 0 3px 12px rgba(0,0,0,.18); }
  50%     { box-shadow: 0 6px 20px rgba(0,0,0,.26); }
}


@media (prefers-reduced-motion: reduce){
  #generateTextBtn{ animation: none; }
}



#loadingIndicator {
  font-size: 24px;
  display: none; 
  color: #0595a8; 
  animation: pulse 2s ease-in-out infinite; 
  
 
  background-color: rgba(15, 14, 14, 0.7); 
  border-radius: 8px;
  padding: 5px 10px;
  
 
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2), 0 0 25px rgba(0, 0, 0, 0.1); 
}




.right-column h2,
.middle-column h2 {
  font-size: clamp(1.05em, 1.3vw, 1.3rem);
  line-height: 1.3;
  margin-bottom: 12px;
  font-weight: 700;
  word-break: break-word;
  color: var(--text-color, #222);
}


.theme-light .right-column h2,
.theme-light .middle-column h2 { color: #222; }

.theme-dark .right-column h2,
.theme-dark .middle-column h2 { color: #f0f0f0; }


@media (max-width: 600px) {
  .right-column h2,
  .middle-column h2 {
    text-align: center;
    font-size: clamp(1rem, 4vw, 1.3rem);
  }
}
.right-column {
  display: flex;
  flex-direction: column;
  flex: 1 1 320px;
  gap: 10px;
  max-width: 320px; 
}












.contact-bubble {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg, #f511b0, #0595a8, #fc1287, #0595a8);
  background-size: 400% 400%;
  animation: flameGradient 12s ease infinite;

  color: #fff;
  font-weight: bold;
  font-size: 0.85em;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 0, 191, 0.25);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-bubble:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(255, 0, 191, 0.35);
}
@keyframes bubbleGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}







.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;


  border: 4px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(120deg #f511b0,var(--hover-color));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.dark-mode .modal-box {
  background: #000000;
  
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);

  background-image: linear-gradient(#1e1e1e, #1e1e1e), linear-gradient(120deg, #f511b0, var(--hover-color));
}

.legal-text {
  font-size: 0.95em;
  line-height: 1.6em;
  color: #000000;
}

.legal-text a {
  color: #000000;
  text-decoration: none;
}

.dark-mode .legal-text {
  color: #f0f0f0;
}

.dark-mode .legal-text a {
  color: #f0f0f0;
}




@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;
      
    }



.site-footer {
  margin-top: 0;
  background: #f9f9f9;
  padding: 1px 1px;
  text-align: center;
  font-size: 0.8em;
  color: #666;
  border-top: 1px solid #ddd;
}

.site-footer p {
  margin-bottom: 5px;
  font-size: 1.1em;
  color: #000;
}

.site-footer a {
   color:  #000000;
  text-decoration: none;
}


body.dark-mode .site-footer {
  background: #181818;
  color: #aaa;
  border-top: 1px solid #333;
}

body.dark-mode .site-footer p {
  color: #ccc;
}

body.dark-mode .site-footer a {
   color:  #fffbfba6;
}





.google-login-btn {
  background-color: #fff;
  color: #444;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.google-login-btn:hover {
  background: #f5f5f5;
}




.header-left img {
  height: 222px;
  max-width: 280px;
  object-fit: contain;
  display: block;
}


.header-left.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
 
}


body.dark-mode .header-left img {
  filter: brightness(0.85) contrast(1.1);
}


@media (max-width: 768px) {
  .header-left img {
    margin-top: 41px;
    height: 120px;
    max-width: 220px;
  }
}

@media (max-width: 500px) {
  .header-left img {
    height: 90px;
    max-width: 180px;
  }
}



.header-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  max-height: 80px;
}

.logo-img {
  height: 60px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}




@media (prefers-color-scheme: dark) {
  .logo-light {
    display: none;
  }
  .logo-dark {
    display: inline;
  }
}
.logo-dark {
  display: none;
}
body.dark-mode .logo-dark {
  display: inline-block;
}
body.dark-mode .logo-light {
  display: none;
}








.info-intro img {
  height: 222px;
  margin: 0 4px 4px 4px;
  vertical-align: middle;
}

.info-intro p {
  font-size: 0.9em;
  line-height: 1.3;
  margin: 4px 0 8px;
}


.slide-img {
  display: none;
  transition: opacity 1s ease;
}

.slide-img.active {
  display: block;
}


.screenshot.active {
  opacity: 1;
  z-index: 1;
}










 
  #contactModal{
    position:fixed; inset:0;
    display:none; 
    align-items:center; justify-content:center;
    background:rgba(0,0,0,.45);
    z-index: 9999;
    backdrop-filter: blur(2px);
  }


  #contactModal .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: modalIn .18s ease;
    text-align:left;
  }
  @keyframes modalIn{
    from{ transform: translateY(4px) scale(.98); opacity:0; }
    to{ transform: translateY(0) scale(1); opacity:1; }
  }


  #contactModal h3{ margin:0 0 12px; color:#c00582; font-size:1.15rem; }
  #contactModal label{ display:block; margin-top:12px; font-weight:700; color:#6b7280; }


  #contactModal select,
  #contactModal textarea,
  #contactModal input[type="email"]{
    width:100%; margin-top:6px;
    padding:10px 12px; border-radius:10px;
    border:1px solid #e5e7eb; outline:none;
    background:#fff; color:#1f2430;
  }
  #contactModal select:focus,
  #contactModal textarea:focus,
  #contactModal input[type="email"]:focus{
    box-shadow:0 0 0 3px rgba(192,5,130,.15);
    border-color:#c00582;
  }


  #contactModal .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:pulse 1.5s infinite;
  }
  @keyframes pulse{ 0%{opacity:1} 50%{opacity:.6} 100%{opacity:1} }

  #contactModal .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;
  }


  #contactModal .actions{ margin-top:16px; display:flex; gap:10px; flex-wrap:wrap; }
  #contactModal .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;
  }
  #submitContact{ background:#0d6efd; color:#fff; }
  #closeContactModal{ background:#fff; color:#1f2430; border:1px solid #e5e7eb; }


  body.dark-mode #contactModal .modal-box{ background:#171a21; color:#e5e7eb; border-color:#2a2f3a; box-shadow:0 20px 50px rgba(0,0,0,.45); }
  body.dark-mode #contactModal h3{ color:#ff2f7c; }
  body.dark-mode #contactModal label{ color:#9aa3af; }
  @media (prefers-color-scheme: dark){
    body:not(.no-auto-dark) #contactModal .modal-box{ background:#171a21; color:#e5e7eb; border-color:#2a2f3a; box-shadow:0 20px 50px rgba(0,0,0,.45); }
    body:not(.no-auto-dark) #contactModal h3{ color:#ff2f7c; }
    body:not(.no-auto-dark) #contactModal label{ color:#9aa3af; }
  }

  body.dark-mode #contactModal select,
  body.dark-mode #contactModal textarea,
  body.dark-mode #contactModal input[type="email"]{
    background:#0f1115; color:#e5e7eb; border-color:#2a2f3a;
  }
  body.dark-mode #contactModal select:focus,
  body.dark-mode #contactModal textarea:focus,
  body.dark-mode #contactModal input[type="email"]:focus{
    box-shadow:0 0 0 3px rgba(255,47,124,.20); border-color:#ff2f7c;
  }

  body.dark-mode #contactModal .loading-msg{
    background: rgba(255,191,71,.12); color:#ffbf47;
    border-color: rgba(255,191,71,.35);
  }
  body.dark-mode #contactModal .success-msg{
    background: rgba(34,197,94,.12); color:#22c55e;
    border-color: rgba(34,197,94,.35);
  }

  body.dark-mode #submitContact{ background:#4da3ff; color:#0b1020; }
  body.dark-mode #closeContactModal{ background:transparent; color:#e5e7eb; border:1px solid #2a2f3a; }









.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); /* dole */
  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;
}


#preloader {
  position: fixed;
  inset: 0;
  display: none;
  opacity: 0;
  justify-content: center;
  align-items: center;
  z-index: 2147483647;
  background: rgba(8,10,12,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity .55s ease;
  pointer-events: none; /
}


html.preloading #preloader {
  display: flex;
  opacity: 1;
}


#preloader .logo-preloader {
  width: 120px;
  height: auto;
  animation: slowSpin 3s linear infinite;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}





  @media (max-width: 767px){
    .latest-ads-box,
    #latestAdsContainer { display: none !important; }
  }


.mobile-live-link {
  display: none;                 
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  color: var(--highlight-color);
  padding: 6px 12px;
  border-radius: 14px;
  margin-top: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.2s;


  background:
    linear-gradient(var(--container-bg, #ffffff), var(--container-bg, #ffffff)) padding-box,
    var(--grad-wide) border-box;
  border: 2px solid transparent;
  background-size: auto, 220% 220%;
  background-position: center;
  animation: liveBoxBorderMove 18s ease-in-out infinite;

  flex-direction: column;
  align-items: center;     
  justify-content: center;
  text-align: center;
}


body.dark-mode .mobile-live-link {
  background:
    linear-gradient(var(--container-bg, #1a1a1a), var(--container-bg, #1a1a1a)) padding-box,
    var(--grad-wide) border-box;
  color: #f0f0f0;
  box-shadow: 0 2px 6px rgba(255,255,255,0.08);
}


.mobile-live-link:hover {
  background:
    linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.12)) padding-box,
    var(--grad-wide) border-box;
  color: #fff;
  transform: scale(1.05);
}

.mobile-live-link .mobile-live-desc {
  display: block;
  font-size: 0.75em;
  font-weight: normal;
  margin-top: 2px;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.2;
}
body.dark-mode .mobile-live-link .mobile-live-desc {
  color: #e8e8e8;
  opacity: 0.85;
}


@media (max-width: 600px) {
  .mobile-live-link {
    display: inline-flex; 
  }
}



.info-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap; 
  margin: 12px 0;
}

.info-actions button {
  flex: 1 1 auto;
  max-width: 260px;
  padding: 10px 1px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  border: 1px solid transparent;
  color: #fff; 
  cursor: pointer;
  white-space: nowrap;

  transition: transform .16s ease, box-shadow .22s ease, filter .22s ease, background-position .22s ease;
  will-change: transform, box-shadow, background-position, filter;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}


/* 📢 Prezerať všetky inzeráty – root grad-wide, jemnejší */
#infoMoreBtn {
  background-image:
    linear-gradient(rgba(0,0,0,.14), rgba(0,0,0,.14)),
    var(--grad-wide);
  background-size: auto, 240% 240%;
  background-position: center;
  animation: flameGradient 18s ease-in-out infinite;
  filter: saturate(.94) brightness(1);
  color: #fff;
}

/* ✦ Vytvoriť Digitálnu vizitku – tiež root grad-wide, ale o trochu „viac CTA“ */
#createCompanyBtn {
  background-image:
    linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)),
    var(--grad-wide);
  background-size: auto, 260% 260%;
  background-position: center;
  animation: flameGradient 10s ease-in-out infinite;
  filter: saturate(1.04) brightness(1.03);
  border: 1.5px solid rgba(255,255,255,0.85);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  color: #fff;
}


.info-actions button:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  filter: saturate(.95) brightness(1);
}


.info-actions button:active {
  transform: translateY(0) scale(.985);
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
}


.info-actions button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(6,182,212,.32); 
}

@keyframes infoActionsGrad {
  0%   {background-position: 0% 0%}
  50%  {background-position: 100% 100%}
  100% {background-position: 0% 0%}
}

@media (max-width: 768px) {
  .info-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .info-actions button {
    max-width: 100%;
  }
}


@media (max-width: 600px) {
  .middle-column {
    display: grid;
    grid-template-areas:
      "actions"
      "live";
    grid-auto-rows: min-content;
    row-gap: 8px; 
  }


  .info-actions { grid-area: actions; }
  .mobile-live-link { 
    grid-area: live; 
    display: inline-flex; 
  }
}


@media (max-width: 600px) {
  .middle-column {
    display: grid;
    grid-template-areas:
      "actions"
      "live";
    grid-auto-rows: min-content;
    row-gap: 4px; 
  }

  .info-actions { 
    grid-area: actions; 
    flex-direction: column;
    align-items: stretch;
    gap: 4px; 
  }

  .info-actions button {
    max-width: 100%;
    font-size: 14px;
    padding: 8px 12px;
  }

  .mobile-live-link { 
    grid-area: live; 
    display: inline-flex;
    margin-top: 0; 
  }
}

@media (max-width: 600px) {
  main,
  .middle-column {
    margin-top: 0;     
    padding-top: 1px; 
  }

  header, .header-bar {
    margin-bottom: 0;  
    padding-bottom: 1px;
  }
}

:root{
  --grad-wide: linear-gradient(135deg,
    #ff2aa1 0%,
    #ff7ab3 8%,
    #ffb86b 22%,
    #ffd56b 32%,
    #06b6d4 50%,
    #60a5fa 66%,
    #34d399 82%,
    #fda4af 100%
  );
  --card-bg: #fff;
}


.symbol-toolbar{
  margin-top:10px;
  border-radius:14px;
  padding:10px;
  color:#333;


  border: 1px solid transparent;
  background-image:
    linear-gradient(var(--card-bg), var(--card-bg)), 
    var(--grad-wide);                              
  background-origin: border-box;
  background-clip: padding-box, border-box;


  background-size: 100% 100%, 100% 100%;
  animation: none;
}

.symbol-toolbar__label{
  font-weight:600;
  margin-bottom:6px;
}
.symbol-quick{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.symbol-toolbar__actions{
  margin-top:8px;
  display:flex;
  gap:8px;
  align-items:center;
}


.symbol-toolbar button.sym,
.symbol-grid button,
#toggleSymbolPicker{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  font-size:22px;
  line-height:1;
  padding:0;
  cursor:pointer;

  border:1px solid rgba(0,0,0,.1);
  border-radius:10px;
  background: var(--card-bg);
  color:#111;
  transition: all .15s ease;
  animation:none;
}

#toggleSymbolPicker{
  width:auto;
  height:auto;
  padding:6px 18px;
  font-size:15px;
  font-weight:700;
  letter-spacing:.3px;

  background: #000; 
  color:#fff;       
  border-radius:10px;


  border:2px solid transparent;
  background-image:
    linear-gradient(#000, #000),
    var(--grad-wide);
  background-origin: border-box;
  background-clip: padding-box, border-box;

  cursor:pointer;
  transition: all .2s ease;
}

.symbol-toolbar button.sym:hover,
.symbol-grid button:hover,
#toggleSymbolPicker:hover{
  transform:translateY(-1px);
  box-shadow:0 0 6px rgba(0,0,0,.15);
}


#symbolPicker{
  margin-top:10px;
  max-height:260px;         
  overflow:auto;              
  padding-right:4px;
  -webkit-overflow-scrolling:touch;
}
.symbol-section{ margin-top:10px }


.symbol-section__title{
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--card-bg);
  opacity: .9;
  font-size:12px;
  padding:4px 2px;
  margin:0 0 6px;
  border-bottom:1px solid rgba(0,0,0,.06);
}

.symbol-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(42px,1fr));
  gap:6px;
}


#symbolPicker::-webkit-scrollbar{ width:10px; }
#symbolPicker::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.15);
  border-radius:8px;
}
#symbolPicker::-webkit-scrollbar-track{ background:transparent; }


@media(max-width:600px){
  #symbolPicker{ max-height:220px; }
  .symbol-grid{ grid-template-columns:repeat(8,1fr) }
  .symbol-toolbar button.sym,
  .symbol-grid button{
    width:36px;
    height:36px;
    font-size:20px;
  }
}

body.dark-mode .symbol-toolbar{
  color: #e5e7eb;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--container-bg, #1a1a1a), var(--container-bg, #1a1a1a)) padding-box,
    var(--grad-wide, linear-gradient(135deg,
      #ff2aa1 0%, #ff7ab3 8%, #ffb86b 22%, #ffd56b 32%,
      #06b6d4 50%, #60a5fa 66%, #34d399 82%, #fda4af 100%
    )) border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}


body.dark-mode .symbol-toolbar button.sym,
body.dark-mode .symbol-grid button,
body.dark-mode #toggleSymbolPicker{
  background: var(--container-bg, #1a1a1a);
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.15);
}


body.dark-mode .symbol-section__title{
  background: var(--container-bg, #1a1a1a);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e7eb;
  opacity: .95;
}


body.dark-mode #symbolPicker{
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
body.dark-mode #symbolPicker::-webkit-scrollbar-thumb{
  background: rgba(255, 255, 255, 0.25);
}
body.dark-mode #symbolPicker::-webkit-scrollbar-thumb:hover{
  background: rgba(255, 255, 255, 0.35);
}


@media (prefers-reduced-motion: reduce){
  body.dark-mode .symbol-toolbar,
  body.dark-mode .symbol-toolbar *{
    animation: none !important;
    transition: none !important;
  }
}


.btn-google-alt {
  display: inline-block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  color: #0b1020;


  background: linear-gradient(
    135deg,
    var(--highlight-color),
    #f511b0,
    var(--hover-color),
    #fc1287
  );
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;


  box-shadow:
    0 6px 14px rgba(0,0,0,.25),
    0 0 8px #ff00bfcb,
    0 0 12px #ff00c8ff,
    0 0 16px #ff0095ff,
    0 0 20px #e6007fff;

  transition: filter .2s ease, box-shadow .2s ease;
}

.btn-google-alt:hover {
  filter: brightness(1.08);
  box-shadow:
    0 8px 18px rgba(0,0,0,.3),
    0 0 10px #ff00bfcb,
    0 0 16px #ff00c8ff,
    0 0 22px #ff0095ff,
    0 0 26px #e6007fff;
}

.btn-google-alt:active {
  filter: brightness(0.95);
}


.btn-google-alt:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255,255,255,.7),
    0 0 0 6px rgba(6,182,212,.45),
    0 8px 18px rgba(0,0,0,.3);
}


@keyframes gradientMove {
  0% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
  100% { background-position: 0% 50% }
}



#smsModal p,
#smsModal div,
#smsModal label {
  color: #e5e7eb;        
  font-size: 0.95rem;
  line-height: 1.4;
}


#smsFallbackRow > div {
  color: #f3f4f6;        
  font-weight: 500;
}


#smsError {
  color: #f87171;        
  font-weight: 600;
  font-size: 0.9rem;
}


#smsPhoneLabel {
  color: #fff;         
  font-weight: 700;
}


.hamburger {
  display: none;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 3px;
  margin: 6px 0;
  background: var(--text-color);
  border-radius: 3px;
  transition: transform .25s ease, opacity .25s ease;
}


.mobile-menu.open + .hamburger span:nth-child(1),
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu.open + .hamburger span:nth-child(2),
.hamburger.active span:nth-child(2) { opacity: 0; }
.mobile-menu.open + .hamburger span:nth-child(3),
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }


.mobile-menu {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(var(--container-bg, #ffffff), var(--container-bg, #ffffff)) padding-box,
    var(--grad-wide) border-box;
  background-size: auto, 260% 260%;
  animation: liveBoxBorderMove 20s ease-in-out infinite;
  border: 3px solid transparent;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .28s ease;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mm-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 22px 48px;
}
.mm-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.06);
  color: var(--text-color);
  font-size: 26px;
  cursor: pointer;
}
.mm-list {
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.mm-list a {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-color);
  background:
    linear-gradient(var(--container-bg, #ffffff), var(--container-bg, #ffffff)) padding-box,
    var(--grad-wide) border-box;
  border: 2px solid transparent;
  background-size: auto, 220% 220%;
  animation: chatBorderFlow 22s ease-in-out infinite;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.mm-list a:active { transform: scale(.98); }


@media (max-width: 600px) {
  .hamburger { display: block; }
  .header-right.auth-links { display: none !important; } 
}


.mobile-menu {
  display: flex;            
}


.mm-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;     
  align-items: center;        
  min-height: 100dvh;          
  padding: 32px 16px;
}


.mm-list {
  width: 100%;
  max-width: 420px;            
  text-align: center;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}


.mm-list a {
  text-align: center;
  width: 100%;
  max-width: 420px;             
  margin: 0 auto;
}


.mm-close { display: none !important; }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--container-bg, #ffffff);   
  border: none;                               
  box-shadow: none;                         
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .28s ease;
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}


.mm-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 22px 48px;
}
.mm-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mm-list a,
.mm-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(8, 150, 185, 0.12);
  border-radius: 14px;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  line-height: 1.25;
  /* silnejší tieň */
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(4px);
  transition: background .12s ease-out, transform .12s ease-out, box-shadow .12s ease-out;
}

.mm-list a .icon,
.mm-list button .icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(8,150,185,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #0595a8;
  flex: 0 0 auto;
}

.mm-list a small,
.mm-list button small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  color: rgba(15, 23, 42, 0.5);
  margin-top: 2px;
}

.mm-list a:hover,
.mm-list button:hover {
  background: rgba(8, 150, 185, 0.08);
  transform: translateX(-2px);
 
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.12),
    0 3px 8px rgba(0, 0, 0, 0.04);
}

.mm-list a.active,
.mm-list button.active {
  background:
    linear-gradient(rgba(0,0,0,.02), rgba(0,0,0,0)) padding-box,
    linear-gradient(135deg, #0896b9 0%, #0595a8 100%) border-box;
  border: 1px solid transparent;
  color: #fff;

  box-shadow:
    0 14px 30px rgba(5, 149, 168, 0.25),
    0 3px 10px rgba(0, 0, 0, 0.04);
}

.mm-list a.active .icon,
.mm-list button.active .icon {
  background: rgba(255,255,255,.15);
  color: #fff;
}

@media (max-width: 420px) {
  .mm-list {
    gap: 9px;
  }
  .mm-list a,
  .mm-list button {
    padding: 10px 12px;
  }
}:root {
  --bg-color: #f0f4f5;
  --text-color: #0f172a;
  --container-bg: #ffffff;
  --highlight-color: #0e7490;  
  --hover-color: #14b8a6;       
  --button-active: #0f766e;
  --grad-wide: linear-gradient(135deg,
    #0e7490 0%,
    #14b8a6 25%,
    #38bdf8 60%,
    #0f172a 100%
  );
}

.ad-form {
  background: rgba(15,17,22,.75);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,.02);
  border-radius: 16px;
  padding: 14px 14px 90px; 
  display: grid;
  gap: 12px;
}

.ad-form > h2 {
  margin: 0 0 2px;
  font-size: .95rem;
  font-weight: 650;
  color: #fff;
  letter-spacing: .01em;
}

#adForm > label[for="mainCategory"],
#adForm > #mainCategory,
#adForm > div[id$="Wrapper"],
#adForm > div[id$="TypeWrapper"],
#adForm > #title,
#adForm > #description,
#adForm > .radio-row,
#adForm > #priceInput,
#adForm > #email,
#adForm > #phone,
#adForm > #region,
#adForm > #district,
#adForm > #obec,
#adForm > #psc,
#adForm > #image-uploads,
.ad-form .gdpr-checkbox {
  background: rgba(4,5,7,.25);
  border: 1px solid rgba(255,255,255,.01);
  border-left: 3px solid rgba(252,18,135,.6); 
  border-radius: 12px;
  padding: 7px 9px 8px 12px;
  margin-top: 0 !important;
}


#adForm > div[id$="Wrapper"][style*="block"],
#adForm > div[id$="TypeWrapper"][style*="block"] {
  display: block;
}


.ad-form label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  margin-bottom: 3px;
  color: rgba(255,255,255,.8);
}


.ad-form input,
.ad-form select,
.ad-form textarea {
  width: 100%;
  background: rgba(0,0,0,.08);
  border: 1px solid rgba(255,255,255,.02);
  border-radius: 8px;
  padding: 7px 8px 7px 9px;
  font-size: .88rem;
  color: #fff;
  min-height: 34px;
  outline: none;
  transition: border .12s ease, box-shadow .12s ease, background .12s ease;
}

.ad-form input::placeholder,
.ad-form textarea::placeholder {
  color: rgba(255,255,255,.28);
}


.ad-form input:focus,
.ad-form select:focus,
.ad-form textarea:focus {
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(252,18,135,.5);
  box-shadow: 0 0 0 2px rgba(252,18,135,.08);
}


#adForm #description {
  min-height: 95px;
}


#adForm #generateTextBtn {
  background: rgba(252,18,135,1);
  border: none;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: .72rem;
  margin-top: 5px;
  cursor: pointer;
}
#adForm #generatedDescription {
  margin-top: 7px !important;
  font-size: .74rem !important;
  color: rgba(255,255,255,.85) !important;
}


.ad-form .radio-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ad-form .radio-row label {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-bottom: 0;
  font-size: .72rem;
  cursor: pointer;
}
.ad-form .radio-row label.active {
  background: rgba(252,18,135,.16);
  border-radius: 6px;
  padding: 2px 6px;
}


#adForm #image-uploads {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(4,5,7,.25);
}
#adForm .file-upload {
  background: rgba(0,0,0,.15);
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: .72rem;
  cursor: pointer;
}


.ad-form .gdpr-checkbox {
  font-size: .68rem;
  line-height: 1.25;
}
.ad-form .gdpr-checkbox a {
  color: rgba(252,18,135,1);
  text-decoration: underline;
}


.ad-form .buttons {
  position: fixed;
  bottom: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 999;
}
.ad-form .buttons button {
  flex: 1 1 50%;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
  cursor: pointer;
}
.ad-form .buttons button[type="button"] {
  background: rgba(0,0,0,.35);
  color: #fff;
  border: 1px solid rgba(255,255,255,.05);
}
.ad-form .buttons button[type="submit"] {
  background: linear-gradient(135deg, var(--highlight-color), #f511b0);
  color: #fff;
  box-shadow: 0 8px 20px rgba(252,18,135,.22);
}


@media (max-width: 640px) {
  
  #subCategoryWrapper > div,
  #image-uploads {
    flex-direction: column;
  }
  
  .ad-form {
    border-radius: 0;
    padding-left: 8px;
    padding-right: 8px;
  }
}
.ad-form #title::placeholder,
.ad-form #description::placeholder,
.ad-form #email::placeholder,
.ad-form #phone::placeholder,
.ad-form #priceInput::placeholder {
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: .83rem;
}
.ad-form .radio-row {
  display: flex;
  gap: 10px;
  background: transparent;            
  border: none;
  padding: 0;
}

.ad-form .radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;                            
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .75rem;
  color: rgba(255,255,255,.82);
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}


.ad-form .radio-row input[type="radio"] {
  position: static;
  margin: 0;
}


.ad-form .radio-row label.active {
  background: rgba(252,18,135,.14);
  color: #fff;
  outline: 1px solid rgba(252,18,135,.25);
}


@media (max-width: 640px) {
  .ad-form .radio-row {
    gap: 6px;
  }
  .ad-form .radio-row label {
    padding: 4px 10px;
  }
}
#adForm #image-uploads > label.file-upload:first-child {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-height: 40px;               
  padding: 6px 12px;
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: 10px;
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  cursor: pointer;
  transition: all .15s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}


#adForm #image-uploads > label.file-upload:first-child:hover {
  background: rgba(252,18,135,.08);
  border-color: rgba(252,18,135,.35);
  box-shadow: 0 2px 6px rgba(252,18,135,.15);
}


@media (max-width: 640px) {
  #adForm #image-uploads > label.file-upload:first-child {
    box-sizing: border-box;
    width: calc(100% - 4px);
    max-width: 100%;
    margin: 0 auto;         
  }
}
#adForm label[for="aiKeywords"] {
  font-size: .85rem;         
  line-height: 1.4;
}


#adForm #aiKeywords::placeholder,
#adForm #description::placeholder {
  font-size: .82rem;
  color: rgba(255,255,255,.8);
}

#adForm #aiKeywords {
  padding: 9px 12px;
  font-size: .82rem;
  border-radius: 11px;
}


#adForm #generateTextBtn {
  font-size: .82rem;          
  padding: 8px 15px;         
  border-radius: 11px;
  gap: 7px;
}


#adForm #generatedDescription {
  font-size: .8rem !important;
  line-height: 1.4;
}
.adform-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9,10,13,.0);
  backdrop-filter: blur(0px);
  z-index: 998;
  display: none;
  transition: background .25s ease, backdrop-filter .25s ease;
}

body.adform-open .adform-backdrop {
  display: block;
  background: rgba(9,10,13,.35);
  backdrop-filter: blur(6px);
}

@media (min-width: 900px) {


  body.adform-open .ad-form {
    position: fixed;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%) scale(var(--adform-scale, 1));
    transform-origin: center center;
    z-index: 999;
    background: rgba(15,17,22,.95);
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
    border-radius: 18px;
    transition: transform .28s ease;
    padding-bottom: 78px; 
  }

  body.adform-open .ad-form.ad-form--tall {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%); 
    width: min(820px, 95vw);
    
  }


  body.adform-open .ad-form .buttons {
    position: absolute;
    bottom: 10px;
    left: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    background: linear-gradient(150deg, rgba(15,17,22,1), rgba(15,17,22,0));
    padding-top: 4px;
  }


  body.adform-open .ad-form .gdpr-checkbox {
    margin-bottom: 60px; 
  }


  body.adform-open .ad-form .photo-limit-info {
    margin-bottom: 14px;
  }


  body.adform-open main > *:not(.ad-form),
  body.adform-open header,
  body.adform-open footer {
    filter: blur(3.5px);
    pointer-events: none;
  }
}


body.adform-open {
  overflow: hidden;
}

body.adform-open.adform-tall {
  overflow-y: auto;
}

#adForm > label[for="mainCategory"] {
  background: transparent !important;
  border-left: none !important;
  border: none !important;
  padding-left: 0 !important;
  margin-bottom: 4px;
}
#image-uploads {
  display: flex; gap: 10px; flex-wrap: wrap;
}

#image-uploads .file-upload {
  position: relative;
  width: 96px; height: 96px;
  border-radius: 10px;
  border: 2px dashed var(--highlight-color, #888);
  color: var(--highlight-color, #888);
  font: 600 12px/1.2 system-ui,Segoe UI,Roboto,Arial;
  align-items: center; justify-content: center;
  text-align: center; padding: 8px;
  background: #fafafa;
  cursor: pointer;
}

#image-uploads .file-upload input[type="file"] { display: none; }


#image-uploads .file-upload.has-file {
  border: none;
  background: #eee;
  padding: 0;
  overflow: hidden;
}

#image-uploads .file-upload.has-file .thumb-img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
}

#image-uploads .file-upload.has-file .remove-btn {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.7); color: #fff; cursor: pointer;
  font-weight: 700; line-height: 24px; text-align: center;
}
#image-uploads .file-upload{
  width: 222px;
  height: 155px;
  flex: 0 0 96px;         
}


#image-uploads .file-upload:first-child{
  grid-column: auto !important;
  width: 155px !important;
  height: 155px !important;
  flex: 0 0 96px !important;
}


#image-uploads .file-upload.has-file .thumb-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}


#image-uploads .file-upload:first-child .thumb-img{
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

.buttons{ display:flex !important; gap:10px; align-items:center; }

.buttons::before,
.buttons::after{ content:none !important; }

.buttons{
  background: transparent !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


.buttons button{
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px;

  border: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;           
  background-clip: padding-box !important; 
  clip-path: inset(0 round 12px);         

  background: var(--btn-bg, #000) !important; 
  color: #fff !important;


  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-image: none !important;       
  box-shadow: 0 6px 16px rgba(0,0,0,.18);  
}


.buttons button::before,
.buttons button::after{
  content: none !important;       
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: inherit !important;
}


.buttons button:first-of-type{ --btn-bg: #000; }                                 
.buttons button:last-of-type{  --btn-bg: var(--highlight-color, #f511b0); }      


@supports (-webkit-overflow-scrolling: touch){
  .buttons button{
    -webkit-mask-image: -webkit-radial-gradient(white, black);
  }
}

#infoBox {
  min-height: 700px; 
  margin: 0 auto;
}
#infoBox:hover { background: inherit; } 

body.adform-open main > *:not(.ad-form),
body.adform-open header,
body.adform-open footer{
  filter: none !important;
  pointer-events: none; 
}


body.adform-open::before{
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(3px); 
  z-index: 998;
}


body.adform-open .ad-form{
  border: 0 !important;
  outline: none !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.35) !important;
  background-clip: padding-box !important;
  overflow: hidden;            
  position: fixed;              
  z-index: 999;                  
  backface-visibility: hidden;   
  transform: translate(-50%, -50%) scale(var(--adform-scale,1));
}
  