﻿.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#offers::-webkit-scrollbar {
  display: none;
}

#offers {
  max-height: 75vh;   
  overflow-y: auto;   
  overflow-x: hidden; 
}

.country-flag-container {
  margin-right: 0.5rem;
}

.group:hover {
  z-index: 50;
  position: relative;
}

[data-tooltip] {
  cursor: help;
}

.js-tooltip {
  position: fixed;
  z-index: 99999;
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: normal;
  max-width: 240px;
  width: max-content;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  transform: translateY(5px);
}

.js-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}


#offers,
#offers .group {
  white-space: normal;  
  word-wrap: break-word; 
  overflow: visible;    
  min-height: 48px;     
}


#banner-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  width: max-content;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

#banner-wrapper {
  width: 100%;
  position: relative;
  justify-content: flex-start;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
  contain: paint;
}



.banner-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.banner-empty {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
}

@keyframes slide-in-left {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.banner-item img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: cover;
  border-radius: 0.25rem;
}

.banner-item .reward {
  color: #4ade80;
  font-weight: 700;
}

.banner-item .country {
  opacity: 0.6;
}


@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoom-in-95 {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.animate-in {
  animation-duration: 200ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: both;
}

.fade-in {
  animation-name: fade-in;
}

.zoom-in-95 {
  animation-name: zoom-in-95;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

#offers-list {
  overscroll-behavior: contain;
  padding-top: 3.5rem;
  margin-top: -3.5rem;
}

.offers-fixed-height {
  height: 540px;
  max-height: 540px;
}

.payout-outline {
  text-shadow: 
    -1.5px -1.5px 0 #000,  
     1.5px -1.5px 0 #000,
    -1.5px  1.5px 0 #000,
     1.5px  1.5px 0 #000,
     0 2px 4px rgba(0,0,0,0.5);
}


.logo-banner {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.05em;
  line-height: 1;
  user-select: none;
}


.logo-main {
  color: #a855f7;
  font-weight: 900;
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.logo-dot {
  color: #ffffff;
  font-weight: 900;
  margin: 0 -0.02em;
}

.logo-app {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}


.rating-s-plus {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.45), inset 0 0 6px rgba(255, 255, 255, 0.22);
  font-weight: 900 !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}


.rating-s {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.4);
}

.rating-a {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.4);
}

.rating-b {
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.4);
}

.rating-c {
  background: rgba(234, 179, 8, 0.2);
  color: #fde047;
  border-color: rgba(234, 179, 8, 0.4);
}

.rating-d {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.rating-e {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
  border-color: rgba(100, 116, 139, 0.4);
}

.rating-f {
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}


body {
  background: radial-gradient(circle at center, #1a0b2e 0%, #050505 100%);
  overflow-x: hidden;
  position: relative;
}

html {
  background-color: #050505;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 40px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 50px 160px, #fff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 90px 40px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 160px 120px, #fff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.15;
  z-index: -2;
  pointer-events: none;
  animation: stars-drift 100s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
  z-index: -3;
  pointer-events: none;
  animation: nebula-drift 60s ease-in-out infinite alternate;
}

@keyframes stars-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-200px); }
}

@keyframes nebula-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(5%, 5%) scale(1.1); }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: 700;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c084fc;
  box-shadow: 0 4px 15px -1px rgba(0, 0, 0, 0.3);
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.btn-primary:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 8px 25px -2px rgba(0, 0, 0, 0.4);
  color: #d8b4fe;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-glow-s-plus {
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.btn-glow-s-plus:hover {
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
  border-color: rgba(168, 85, 247, 0.7);
  background: rgba(168, 85, 247, 0.1);
  color: #d8b4fe;
}

.banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(192, 132, 252, 0.55);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.24), rgba(15, 23, 42, 0.18));
  color: #f5e8ff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.banner-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 180, 254, 0.8);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.34), rgba(30, 41, 59, 0.22));
  box-shadow: 0 0 22px rgba(192, 132, 252, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.banner-cta:active {
  transform: translateY(0);
}

.banner-cta:focus-visible {
  outline: 2px solid rgba(216, 180, 254, 0.9);
  outline-offset: 2px;
}

.cta-text-glow {
  color: #d8b4fe;
  text-shadow: 0 0 14px rgba(168, 85, 247, 0.75), 0 0 28px rgba(168, 85, 247, 0.45);
}

.cta-text-glow:hover {
  color: #f5e8ff;
  text-shadow: 0 0 18px rgba(192, 132, 252, 0.95), 0 0 34px rgba(168, 85, 247, 0.6);
}

footer a {
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  opacity: 0.3;
}

footer a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


.loader-container {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: loader-spin 2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring:nth-child(2) {
  width: 75%;
  height: 75%;
  border-top-color: #FFFFFF;
  animation-duration: 1.5s;
  animation-direction: reverse;
}

.loader-ring:nth-child(3) {
  width: 50%;
  height: 50%;
  border-top-color: #FFFFFF;
  animation-duration: 1s;
}

.loader-core {
  width: 15%;
  height: 15%;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.2);
  animation: loader-pulse 1.5s ease-in-out infinite;
}

@keyframes loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 1; }
}


@keyframes expand-reveal {
  from {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-expand {
  animation: expand-reveal 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.sort-input-wrap {
  position: relative;
}

.sort-caret-wrap {
  position: absolute;
  right: 1rem;
  top: calc(50% - 1px);
  transform: translateY(-50%);
  z-index: 2;
}


.offer-promo-mobile {
  display: none;
}


.sort-input {
  padding-right: 2.8rem;
}


.filter-input-icon {
  width: 1.25rem;
  justify-content: center;
}

.filter-input-with-icon {
  padding-left: 3.25rem !important;
}


#country-results {
  background-color: #0f172a !important;
  opacity: 1 !important;
  z-index: 260 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

#country-results-list {
  background-color: #0f172a;
  max-height: 11rem !important;
  overflow-y: auto !important;
}

#country-results-list .country-option {
  background-color: #0f172a;
}

#country-results-list .country-option:hover {
  background-color: #1e293b !important;
}

#sort-caret-icon.is-open {
  transform: rotate(180deg);
}

#country-caret-icon.is-open {
  transform: rotate(180deg);
}



@media (max-width: 640px) {
  
  .line-clamp-1,
  .line-clamp-2 {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    text-overflow: initial;
  }

  .banner-item {
    font-size: 0.75rem;
  }

  
  #offer-modal > div:last-child,
  #country-results,
  #sort-results {
    max-width: 90vw;
    max-height: 70vh;
    overflow-y: auto;
    left: 0;
    right: 0;
  }

  #offers-list,
  .offers-fixed-height {
    max-height: 57vh;
    height: 57vh;
    overflow-y: auto;
  }

  .max-w-6xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  
  #offers button {
    min-height: 40px;
  }

  
  .backdrop-blur-sm,
  .backdrop-blur-md,
  .backdrop-blur-xl {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  #banner-wrapper,
  #offers-container,
  #offers .group,
  footer,
  #offer-modal > div:last-child {
    background-color: rgba(15, 23, 42, 0.78) !important;
  }

  #offers .group:hover {
    background-color: rgba(30, 41, 59, 0.82) !important;
  }

  .bg-white\/5 { background-color: rgba(15, 23, 42, 0.58) !important; }
  .bg-white\/10 { background-color: rgba(30, 41, 59, 0.62) !important; }
  .bg-black\/40 { background-color: rgba(2, 6, 23, 0.72) !important; }
  .bg-slate-800\/40 { background-color: rgba(30, 41, 59, 0.8) !important; }

  
  .mobile-filter-row {
    justify-content: flex-start;
    max-width: 27rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    margin-left: auto;
    margin-right: auto;
  }

  .mobile-paired-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    align-items: start;
  }

  .mobile-category-row {
    display: block;
  }

  .mobile-filter-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }

  .mobile-filter-group > span {
    width: 100%;
    text-align: center;
    padding-top: 0;
    margin-bottom: 0.05rem;
  }

  .mobile-rating-group {
    order: 1;
  }

  .mobile-steps-group {
    order: 2;
  }

  .mobile-filter-group #step-filter-wrap,
  .mobile-filter-group #rating-filter-wrap,
  .mobile-filter-group #category-filter-wrap {
    justify-content: center;
  }

  #step-filter-wrap,
  #rating-filter-wrap,
  #category-filter-wrap {
    gap: 0.35rem;
  }

  #step-filter-wrap .step-btn,
  #rating-filter-wrap .rating-btn,
  #category-filter-wrap .category-btn {
    padding: 0.2rem 0.42rem;
    font-size: 9px;
  }

  #step-filter-wrap .step-btn[data-steps="ALL"],
  #rating-filter-wrap .rating-btn[data-rating="ALL"],
  #category-filter-wrap .category-btn[data-category="ALL"] {
    min-width: 3.1rem;
    text-align: center;
  }

  .mobile-category-group {
    gap: 0.4rem;
  }

  .mobile-category-group > span {
    width: 100%;
    text-align: center;
    padding-top: 0;
  }

  .mobile-category-group #category-filter-wrap {
    justify-content: center;
  }

  
  .offer-row {
    gap: 0.45rem;
    padding: 0.5rem 0.6rem;
    min-height: 48px;
  }

  .offer-rank {
    width: 1rem;
    font-size: 11px;
  }

  .offer-thumb {
    width: 1.65rem;
    height: 1.65rem;
  }

  .offer-payout-wrap {
    width: 4.35rem;
  }

  .offer-payout {
    padding: 0.2rem 0.4rem;
    font-size: 1rem;
  }

  .offer-title-row {
    gap: 0.35rem;
  }

  .offer-name {
    font-size: 0.78rem;
  }

  .offer-rating {
    padding: 0.1rem 0.32rem;
    font-size: 9px;
  }

  .offer-description {
    display: none;
  }

  .offer-promo-mobile {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #d8b4fe;
    white-space: normal;
    word-break: break-word;
  }
}


