.container {
  margin: 0 auto;
  max-width: 1440px;
  width: 100%;
  overflow: hidden;
}

@media(max-width: 1520px) {
  .container {
    padding: 0 16px;
    max-width: 1200px;
  }
}

.column-1,
.column-2,
.column-3,
.column-4,
.column-5,
.column-6,
.column-7,
.column-8,
.column-9,
.column-10,
.column-11,
.column-12 {
  float: left
}

.column-1 {
  width: 8.3%
}

.column-2 {
  width: 16.6%
}

.column-3 {
  width: 25%
}

.column-4 {
  width: 33.3%
}

.column-5 {
  width: 41.6%
}

.column-6 {
  width: 50%
}

.column-7 {
  width: 58.3%
}

.column-8 {
  width: 66.6%
}

.column-9 {
  width: 75%
}

.column-10 {
  width: 83.3%
}

.column-11 {
  width: 91.6%
}

.column-12 {
  width: 100%
}

@media(max-width: 1023px) {

  .column-1,
  .column-2,
  .column-3,
  .column-4,
  .column-5,
  .column-6,
  .column-7,
  .column-8,
  .column-9,
  .column-10,
  .column-11,
  .column-12 {
    margin: 0 !important;
    padding: 0 !important;
    float: none;
    width: 100% !important
  }

  .container {
    padding: 0 16px !important;
  }
}

section {
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;


}

footer,
header,
nav,
section {
  display: block;
  overflow: hidden
}


* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  margin-top: 0 !important;

}

body {
  font-family: "Barlow", sans-serif;
  background: linear-gradient(135deg, #08011a 0%, #110a2b 50%, #08011a 100%);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color: var(--text-color);
  line-height: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  color: #fff;

}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: none;
}

button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

* {
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: rgba(0, 0, 0, 0);
  /* Android Chrome */
  outline: none !important;
}

img {
  user-select: none;
}

:root {
  --text-color: #242424;
  --title-color: #242424;
  --main-color: #01aef0;
}

a {
  text-decoration: none
}

a:hover,
a:active {
  outline: 0
}


p {
  color: #d4d4f0;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 16px;

}



h3,
h3 a {
  font-weight: 470;
  font-size: 30px;
  line-height: 38px;
}

h4,
h4 a {
  font-size: 26px;
  line-height: 32px;
  font-weight: 600;
}

h5,
h5 a {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
}

h6,
h6 a {
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}

h1,
h2,
h2 a,
h3,
h3 a,
h4,
h4 a,
h5,
h5 a,
h6,
h6 a {
  color: var(--title-color);

}

ul {
  list-style: disc inside
}

ol {
  list-style: decimal inside
}

li {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 15px;
  color: var(--text-color);
  list-style: none;
  font-family: "Montserrat", sans-serif;
  line-break: anywhere;
}

li ul,
li ol {
  margin-left: 15px;
  margin-bottom: 0
}

iframe,
img {
  max-width: 100%
}



h1 {
  font-size: 64px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.1;
  color: #fff;
}

h2 {
  font-size: 52px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.1;
}
     header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(8, 1, 26, 0.8);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.201);
            padding: 20px 0;
            transition: all 0.3s ease;
        }

        header.scrolled {
            background: rgba(8, 1, 26, 0.95);
            box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
        }

        .header-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 40px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .logo-txt {
            height: 45px;
        }



        /* Responsive */
        @media (max-width: 768px) {
            .header-container {
                padding: 0 16px;
            }

            .logo-txt {
       
                 height: 32px;
            }

        }

.atf {
  margin: 110px 0 64px 0;
}

.subtitle {
  text-align: center;

}

.filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  position: sticky;
  top: 79px;
   border-bottom: 1px solid #393447;
    padding: 16px 8px;
    z-index: 9999;
    background: linear-gradient(135deg, #08011a 0%, #110a2b 50%, #08011a 100%);
}
.filters.hp {
  padding: 0;
  border-bottom: none;
  background: transparent;
  position: relative;
  top: auto;
  z-index: 1;
}
.filter-btn {
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(25% - 6px);
  max-width: 220px;
}
.filters.hp .filter-btn {
  width: calc(25% - 12px);
  max-width: 160px;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: #fff;
  color: #0f0f0f;
  border-color: #fff;
}

.filter-btn img {
  width: 26px;
  height: 26px;

  object-fit: contain;
}

.drop-zone {
  max-width: 700px;
  height: 260px;
  margin: 0 auto 24px;
  padding: 80px 40px;
  border: 3px dashed rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
}

.drop-zone.drag-over {
  border-color: #b388ff;
  background: rgba(179, 136, 255, 0.1);
  transform: scale(1.02);
}

.drop-zone-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 20px;
  opacity: 0.5;
}

.drop-zone-text {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.drop-zone-subtext {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
}

.preview-container {
  max-width: 400px;
  margin: 30px auto;
  display: none;
}

.preview-container.active {
  display: block;
}

.preview-image {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 20px;
 max-height: 350px;
 object-fit: contain;
}

.remove-btn {
  width: 100%;
  padding: 14px;
  background: rgba(255, 50, 50, 0.2);
  border: 1px solid rgba(255, 50, 50, 0.3);
  border-radius: 15px;
  color: #ff6b6b;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.remove-btn:hover {
  background: rgba(255, 50, 50, 0.3);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.content-block {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.content-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-block:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.content-block:hover::before {
  opacity: 1;
}


.block-title {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
  text-align: center;
}
.block-title span {
  display: block;
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  color: rgba(96, 165, 250)
}
.block-text {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
  text-align: center;
}

.content-block .img-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 2px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
 
  
}

.content-block:last-child .img-block img {
  width: calc(33% - 8px);
}
.content-block .img-block img {
  width: calc(48% - 5px);
  object-fit: contain;
  height: 32px;
  
}

input[type="file"] {
  display: none;
}

.content h2 {
  text-align: center;
}


@media (max-width: 768px) {
  .atf {
    margin: 100px 0 48px 0;

  }

  h1 {
    font-size: 48px;

  }

  .filters {
    gap: 8px;
    margin-bottom: 16px;
     top: 72px;
  }

  .filter-btn {
           padding: 8px 8px;
        font-size: 12px;
        justify-content: center;
        min-width: max-content;
    justify-content: center;
  }
  .filter-btn img {
    width: 21px;
    height: 21px;
    object-fit: contain;
}
  #shareBtn {
    margin-left: 8px!important;
}
#shareBtn img {
    width: 20px!important;
    height: 20px!important;
}
.filters.hp .filter-btn {
  width: calc(50% - 8px);
    max-width: 230px;
}
  .content-grid {
    grid-template-columns: 1fr;
  }

  .drop-zone {
    padding: 60px 30px;
  }
  .block-title span {
  font-size: 38px;
}
}




.section-container {
  margin: 0 auto;
  position: relative;
}

.hero-card {

  position: relative;
  overflow: hidden;

}


@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.title-section {
  position: relative;
  z-index: 2;
}

h2 {
  font-size: 56px;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.1;
  font-weight: 900;

}

.highlight {
  color: rgba(96, 165, 250, 1);
  font-weight: 900;
  display: inline-block;
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: block;
  min-height: 90px;
}

.highlight.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: center;
  margin: 16px auto 0;
  position: relative;
  z-index: 2;
  max-width: 800px;
}

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


.image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid rgba(139, 92, 246, 0.3);
  box-shadow:
    0 0 40px rgba(139, 92, 246, 0.4),
    0 20px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.4s ease;
  flex: 1;
}

.image-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(139, 92, 246, 0.3) 50%,
      transparent 70%);
  transform: rotate(0deg);
  transition: transform 0.6s ease;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}


@media (max-width: 768px) {


  h2 {
    font-size: 40px;
  }
}

.grid-container {
  margin: 48px auto;
}

.grid-container h2 {
  margin-bottom: 64px;
}

.grid-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  pointer-events: none;
}

.grid-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
  position: relative;
  z-index: 1;
}

.grid-item:last-child {
  margin-bottom: 0;
}

/* Naizmjenično - svaki drugi red ima obrnut redoslijed */
.grid-item:nth-child(even) {
  direction: rtl;
}

.grid-item:nth-child(even)>* {
  direction: ltr;
}

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

.text-content h3 {
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}




.image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}



.image-container img {
  width: 100%;
  height: 350px;
  object-fit: contain;
  display: block;

}

.grid-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 10%;
  right: 10%;
  height: 1px;
}

@media (max-width: 968px) {

  .grid-item {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 64px;
  }

  .grid-item:nth-child(even) {
    direction: ltr;
  }

  .text-content h3, h3 {
    font-size: 32px;
  }

  .image-container img {
    height: 250px;
  }

  .grid-item:not(:last-child)::after {
    bottom: -40px;
  }
}



.note-box {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(96, 165, 250, 0.1) 100%);
  padding: 40px 50px;
  border-radius: 16px;
  position: relative;
  border: 2px solid rgba(96, 165, 250, 0.3);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 40px rgba(96, 165, 250, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}

.note-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.05) 0%, transparent 100%);
  border-radius: 16px;
  pointer-events: none;
}

.icon {
  display: inline-block;
  width: 68px;
  height: 68px;
  margin-right: 12px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.icon img {
  width: 100%;
  height: 100%;

}

.note-text {
  color: #e5e5f5;
  font-size: 1.3em;
  line-height: 1.6;
  text-align: center;
  font-weight: 400;
  position: relative;
  z-index: 1;
  margin: 0;
}

.note-text strong {
  color: #fbbf24;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

@media (max-width: 968px) {
  .note-box {
    padding: 30px 25px;
  }

 .note-text {
        font-size: 1.1em;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

  .icon {
    width: 56px;
    height: 56px;
    margin-right: 8px;
  }
}

@media (max-width: 600px) {
  .note-box {
    padding: 25px 20px;
  }

 .note-text {
        font-size: 1em;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

  .icon {
    width: 56px;
    height: 56px;
  }
}

.text-section {
  margin: 64px auto;
  max-width: 800px;
}

.text-section h3 {
  text-align: center;
  margin-bottom: 24px;
  color: #fff;
  font-weight: 700;
}

.logo-slider {
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  overflow: hidden;
  position: relative;
}

.logo-slider::before,
.logo-slider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}


.logo-track {
  display: flex;
  gap: 60px;
  animation: scroll 30s linear infinite;
  width: fit-content;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-item {
  flex-shrink: 0;
  width: 220px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-item:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  text-align: center;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {


  .logo-item {
    width: 140px;
    height: 80px;
  }

  .logo-track {
    gap: 40px;
  }
}

.faq-container {
  max-width: 800px;
  margin: 64px auto;
}


.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}



.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: transparent;

}



.faq-question h3 {
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  padding-right: 20px;
}

.faq-icon {
  font-size: 1.5em;
  color: #fff;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;

}

.faq-item.active .faq-answer {
  max-height: 100%;
  padding: 24px 32px 24px 32px;
  border-top: 1px solid #ffffff40;
}

.faq-answer p {
  color: #fff;
  line-height: 1.8;
  font-size: 1em;
}

/* Responsive */
@media (max-width: 768px) {
.faq-container, .text-section {
  margin: 48px auto;
}

  .faq-question {
    padding: 20px;
  }

  .faq-question h3 {
    font-size: 18px;
  }

  .faq-item.active .faq-answer {
    padding: 20px;
  }
}





.preview {
  margin-top: 90px;
}
.preview-container.open {
 width: 400px;
 min-height: 480px;
  margin: 30px auto 0;
  display: block;
}

.preview-container.open .preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  border-radius: 20px;
  margin-bottom: 20px;

}

.preview-container.open .upload-btn {
  width: 100%;
  padding: 14px;
  background: rgba(96, 165, 250, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 15px;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.upload-btn:hover {
  background: rgba(96, 165, 250, 0.3);
}


.gallery {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.gallery-item {
cursor: pointer;
border-radius: 16px;
overflow: hidden;
transition: transform 0.3s ease;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
flex-direction: column;
}

.gallery-item .match {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  padding: 8px 16px;
  text-align: center;
  top: 4px;
  left: 4px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  z-index: 10;
  pointer-events: none;
}

.gallery-item .match.full-w {
  top: 4px;
  left: 4px;
  right: 4px;

}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery .gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
  aspect-ratio: 16/9;
}
.gallery.of .gallery-item img {
  aspect-ratio: 1/1;
}
.gallery.cam .gallery-item img {
  aspect-ratio: 4/3;
}
.gallery-item .name {
  padding: 12px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
}
.gallery-item .name .match-percentage {
  color: #00ff77;
}
.listing {
  margin: 0 0 64px 0;
  
}

.listing h2 img {
  width: 52px;
  height: 52px;
}

.listing h2 {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 52px;
  line-height: 1.1;
  justify-content: center;
}
@media (max-width: 480px) {
  .preview-container.open {
 width: 260px;
 min-height: 400px;
}

#loading {
  padding: 12px;
  width: 26px;
  height: 26px;
}
}
  @media (min-width: 861px) {
.gallery-item {
    width: calc(33% - 8px);
}
}
  @media (min-width: 480px) and (max-width: 860px) {
.gallery-item {
    width: calc(50% - 8px);
}
}

.error {
text-align: center;
    padding: 12px 16px;
    border: 1px solid #c10000;
    color: #df0909;
    border-radius: 12px;
    display: block;
    margin: 12px auto;
    background: #ff000021;
}

.not-found-heading {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 16px;
    color: #fff;
    line-height: 1.2;
}

.error-message-text {
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 24px;
    color: #ff6b6b;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .not-found-heading {
        font-size: 36px;
    }
    
    .error-message-text {
        font-size: 16px;
    }
}
#loading {
    display: block;
    width: 35px;
    height: 35px;
    border: 3px solid #01aef0;
    border-radius: 50%;
    border-top-color: #f5f5f5;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
    margin: 16px auto;
    z-index: -1;
    position: relative;
}

#loading[data-queue]::after {
    content: "#" attr(data-queue);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #01aef0;
    animation: none;
}

.loading-message {
    text-align: center;
    color: #d4d4f0;
    font-size: 14px;
    margin: 12px auto 0;
    font-weight: 500;
}
@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
    }
}
/* Responsive */
@media (max-width: 768px) {
  .preview {
  margin-top: 80px;
}
  .gallery-item .match {
    padding: 8px 12px;
    font-size: 14px;
  }
.listing {
  margin: 0 0 24px 0;
}
  .listing h2 {
    margin-bottom: 24px;
    font-size: 36px;

  }
  .listing h2 img {
    width: 40px;
    height: 40px;
}

  .gallery-item .name {
    font-size: 15px;

  }
}

@media (max-width: 480px) {
  .gallery-item {
    width: 100%;
  }
}

.button {
  width: max-content;
  margin: 24px auto;
  padding: 14px 24px;
  background: rgba(96, 165, 250, 1);
  border-radius: 32px;
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  display: block;
  text-transform: uppercase;
  transition: all .2s;
}
.button:hover {
  background: rgb(74 153 250);
}

.gallery-item .wrap {
  position: relative;
}

.gallery-item .price {
  position: absolute;
  bottom: 0;
  right: 0;
  border-top-left-radius: 8px;
  background-color: #01aef0;
  padding: 4px 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}


        footer {
            color: white;
            padding: 30px 20px;
            margin-top: 32px;
        }

        .footer-content {
            max-width: 1440px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }
.footer-content .page-links a {
  color: #fff;
  margin: 0 4px;
}

        .copyright {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.95em;
        }

        .social-links {
            display: flex;
            gap: 20px;
        }

        .social-links a {
            color: white;
            font-size: 1.5em;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
        }

        .social-links a:hover {
            background: rgba(96, 165, 250, 1);
            transform: translateY(-3px);
        }

        /* Responsive */
        @media (max-width: 768px) {

        footer {
            padding: 30px 16px;
        }
            .footer-content {
                flex-direction: column;
                text-align: center;
            }

            .copyright {
                font-size: 0.85em;
            }
        }



 
    /* Popup container styling */
    #agreementPopup {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(8, 1, 26, 0.8);;
        z-index: 1000;
        overflow: hidden;
    }
    
    .popup-content {
        background-color: rgba(8, 1, 26);
        color: white;
        margin: 5% auto;
        padding: 30px;
        width: 80%;
        max-width: 800px;
        height: 80%;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        position: relative;
        display: flex;
        flex-direction: column;
        border: 2px solid #f5f5f5;
      
    }
    
    .popup-content .close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        font-size: 28px;
        font-weight: bold;
        color: white;
        cursor: pointer;
    }
    .popup-content .close-btn:before,   .popup-content .close-btn:after {
        display: none;
    }

    .popup-content .close-btn:hover {
        color: #ccc;
    }
    .popup-content h1,  .popup-content h2,  .popup-content li,  .popup-content p,  .popup-content span {
        color: #fff;
    }

 
    .popup-content p, .popup-content li {
      word-wrap: break-word;
      white-space: normal;
      max-width: 100%;
      line-break: auto;
    }
    @media (max-width: 640px) {
      .popup-content {
        width: 92%;
        padding: 20px;
      }
      .popup-content h2 {
        font-size: 28px;
        line-height: 33px;
    }
    .button-container label {
      font-size: 14px;
  }
  .popup-content p, .popup-content li {
    font-size: 16px;
    word-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    line-break: auto;
  }
    }

      .warning {
        font-weight: 400;
        text-align: center;
        margin-top: 10px;
        margin-bottom: 0;
        color: red!important;
    }
    
    .scrollable-content {
        flex: 1;
        overflow-y: auto;
        padding-right: 10px;
        margin-bottom: 20px;
    }

    .button-container {
        margin-top: auto;
        padding-top: 20px;
        border-top: 1px solid #333;
        flex-shrink: 0;
    }
    .button-container .button-group {
        display: flex;
        flex-direction: row;
        gap: 8px;
        justify-content: center;
        margin: 16px 0 8px 0;
    }
    .button-container .button-group button {
        height: 45px;
        margin: 0;
        cursor: pointer;

    }
    .button-container label {
        text-align: center;
        display: block;
    }
    .button-container input {
        width: 22px;
height: 22px;
vertical-align: bottom;
margin-right: 4px;
    }
    .button-container .button-group button.agree-btn-close {
        width: 35%;
        background-color: #fff;
        text-transform: uppercase;
        color: #000;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 32px;
        opacity: 0.8;
        transition: all .2s;
        border: none;
    }
    .button-container .button-group button.agree-btn-close:hover {
        opacity: 1;
    }
    .button-container .button-group button.agree-btn {
        width: 50%;
        background-color: rgba(96, 165, 250);
        text-transform: uppercase;
        color: #fff;
        display: flex;
        font-weight: bold;
        align-items: center;
        justify-content: center;
        border-radius: 32px;
        transition: all .2s;
        border: none;
    }
    .button-container .button-group button.agree-btn:hover {
        background-color: rgb(74 153 250);
    }
    .button-container p.warning {
        font-size: 12px;
        line-height: 17px;
    }

/* ==================== HEADER ACTIONS ==================== */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.header-btn {
    color: #01aef0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    display: block;
    border: none;
    margin-top: 12px;
    background-color: transparent;
}
#shareBtn {
    margin-left: 32px;
}
#shareBtn img {
  width: 24px;
  height: 24px;

}
.header-btn:hover {
    text-decoration: underline;
}

/* ==================== SEARCH HISTORY MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
        background: #27203c;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background: #f1f5f9;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.history-item:hover {
    background: rgb(25 19 47);
}

.history-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.history-info {
    flex: 1;
}

.history-name {
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.history-date {
    font-size: 12px;
    color: #fff;
    margin-bottom: 2px;
}

.history-results {
    font-size: 12px;
    color: #059669;
    font-weight: 500;
}

.delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc2626;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.delete-btn:hover {
    background: #b91c1c;
}

.clear-all-btn {
    width: 100%;
    background: #dc2626;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 16px;
    transition: background-color 0.2s;
}

.clear-all-btn:hover {
    background: #b91c1c;
}

/* ==================== LOADING SPINNER ==================== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #206bc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading {
    text-align: center;
    padding: 20px;
    display: none;
}

#loading p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
}

/* ==================== ERROR STYLES ==================== */
.error {
    display: block;
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    border: 1px solid #fecaca;
    font-size: 14px;
}

section.page  .container {
            padding-top: 116px;
            padding-bottom: 64px;
        }
       section.page h1 {
            color: #fff;
           text-align: left;
            padding-bottom: 10px;
            margin-bottom: 30px;
        }
       section.page h2 {
            color: #fff;
            margin-top: 30px;
            margin-bottom: 15px;
            font-size: 1.4em;
            text-align: left;
        }
  

      section.page  ul {
            margin: 15px 0;
            padding-left: 30px;
        }
       section.page li {
            margin: 8px 0;
            color: #fff;
             font-size: 16px;
             list-style: disc inside;
        }

       section.page p {
            margin: 15px 0;
            text-align: left;
            color: #fff;
            font-size: 16px;
        }

        #rateLimitOverlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(5, 9, 20, 1);
    z-index: 10000;
    padding: 24px;
    backdrop-filter: blur(100px);
}

#rateLimitOverlay .rate-limit-card {
    background: rgba(14, 23, 47, 0.95);
    border: 1px solid rgba(1, 174, 240, 0.25);
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 32px 28px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 18px 60px rgba(1, 174, 240, 0.15);
}

#rateLimitOverlay .rate-limit-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: #01aef0;
}

#rateLimitOverlay .rate-limit-title {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #ffffff;
}

#rateLimitOverlay .rate-limit-text {
    margin-bottom: 16px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

#rateLimitOverlay .rate-limit-countdown {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 18px;
}

#rateLimitOverlay .rate-limit-progress-wrapper {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(1, 174, 240, 0.2);
    overflow: hidden;
    margin-bottom: 16px;
}

#rateLimitOverlay .rate-limit-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #01aef0 0%, #1ed2ff 100%);
    transition: width 0.35s ease;
}

#rateLimitOverlay .rate-limit-subtext {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}