:root {
  --font-family-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;

  --font-size-2xs: 10px;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  --spacing-1: 4px;
  --spacing-2: 8px;
  --spacing-3: 12px;
  --spacing-4: 16px;
  --spacing-6: 24px;
  --spacing-8: 32px;

  --border-radius-base: 8px;
  --border-radius-md: 12px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;

  --transition-base: 0.2s ease-in-out;

  --primary: #271dd4;
  --primary-alt: #2c21ed;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #1f2937;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

/* ---------------------------------------------------------------- Header */
.header {
  z-index: 1000;
  background-color: #fff;
  position: sticky;
  top: 0;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-4);
  width: 100%;
  height: 64px;
  padding: 12px var(--spacing-4);
  position: relative;
}

.header__logo-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header__logo {
  width: 138px;
  height: 28px;
  cursor: pointer;
  background-image: url("../icons/logo.svg");
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Ana sayfadaki Giriş Yap / Üye Ol barı */
.mobile-auth-bar {
  display: flex;
  gap: var(--spacing-3);
  margin: 0 16px 16px;
  padding: 16px;
  background-color: #f6f5fd;
  border-radius: 16px;
}

.mobile-auth-bar__login,
.mobile-auth-bar__register {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  border-radius: 24px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
}

.mobile-auth-bar__login {
  background-color: #fff;
  color: #212425;
}

.mobile-auth-bar__register {
  background-color: var(--primary);
  color: #fff;
}

/* -------------------------------------------------------------- Servisler */
.main {
  padding: 0 12px;
}

.services-container {
  width: 100%;
  margin-bottom: var(--spacing-4);
}

.services {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-4);
  width: 100%;
  padding: 0;
  background-color: #fff;
  border-bottom: 1px solid #f5f5f5;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 50%;
}

.services::-webkit-scrollbar {
  display: none;
}

.services__list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-8);
  min-width: max-content;
  margin: 0 auto;
  padding: 0 var(--spacing-2);
}

.services__item {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: var(--spacing-3);
  min-width: 80px;
  min-height: 44px;
  padding: var(--spacing-2);
  color: #1f2937;
  background: none;
  border: none;
  cursor: pointer;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: opacity var(--transition-base);
}

.services__item:hover {
  opacity: 0.8;
}

.services__item * {
  pointer-events: none;
}

.services__icon-wrapper {
  position: relative;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 72px;
  height: 72px;
  background-color: #f5f5f5;
  border-radius: var(--spacing-6);
}

.services__item.is-active .services__icon-wrapper {
  background-color: var(--primary);
}

/* Aktif servis başlığı - mor icon wrapper üzerinde okunabilir */
.services__item.is-active .services__title {
  color: var(--primary);
  font-weight: var(--font-weight-bold);
}


.services__icon {
  width: 80px;
  height: 80px;
  max-width: none;
  object-fit: contain;
}

.services__title {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: #1f2937;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

.services__indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 6px;
  background-color: var(--primary);
  border-radius: var(--border-radius-base) var(--border-radius-base) 0 0;
  display: none;
}

.services__item.is-active .services__indicator {
  display: block;
}

/* -------------------------------------------------------- Sorgulama kartı */
.page-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  width: 100%;
}

.query-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 24px;
  background: #f5f5f5;
  border-radius: 24px;
}

.query-card__content {
  display: grid;
  gap: var(--spacing-4);
  width: 100%;
  margin: 0 auto;
}

.query-card__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.query-card__title {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.query-card__subtitle {
  margin: 0;
  color: #212324;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.query-card__tabs {
  display: flex;
  flex-flow: row;
  align-items: center;
  gap: 8px;
  overflow: auto;
  scrollbar-width: none;
}

.query-card__tabs::-webkit-scrollbar {
  display: none;
}

.query-card__tab {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  color: #212324;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--border-radius-full);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.query-card__tab:hover {
  color: var(--primary-alt);
  border-color: var(--primary-alt);
}

.query-card__tab.is-active {
  color: var(--primary);
  background-color: #f3f2ff;
  border-color: var(--primary);
}

.query-card__form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--spacing-1);
  width: 100%;
}

.input-with-button {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.input-with-button__input {
  flex: 1;
  padding: 4px 12px;
  color: #1f2937;
  background: none;
  border: none;
  border-radius: 12px 0 0 12px;
  outline: none;
  font-size: 16px;
  line-height: 1.5;
}

.input-with-button__input::placeholder {
  color: #9ca3af;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-2);
  border: none;
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-normal);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition-base), box-shadow 0.3s ease-in-out;
}

.button--primary {
  color: #fff;
  background-color: var(--primary);
}

.button--md {
  padding: var(--spacing-2) var(--spacing-4);
}

.input-with-button__button {
  flex-shrink: 0;
  margin: 8px;
}

/* ------------------------------------------------------------------- SSS */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  width: 100%;
}

.faq__title {
  margin: 0;
  color: #000;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

.faq__items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.faq__item {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease-in-out;
}

.faq__item.is-open {
  border-color: var(--primary);
}

.faq__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--spacing-4);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.faq__question {
  flex: 1;
  padding-right: var(--spacing-4);
  color: #484848;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
}

.faq__icon {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  background-image: url("../icons/arrow.svg");
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.2s ease-in-out;
}

.faq__item.is-open .faq__icon {
  transform: rotate(90deg);
}

.faq__answer {
  display: none;
  padding: 0 var(--spacing-4) var(--spacing-4);
  color: #484848;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-relaxed);
  white-space: pre-line;
  animation: faq-fade-in 0.3s ease-in-out;
}

.faq__item.is-open .faq__answer {
  display: flex;
  flex-direction: column;
}

.faq__answer a {
  color: var(--primary);
  font-weight: var(--font-weight-bold);
}

@keyframes faq-fade-in {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------- Ana sayfa servis kartları */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-4);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4);
  width: 100%;
  min-height: 100%;
  padding: var(--spacing-6);
  background-color: #f5f5f5;
  border-radius: var(--border-radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
}

.service-card__icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.service-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--spacing-4);
  width: 100%;
}

.service-card__title {
  margin: 0;
  color: #1f2937;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
}

.service-card__description {
  margin: 0;
  color: #212324;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
}

/* ---------------------------------------------------------------- Footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  background-color: #ebf8ff;
}

.footer__stripe {
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #ffb800 0 50%, var(--primary-alt) 50% 100%) 0 0 / 33.333% 100%;
}

.footer__container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
  width: 100%;
  max-width: 100%;
  margin: var(--spacing-8) auto var(--spacing-6);
  padding: 0 var(--spacing-4);
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
  width: 100%;
}

.footer__section {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--spacing-4);
  width: 100%;
}

.footer__logo {
  width: 124px;
  height: 38px;
  background-image: url("../icons/logo.svg");
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
}

.footer__subtitle {
  display: flex;
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-3);
  width: 100%;
  text-align: left;
}

.footer__links li {
  color: #120d5f;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.footer__app-icon {
  width: 120px;
  height: 36px;
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
}

.footer__app-icon--app-store {
  background-image: url("../icons/app-store.svg");
}

.footer__app-icon--google-play {
  background-image: url("../icons/google-play.svg");
}

.footer__app-icon--app-gallery {
  background-image: url("../icons/app-gallery.svg");
}

.footer__bottom {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  background-color: #2c3138;
}

.footer__bottom-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer__bottom-container span,
.footer__bottom-container a {
  color: #fff;
  font-size: 11px;
}

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

.footer__row-logos {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

/* -------------------------------------------------------- Bize Ulaşın (EMEKLİ)
   Tek canlı destek butonu vardır: odeme/ls_widget.php (PTTAVM HGS).
   Eski "Bize Ulaşın" butonu tüm sayfalarda kaldırıldı – çakışma olmasın. */
.support-fab {
  display: none !important;
}

.support-fab__icon {
  display: none;
}

/* --------------------------------------------------------- Bottom navigation */
.tab-bar {
  padding-bottom: 64px;
}

.tab-bar__content {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  width: 100%;
  height: 64px;
  background: #fff;
  border-top: 1px solid #eae9fd;
}

.tab-bar__item {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  height: 100%;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tab-bar__icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 32px;
  background: #fff;
  border-radius: 24px;
}

.tab-bar__icon {
  width: 20px;
  height: 20px;
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
}

.tab-bar__icon--home {
  background-image: url("../icons/home.svg");
}

.tab-bar__icon--favorite {
  background-image: url("../icons/favorite.svg");
}

.tab-bar__icon--basket {
  background-image: url("../icons/basket.svg");
}

.tab-bar__icon--campaign {
  width: 28px;
  height: 28px;
  background-image: url("../icons/campaign.svg");
}

.tab-bar__icon--user {
  background-image: url("../icons/person.svg");
}

.tab-bar__title {
  color: #212324;
  font-size: var(--font-size-2xs);
  font-weight: 700;
  line-height: 10px;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.tab-bar__item.is-active .tab-bar__title {
  color: var(--primary);
}

.tab-bar__item.is-active .tab-bar__icon-container {
  background: #eae9fd;
}