/* main.css — Arctic style overrides & rating list */

.showDesc {
  cursor: pointer;
  color: #9ca3af;
  text-align: center;
  border: 1px solid #e5e7eb;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  transition: color .15s, border-color .15s;
}
.showDesc:hover { color: #111827; border-color: #111827; }

.detectLang {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 16px;
  border-radius: 6px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}
@media (max-width: 760px) { .detectLang { flex-direction: column; } }
.otherLang { color: #4f46e5; }
.otherLangBut {
  background: #4f46e5;
  padding: 8px 16px;
  border-radius: 6px;
  color: #fff;
  font-weight: 500;
  margin-left: 10px;
  font-size: 14px;
}
.otherLangBut:hover { background: #4338ca; color: #fff; }
@media (max-width: 760px) { .otherLangBut { margin-top: 10px; width: 100%; margin-left: 0; } }

ul.ratingList {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0;
  margin: 6px 0 0;
  scrollbar-width: none;
}
ul.ratingList::-webkit-scrollbar { display: none; }
ul.ratingList li {
  list-style: none;
  font-size: 12px;
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
  margin-right: 4px;
  margin-bottom: 4px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
}
ul.ratingList li img.imgPay { max-width: 15px; margin-right: 3px; }

.blockFilter {
  width: 100%;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 18px;
  border-radius: 10px;
  text-align: center;
}
.selectFilter { display: flex; align-items: center; }
.blockFilter select {
  width: 20%;
  border-radius: 6px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  margin: 1.5% 2.5%;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.blockFilter select:hover, .blockFilter select:focus { border-color: #4f46e5; outline: none; }
#showBlockFilter { position: relative; }
.langCheckbox { margin: 0 2.7%; cursor: pointer; position: absolute; right: 0; }
.langCheckbox input, .langCheckbox label { cursor: pointer; }
.blockFilter button {
  background: #4f46e5;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  border: 0;
  margin-top: 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
}
.blockFilter button:hover { background: #4338ca; }

.countProxyBlock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}
.countProxyBlock h2 {
  margin-bottom: 0; margin-top: 0;
  color: #9ca3af;
  font-size: calc(1rem + .7vw);
  max-width: 75%;
  margin-right: .8em;
}

.blockInteg {
  max-width: 40%;
  position: relative;
  white-space: nowrap;
  overflow-x: auto;
  overflow: hidden;
}
.blockInteg a { padding: 0 10px; color: #9ca3af; border-right: 1px solid #e5e7eb; text-decoration: underline; font-size: 13px; }
.blockInteg a:hover { color: #4f46e5; }
.blockInteg a:last-child { border-right: 0; }

/* Loading dots */
#fountainG { position: relative; width: 234px; height: 28px; margin: auto; }
.fountainG {
  position: absolute; top: 0;
  background: #4f46e5;
  width: 28px; height: 28px;
  animation: bounce_fountainG 1.5s infinite normal;
  transform: scale(.3);
  border-radius: 50%;
}
#fountainG_1 { left:   0; animation-delay: .60s; }
#fountainG_2 { left:  29px; animation-delay: .75s; }
#fountainG_3 { left:  58px; animation-delay: .90s; }
#fountainG_4 { left:  88px; animation-delay:1.05s; }
#fountainG_5 { left: 117px; animation-delay:1.20s; }
#fountainG_6 { left: 146px; animation-delay:1.35s; }
#fountainG_7 { left: 175px; animation-delay:1.50s; }
#fountainG_8 { left: 205px; animation-delay:1.64s; }
@keyframes bounce_fountainG {
  0%   { transform: scale(1);  background: #4f46e5; }
  100% { transform: scale(.3); background: #e5e7eb; }
}

#resetFilter { display: block; margin-top: 12px; font-size: 13px; color: #9ca3af; cursor: pointer; }
#resetFilter:hover { color: #111827; }

.titleAndPartner { display: flex; justify-content: space-between; align-items: center; }
.switchContents { display: flex; align-items: center; }
.switchContentsBlock { padding-right: 10px; margin-left: 10px; }
.switchContentsBlock:first-child { border-right: 1px solid #e5e7eb; }
.switchContents input { display: none; }
.switchContents input:checked + label { border-bottom: 2px solid #4f46e5; cursor: default; }
.switchContents label { display: inline-block; margin: 0 .2em; cursor: pointer; }
.switchContents label:hover { border-bottom: 2px solid #111827; }
.icon-settings { font-weight: 600; padding: 5px; border-radius: 6px; border: 1px solid #e5e7eb; }

@media (max-width: 760px) {
  .langCheckbox { margin: 2.5% 2.7%; position: relative; display: block; }
  .blockFilter { padding: 12px; }
  .selectFilter { flex-direction: column; align-items: center; }
  .blockFilter select { width: 100%; margin: 5px 0; background: #fff; }
  .countProxyBlock { flex-direction: column; margin-top: 0; padding: 0 10px; }
  .blockInteg { max-width: 100%; margin: 8px 0; }
  .titleAndPartner { flex-direction: column; align-items: flex-start; }
  .titleAndPartner h1 { margin-top: 10px; }
  .titleAndPartner .blockInteg { margin-bottom: 12px; }
  .countProxyBlock .noneDesc { float: right; position: absolute; right: .7em; }
  .countProxyBlock { display: flex; margin-top: 16px; flex-direction: column; align-items: flex-start; }
  .switchContents { text-align: center; width: 100%; align-items: stretch; }
  .switchContentsBlock { width: 50%; margin: 8px 0; display: flex; flex-direction: column; justify-content: center; }
  .switchContents label {
    margin: 3px 5px; background: #f3f4f6; padding: 6px;
    width: 100%; min-height: 50%; height: 100%;
    display: flex; align-items: center; justify-content: center;
  }
  .switchContents input:checked + label { border-bottom: 0; background: #eef2ff; }
}

/* Tooltip */
.pPrice { position: relative; margin: .6rem 0; font-size: 115%; display: flex; align-items: center; }
.pPrice b { margin-left: 4px; }
.tooltipInfo { position: initial; display: inline-block; cursor: pointer; text-decoration: underline dotted; padding: 0 6px; font-size: 13px; }
.tooltipInfo .tooltiptextInfo {
  visibility: hidden; width: 260px;
  background: #111827; color: #fff;
  padding: 10px 12px; border-radius: 6px;
  position: absolute; z-index: 100000;
  bottom: 100%; left: 0; font-size: 13px;
}
.tooltipInfo:hover .tooltiptextInfo { visibility: visible; }
@media (max-width: 760px) {
  .noneMobile { display: none; }
  .blockFilter h2 { color: #4b5563; margin: 0 8px; display: flex; align-items: center; justify-content: space-between; font-size: calc(1rem + .7vw); }
  .tooltipInfo .tooltiptextInfo { width: 230px; left: -10px; }
}
@media (min-width: 760px) { .noneDesc { display: none; overflow: hidden; } }

/* Lite view */
.liteV { display: flex; align-items: center; border-bottom: 1px solid #e5e7eb; margin: 0 4%; }
.liteV:last-child { border-bottom: 0; }
.liteV div { position: relative; margin: 4px 8px; }
.liteBlockOne { display: flex; align-items: center; width: 50%; }
.liteLogo { width: 15%; max-width: 48px; }
.liteBlockOneOne { display: flex; align-items: center; width: 85%; }
.liteTitle { width: 60%; display: flex; align-items: center; }
.liteTitle h3 { font-size: 19px; width: 70%; }
.liteRate { width: 40%; }
.liteBlockTwo { display: flex; align-items: center; width: 30%; }
.litePrice { width: 40%; }
.liteCoupon { width: 60%; }
.liteSite { width: 20%; text-align: right; }
.liteV .average-rate:before { content: '★' !important; }
.liteV .average-rate { font-size: 15px !important; }
.liteV .service-name-rate-val { font-size: 19px; }

@media (max-width: 1180px) { .liteV { margin: 0; } }
@media (max-width: 998px) {
  .liteV div { margin: 2px; }
  .liteBlockTwo { width: 20%; flex-direction: column; align-items: flex-start; }
  .litePrice, .liteCoupon { width: 100%; }
  .liteBlockOne { width: 60%; }
}
@media (max-width: 748px) {
  .liteV { flex-direction: column; padding-bottom: 10px; margin-bottom: 10px; }
  .liteSite, .liteBlockOne, .liteBlockTwo, .liteRate { width: 100%; }
  .liteSite { display: flex; }
  .liteBlockTwo { flex-direction: row; align-items: center; }
  .liteBlockOneOne { flex-direction: column; align-items: flex-start; width: 100%; }
  .liteTitle { width: 100%; justify-content: flex-start; align-items: flex-start; }
  .liteTitle h3 { font-size: 16px; width: auto; }
  .liteLogo { width: auto; max-width: 52px; margin-right: 7px !important; }
  .liteSite .but-go { background: #fff; box-shadow: none; color: #111827; border: 1px solid #e5e7eb; padding: 5px; margin: 0 10px; font-size: 13px; }
  .liteTitle .service-name-title-founded { font-size: 15px; }
  .tooltipCoupon { left: -150px !important; }
}

/* RTL lite */
.right-imp .switchContentsBlock:first-child { border-right: 0; border-left: 2px solid #e5e7eb; }
.right-imp .switchContentsBlock { padding-right: 0; margin-left: 0; padding-left: 10px; margin-right: 10px; }
.right-imp .average-rate { transform: scale(-1,1); }
.right-imp .pPrice b { margin-left: 0; margin-right: 5px; }
.right-imp .liteSite { text-align: left; }
@media (max-width: 748px) { .right-imp .tooltipCoupon { left: auto; right: -150px !important; } }
@media (max-width: 760px) {
  .right-imp .tooltipInfo .tooltiptextInfo { left: auto; right: -10px; }
  .right-imp .countProxyBlock .noneDesc { right: auto; left: .7em; }
  .right-imp .switchContentsBlock { margin-right: 0; }
}
.right-imp .proxy-type-description { text-align: right; }

/* Premium */
.list-rating-premium { background: #fffbeb; border: 1px solid #fde68a; }
.list-rating-premium .service-position-rating { font-weight: 800; color: #ea580c; }
@media (min-width: 1024px) {
  .list-rating-premium .service-function-right { border: 1px solid #fde68a; }
  .list-rating-premium .service-block-footer { background: #fffbeb; border-top: 1px solid #fde68a; }
}
.list-rating-premium ul.ratingList li, .list-rating-premium .showDesc { border: 1px solid #fde68a; }
.list-rating-premium .service-button-go-footer, .list-rating-premium .service-block-footer { background: #fffbeb; }
.list-rating-premium .service-function-right { border: 1px solid #fde68a; }
@media (max-width: 1024px) {
  .list-rating-premium .service-info-footer a { background: #fffbeb; border: 1px solid #fde68a; box-shadow: none; }
}

.sectionRatingType { transition: opacity .3s ease, filter .3s ease; min-height: 600px; }
.section-loading { opacity: .3; filter: blur(3px); pointer-events: none; }

/* Type block */
.proxy-type-block-main { background: #f9fafb; border-bottom: 1px solid #e5e7eb; margin-bottom: 28px; padding: 28px 0; }
.proxy-type-block { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.proxy-type-content { flex: 1.2; margin: 18px 0 0; }
.proxy-type-title { font-size: 2.1rem; margin-bottom: 10px; margin-top: 0; }
.proxy-type-description { font-size: .95rem; line-height: 1.6; text-align: left; }
.proxy-type-image { flex: 1; text-align: right; margin: 18px 0; }
.proxy-type-image img { max-width: 100%; }
.selectFilter select { cursor: pointer; padding: 9px 10px; border-radius: 6px; width: 33%; margin-right: 3%; border: 1px solid #e5e7eb; background: #fff; font-size: 14px; }

@media (max-width: 768px) {
  .proxy-type-block-main { padding: 10px 0; }
  .proxy-type-block { flex-direction: column; text-align: center; }
  .proxy-type-title { font-size: 1.4rem; margin-top: 8px; }
  .proxy-type-image { margin-top: -40px; }
  .proxy-type-description { font-size: .9rem; }
  .selectFilter select { margin: 8px; width: 100%; }
  #showBlockSort { width: 100%; margin-top: 8px; }
  .sectionRatingType { padding: 0; }
  .highlight-block { animation: highlightAnim 2.5s ease; }
  @keyframes highlightAnim { 0% { background: #fef9c3; } 100% { background: #fff; } }
}

.listServiceGridType { grid-template-columns: 1fr 1fr 1fr; }
.borderGridListType { display: flex; align-items: center; justify-content: center; padding: 10px; color: #111827; font-weight: 700; text-align: center; font-size: 17px; }
@media (max-width: 798px) { .listServiceGridType { grid-template-columns: 1fr; grid-gap: 14px; } }
