body.app-mobile {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #0d5a9a;
  color: #f8fbff;
  min-height: 100svh;
  display: flex;
  justify-content: center;
}

.app-shell {
  width: min(100%, 420px);
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(8, 68, 126, 0.44), rgba(8, 63, 118, 0.54)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/7/70/Istanbul_Bosphorus_Rumelihisar%C4%B1_%28Rumelian_Castle%29_IMG_7806_1920.jpg/1280px-Istanbul_Bosphorus_Rumelihisar%C4%B1_%28Rumelian_Castle%29_IMG_7806_1920.jpg") center center / cover no-repeat;
}

.app-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}

.app-top {
  position: relative;
  z-index: 1;
  padding: 12px 16px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-top-left, .app-top-right {
  flex: 1;
  font-size: 20px;
  display: flex;
  align-items: center;
}

.app-top-right {
  justify-content: flex-end;
  gap: 10px;
}

.app-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #fff;
}

.app-logo::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  background-image: url("halkbank-logo.png"), url("halkbank-logo.svg");
  background-position: center center, center center;
  background-size: contain, contain;
  background-repeat: no-repeat, no-repeat;
}

.app-lang {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 6px 9px;
  font-weight: 700;
  font-size: 12px;
}

.app-icon-btn {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-icon-svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-main {
  position: relative;
  z-index: 1;
  padding: 6px 16px 112px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-heading {
  margin: 8px 0 16px;
  text-align: center;
  font-size: 36px;
  line-height: 1.2;
  color: #fff;
  text-shadow: none;
}

.app-sub {
  margin: 0 0 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.app-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 72%;
  margin: 8px auto 10px;
}

.app-tab {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 700;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}

.app-tab.active {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.95);
}

.app-form {
  display: grid;
  gap: 12px;
}

.app-field label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.93);
  font-size: 15px;
  font-weight: 700;
}

.app-field input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 15px;
}

.app-field input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.app-field input:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}

.app-primary-btn {
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #0d5a9a;
  font-weight: 800;
  font-size: 34px;
  height: 50px;
}

.app-primary-btn:disabled {
  opacity: 0.7;
}

.app-note-link {
  display: inline-block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.98);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.app-note-link:hover {
  text-decoration: underline;
}

.app-main-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0 8px;
}

.app-main-bottom-link {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.app-loader-ring {
  width: 150px;
  aspect-ratio: 1;
  margin: 8px auto 16px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    #8b8b8b 0deg 39deg,
    #f3f3f3 39deg 45deg
  );
  -webkit-mask: radial-gradient(circle, transparent 33%, #000 34%);
  mask: radial-gradient(circle, transparent 33%, #000 34%);
  animation: app-spin 1.25s linear infinite;
}

@keyframes app-spin {
  to { transform: rotate(360deg); }
}

.app-success-icon {
  width: 124px;
  height: 124px;
  border: 8px solid rgba(255, 255, 255, 0.93);
  border-radius: 50%;
  margin: 10px auto 14px;
  display: grid;
  place-items: center;
  font-size: 64px;
  font-weight: 800;
  color: #fff;
}

.app-bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: #fff;
  border-top: 1px solid #d8dee8;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 6px 4px 10px;
}

.app-nav-item strong {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  height: 20px;
}

.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  min-height: 52px;
  text-align: center;
  line-height: 1.15;
  gap: 1px;
  font-size: 10px;
  color: #666;
}

.app-nav-item-qr {
  padding-top: 18px;
}

.app-nav-item.active strong {
  color: #0d5a9a;
}

.app-qr-btn {
  width: 56px;
  height: 56px;
  background: #f15a24;
  border-radius: 50%;
  border: 4px solid #fff;
  position: absolute;
  left: 50%;
  top: -22px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.app-nav-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-qr-btn .app-nav-icon {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.index-main,
.sms-main,
.waiting-main,
.success-main {
  justify-content: center;
  padding-top: 6px;
}

.index-main .app-heading,
.sms-main .app-heading,
.waiting-main .app-heading,
.success-main .app-heading {
  font-size: 18px;
  margin: 0 0 4px;
}

.index-main .app-tabs,
.sms-main .app-tabs {
  width: 62%;
  margin: 0 auto 8px;
}

.index-main .app-form,
.sms-main .app-form,
.index-main .app-main-links,
.index-main .app-main-bottom-link,
.sms-main .app-main-links,
.sms-main .app-main-bottom-link {
  width: min(100%, 360px);
  margin-left: auto;
  margin-right: auto;
}

.index-main .app-primary-btn,
.sms-main .app-primary-btn {
  font-size: 24px;
  height: 44px;
}

.waiting-spinner {
  width: 82px;
  height: 82px;
  margin: 4px auto 16px;
  position: relative;
}

.waiting-spinner::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 -32px 0 0 rgba(255, 255, 255, 1),
    22px -22px 0 0 rgba(255, 255, 255, 0.88),
    32px 0 0 0 rgba(255, 255, 255, 0.76),
    22px 22px 0 0 rgba(255, 255, 255, 0.64),
    0 32px 0 0 rgba(255, 255, 255, 0.52),
    -22px 22px 0 0 rgba(255, 255, 255, 0.4),
    -32px 0 0 0 rgba(255, 255, 255, 0.3),
    -22px -22px 0 0 rgba(255, 255, 255, 0.22);
  animation: waiting-spin-dots 0.9s linear infinite;
}

@keyframes waiting-spin-dots {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.success-main .app-success-icon {
  margin: 8px auto 38px;
}

body.app-mobile .alert {
  background: rgba(153, 27, 27, 0.86);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  margin-bottom: 8px;
}

body.app-mobile .alert-success {
  background: rgba(22, 101, 52, 0.84);
}

body.app-mobile .inline-wait {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

body.app-mobile .inline-wait[hidden] {
  display: none;
}

body.app-mobile .mini-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.36);
  border-top-color: #fff;
  animation: app-spin 0.9s linear infinite;
}

