:root {
  --server-bg: linear-gradient(180deg, #f5faff 0%, #e6f1ff 100%);
  --server-text: #091b4a;
  --server-muted: #5a6b94;
  --server-accent: #00c4a7;
  --server-border: #00247351;
  --server-card-bg: #ffffff;
  --server-shadow: 0 25px 60px rgba(8, 36, 88, 0.04);
  --bs-white-rgb: 255, 255, 255;
}

/* =========================
   SECTION / HERO
========================= */
.server-showcase {
  padding: 80px 0 90px;
}

.server-showcase__hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.server-card:hover {
  box-shadow: var(--server-shadow);
}

.server-showcase__hero-text {
  text-align: center;
}

.server-showcase__eyebrow {
  display: inline-flex;
  padding: 8px 22px;
  border-radius: 999px;
  background: rgba(9, 27, 74, 0.08);
  color: var(--server-text);
  font-weight: 600;
  letter-spacing: .2em;
  font-size: .75rem;
}

.server-showcase__title {
  font-size: 2.8rem;
  color: var(--server-text);
  font-weight: 700;
  margin: 18px 0 12px;
}

.server-showcase__subtitle {
  color: var(--server-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 22px;
}

.server-showcase__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.server-showcase__pills span {
  background: rgba(0, 196, 167, 0.12);
  border: 1px solid rgba(0, 196, 167, 0.3);
  color: var(--server-text);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
}

.server-showcase__hero-visual {
  height: auto;
  display: block;
  width: 100%;
}

/* =========================
   FILTER BAR
========================= */
.server-showcase__filter-bar {
  display: grid;
  gap: 20px;
  margin: 0 auto 50px;
  /* ✅ ortala */
  width: 100%;
  /* ✅ tam genişlik */
  justify-items: center;
  /* ✅ toggle + filters ortada */
}



.server-toggle {
  display: inline-flex;
  border: 1px solid var(--server-border);
  border-radius: 999px;
  padding: 4px;
  background: #f3f6ff;
  box-shadow: inset 0 10px 20px rgba(9, 27, 74, 0.05);
  width: fit-content;
  justify-self: center;
  /* grid içinde ortala */
}

.server-toggle__btn {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--server-muted);
  transition: all .2s ease;
  cursor: pointer;
}

.server-toggle__btn.is-active {
  background: linear-gradient(135deg, #1b5bff, #5f8bff);
  color: #fff;
  box-shadow: 0 10px 20px rgba(27, 91, 255, 0.35);
}

.server-filters {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  /* büyük ekranda 4 yan yana */
  gap: 14px;
  flex: 1;
  justify-content: start !important;

}

.server-dropdown {
  position: relative;
  width: 100%;
}

.server-dropdown__toggle {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--server-border);
  background: #f8fbff;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--server-text);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
  align-items: center;
}

.server-dropdown__toggle i:last-child {
  color: var(--server-muted);
  font-size: .85rem;
}

.server-dropdown__toggle:hover {
  border-color: #8eaef7;
  box-shadow: 0 5px 15px rgba(8, 36, 88, 0.12);
}

.server-dropdown__icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(10, 74, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a4aff;
  flex-shrink: 0;
}

.server-dropdown__value {
  flex: 1;
  text-align: left;
  font-size: 14px;
}

.server-dropdown__panel {
  position: absolute;
  z-index: 10;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--server-border);
  box-shadow: var(--server-shadow);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}

.server-dropdown.is-open .server-dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.server-dropdown__search input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--server-border);
  padding: 10px 14px;
  font-size: .9rem;
  margin-bottom: 12px;
}

.server-dropdown__options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
}

.server-dropdown__option {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 12px;
  cursor: pointer;
  font-size: .95rem;
  color: var(--server-text);
  transition: background .2s ease, color .2s ease;
  text-align: left;
}

.server-dropdown__option--header {
  font-weight: 700;
  cursor: default;
}

.server-dropdown__option:not(.server-dropdown__option--header):hover {
  background: rgba(27, 91, 255, 0.12);
  color: #1b5bff;
}

.server-option-flag {
  width: 28px;
  height: 18px;
  border-radius: 6px;
  overflow: hidden;
  display: inline-flex;
  box-shadow: 0 6px 12px rgba(9, 27, 74, 0.15);
}

.server-option-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   PLANS WRAPPER
========================= */
.server-showcase__plans {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.server-plan-group {
  display: none;
  flex-direction: column;
  gap: 45px;
}

.server-plan-group.is-active {
  display: flex;
}

.server-plan-group__desktop {
  display: flex;
  flex-direction: column;
  gap: 45px;
}

.server-plan-group__mobile {
  display: none;
}

/* =========================
   CARD (BASE)
========================= */
.server-card {
  background: var(--server-card-bg);
  border: 1px solid var(--server-border);
  box-shadow: var(--server-shadow);
  border-radius: 10px;
  padding: 12px;
  position: relative;
  overflow: visible;
}

.server-card--highlight {
  border-color: #0d3eb8;
}

/* Header label */
.server-card__header {
  position: absolute;
  bottom: 100%;
  left: 18px;
  background: #fff;
  border: 1px solid var(--server-border);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.server-card--highlight .server-card__header {
  border-color: #0d3eb8;
}

.server-card__header-inner {
  display: inline-block;
  padding: 5px 11px 0px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--server-text);
  letter-spacing: .14em;
}

/* smooth join */
.server-card__header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: #fff;
}

.server-card__header--right {
  left: auto;
  right: 18px;
}

.server-showcase .container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.server-card__header-inner--coupon {
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.server-card__coupon-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--server-text);
  text-transform: none;
}

.server-card__coupon-code {
  font-weight: 800;
  color: var(--theme-primary);
  margin-left: 4px;
}

.server-card__coupon-mobile {
  display: none;
  margin: 0 0 10px;
  padding: 8px 18px;
  border: 1px dashed #ffc14f;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;

  color: #ffc107;
  background: #ffffff;
  gap: 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 0 0 5px #fff3cd;
}

.server-card__coupon-mobile-label {
  text-transform: none;
  font-weight: 600;
}

.server-card__coupon-mobile-code {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
}

/* ribbon badge */
.server-card__badge {
  --bs-ribbon-border-radius: var(--bs-border-radius);
  --bs-ribbon-border-color: var(--theme-primary);
  --bs-ribbon-bg-color: var(--theme-primary);
  --bs-ribbon-color: #fff;
  position: absolute;
  left: -4px;
  bottom: 12px;
  ;
  box-shadow: 0 7px 12px rgba(9, 27, 74, 0.2);
  z-index: 1;
  padding: .25rem .75rem;
  font-size: .625rem;
  font-weight: 600;
  line-height: 1;
  color: var(--bs-ribbon-color);
  text-transform: uppercase;
  background: var(--bs-ribbon-bg-color);
  border-color: var(--bs-ribbon-border-color);
  border-radius: var(--bs-ribbon-border-radius) var(--bs-ribbon-border-radius) var(--bs-ribbon-border-radius) 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  min-width: 2rem;
}

.server-card__badge::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-top: 16px solid var(--bs-ribbon-bg-color);
  border-bottom: 16px solid var(--bs-ribbon-bg-color);
  border-right: 16px solid transparent;
  transform: translateX(16px);
}

/* =========================
   BOOTSTRAP-LIKE HORIZONTAL LAYOUT
========================= */
.server-row {
  display: flex;
  align-items: stretch;
}

.server-showcase .server-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* vertical dividers */
.server-showcase .server-col+.server-col {
  border-left: 1px solid rgba(0, 36, 115, 0.18);
}

.server-card__device {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 12px 0px 0px;
}

.server-card__device img {
  max-width: 180px;
  height: auto;
}

.server-card__specs {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.server-card__spec {
  flex: 1;
  text-align: center;
  padding: 30px 0px 30px 0px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.server-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-card__spec-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #00c9b82b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00c9b7;
}

.server-card__spec-icon--flag {
  width: 44px;
  height: 30px;
  border-radius: 6px;
  background: transparent;
  overflow: hidden;
  color: inherit;
}

.server-card__spec-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-item__text span {
  display: block;
  color: var(--server-muted);
  font-size: 14px;
  margin-bottom: 2px;
}

.server-item__text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--server-text);
}

.server-card__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 20px;
  margin-left: 6px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(9, 27, 74, 0.2);
}

.server-card__flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CTA */
.server-card__cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  gap: 6px;
  padding: 0px 0px 0px 12px;
  border-left: 1px solid rgba(0, 36, 115, 0.18);
  flex: 0 0 200px;
}

.server-plan-slider-wrapper {
  position: relative;
  padding: 0 80px 40px;
}

.server-plan-slider {
  padding-bottom: 50px;
  overflow-y: visible;
  /* başlıkların yukarı taşmasına izin ver */
}

.server-plan-slider .swiper-slide {
  height: auto;
}

.server-plan-slider .server-card {
  height: 100%;
}

.server-plan-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--server-text);
  box-shadow: 0 18px 40px rgba(9, 27, 74, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
}

.server-plan-slider-nav-prev {
  left: 18px;
}

.server-plan-slider-nav-next {
  right: 18px;
}

.server-plan-slider-pagination {
  bottom: 0 !important;
}

.server-plan-slider-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    opacity: 1;
    border-radius: 999px;
    background: rgba(11, 47, 128, 0.2);
    transition: width 0.3s ease, background 0.3s ease;

}

.server-plan-slider-pagination .swiper-pagination-bullet-active {
  width: 28px;
  background: #1b7bff;
}



.server-card__price-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.server-card__price-original {
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
  text-decoration: line-through;
  color: var(--server-muted);
  font-size: .9rem;
  line-height: 1;
}

.server-card__price-original-main {
  line-height: 1;
}

.server-card__price-original-fraction {
  font-size: .7em;
  line-height: 1;
  transform: translateY(-0.3em);
}

.server-card__discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  background: rgba(0, 196, 167, 0.14);
  border: 1px solid rgba(0, 196, 167, 0.35);
  color: var(--server-text);
}

.server-card__price-current {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--server-text);
}

.server-card__price-value {
  display: inline-flex;
  align-items: flex-start;
  line-height: 1;
}

.server-card__price-main {
  line-height: 1;
}

.server-card__price-fraction {
  font-size: .55em;
  line-height: 1;
  margin-left: 2px;
}

.server-card__price-sup {
  font-size: .45em;
  line-height: 1;
  margin-left: 4px;
  align-self: flex-start;
}

.server-card__price-period {
  font-size: .9rem;
  font-weight: 500;
  color: var(--server-muted);
  margin-left: 6px;
}

.server-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 1px;
  border-radius: 8px;
  background: #00c9b7;
  color: #fff;
  gap: 4px;
  font-weight: 700;
  width: 100%;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.server-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 20px rgba(10, 74, 255, 0.35);
  color: #fff;
}

/* =========================
   BREAKPOINTS
========================= */

@media (max-width: 992px) {
  .server-card__header--right {
    display: none;
  }

  .server-card__coupon-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
}

/* FILTER BAR responsive */
@media (max-width: 992px) {
  .server-plan-slider-wrapper {
    padding: 0 48px 40px;
  }

  .server-showcase__filter-bar {
    width: 100%;
    max-width: none;
    /* ✅ parent daraltmasın */
    justify-items: stretch;
    /* ✅ içindekiler tam genişlik */
  }

  .server-filters {
    width: 100%;
    max-width: none;
    /* ✅ grid de dar kalmasın */
    margin: 0;
    /* ✅ auto-center kapansın */
    grid-template-columns: 1fr;
    /* ✅ tek kolon -> tam width */
  }

  .server-dropdown,
  .server-dropdown__toggle {
    width: 100%;
  }
}



/* TABLET (<=992): specs 3 kolon + CTA altta */
@media (max-width: 992px) {
  .server-row {
    flex-direction: column;
  }

  .server-showcase .server-col+.server-col {
    border-left: none;
  }

  .server-card__device {
    min-width: 0;
    padding-bottom: 10px;
  }

  .server-card__specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 10px;
  }

  .server-filters {

    grid-template-columns: repeat(2, 1fr);
    /* 2 üstte + 2 altta */
  }

  .server-card__spec:nth-last-child(-n + 3) {
    border-bottom: none;
  }

  .server-card__cta {
    min-width: 0;
    width: 100%;
    align-items: center;
    text-align: center;
    border: none;
  }

  .server-card__price-wrapper {
    justify-content: center;
    flex-wrap: wrap;
  }

  .server-card__btn {
    width: 100%;
  }
}

@media (max-width: 576px) {

  .server-plan-group__desktop {
    display: none;
  }

  .server-plan-group__mobile {
    display: block;
  }

  .server-plan-group__mobile .server-plan-slider {
    padding-top: 30px;
    /* başlıkların sığabileceği boşluk */
    overflow-x: hidden;
    /* yatayda tek kart görünsün */
    overflow-y: visible;
    /* header taşmalarını engelle */
  }

  .server-plan-group__mobile .swiper-slide {
    padding-top: 10px;
    /* header ile slider arasında ekstra boşluk */
  }

  /* 576 altı: 3 kolon / 2 satır + altta CTA */
  .server-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "device  cpu     ram"
      "disk    traffic location"
      "cta     cta     cta";
    gap: 0 !important;
    align-items: stretch;
  }

  /* specs wrapper içeriklerini grid’e sal */
  .server-card__specs {
    display: contents !important;
  }

  /* area eşleştirme */
  .server-card__device {
    grid-area: device;
  }

  .server-card__cta {
    grid-area: cta;
  }

  .server-card__spec:nth-child(1) {
    grid-area: cpu;
  }

  .server-card__spec:nth-child(2) {
    grid-area: ram;
  }

  .server-card__spec:nth-child(3) {
    grid-area: disk;
  }

  .server-card__spec:nth-child(4) {
    grid-area: traffic;
  }

  .server-card__spec:nth-child(5) {
    grid-area: location;
  }

  /* hücre görünümü + dikey çizgiler */
  .server-card__device,
  .server-card__spec {
    border-right: 1px solid rgba(0, 36, 115, 0.18);
    padding: 4px 4px;
    min-width: 0;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  /* her satırın son kolonunda sağ çizgi olmasın */
  .server-card__spec:nth-child(2),
  /* ram (1. satır 3. kolon) */
  .server-card__spec:nth-child(5)

  /* location (2. satır 3. kolon) */
    {
    border-right: none;
  }

  .server-card {
    padding: 12px;
    min-height: 437px;
    justify-content: center;
    display: flex;
  }

  .server-item__text strong {
    font-size: 14px;
  }

  /* resim */
  .server-card__device img {
    max-width: 80px;
    height: auto;
  }

  .server-filters {
    grid-template-columns: 1fr;
    /* tek tek */
  }

  /* ikon + yazı alt alta (görseldeki gibi) */
  .server-item {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* CTA */
  .server-card__cta {
    width: 100%;
    padding: 16px 12px;
    align-items: center;
    text-align: center;
  }

  .server-card__btn {
    width: 100%;
  }

  .server-plan-slider-wrapper {
    padding: 0;
  }

  .server-plan-slider-nav {
    display: none;
  }

  .server-showcase {
    padding: 80px 0 20px;
  }
}


/* =========================
   TABLET (577px - 992px)
   Görseldeki gibi 3 kolon / 2 satır + altta CTA
========================= */
@media (min-width: 577px) and (max-width: 992px) {

  /* Kart iç layout'u grid'e çevir */
  .server-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "device cpu   ram"
      "disk   traffic location"
      "cta    cta    cta";
    gap: 0;
    align-items: stretch;
  }

  .server-showcase .server-col {
    border-right: none;
  }

  /* Device, specs wrapper ve cta'nın yerleşimi */
  .server-card__device {
    grid-area: device;
  }

  .server-card__cta {
    grid-area: cta;
  }

  /* Specs wrapper artık bir “kutu” olmasın, içindeki .spec’leri grid’e sok */
  .server-card__specs {
    display: contents;
    border: 0;
    margin: 0;
  }





  .server-card__price-wrapper {
    justify-content: center;
    flex-wrap: wrap;
  }

  .server-card__btn {
    width: 100%;
    max-width: 520px;
  }

  /* Spec'leri görseldeki yerlere koy (sıra önemli) */
  .server-card__spec:nth-child(1) {
    grid-area: cpu;
  }

  .server-card__spec:nth-child(2) {
    grid-area: ram;
  }

  .server-card__spec:nth-child(3) {
    grid-area: disk;
  }

  .server-card__spec:nth-child(4) {
    grid-area: traffic;
  }

  .server-card__spec:nth-child(5) {
    grid-area: location;
  }




  .server-showcase .server-col+.server-col {
    border-left: none;
  }
}

@media (max-width: 1125px) and (min-width: 992px) {
  .server-item {
    display: flex;
    flex-direction: column;
    /* ALT ALTA */
    align-items: center;
    /* yatay ortalama */
    justify-content: center;
    /* dikey ortalama */
    gap: 6px;
    /* ikon–yazı arası boşluk */
    text-align: center;
  }

  .server-item__text {
    align-items: center;
  }

  .server-showcase .server-col {
    justify-content: center;
  }

}