:root {
  --ann-logo-image: url("/images/mtü-logo.png");

  --ann-navy: #262f59;
  --ann-cyan: #12a7cd;
  --ann-gold: #b99c71;
  --ann-orange: #ef7f1a;
  --ann-ink: #1f2a44;
  --ann-muted: #5f6980;
  --ann-surface: #ffffff;
  --ann-surface-soft: #f6f9ff;
}

.ann-backdrop {
  position: fixed;
  inset: 0;
  z-index: 11990;
  display: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(18, 167, 205, 0.22), rgba(15, 28, 56, 0.72)),
    linear-gradient(150deg, rgba(38, 47, 89, 0.68), rgba(8, 18, 35, 0.76));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ann-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.ann-open {
  overflow: hidden !important;
}

.ann-card {
  position: relative;
  width: min(560px, 100%);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(38, 47, 89, 0.16);
  box-shadow:
    0 34px 92px rgba(5, 20, 44, 0.36),
    0 2px 0 rgba(255, 255, 255, 0.65) inset;
  animation: ann-enter 0.24s ease-out;
}

.ann-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ann-navy), var(--ann-cyan), var(--ann-gold), var(--ann-orange));
}

.ann-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px 18px;
  background:
    linear-gradient(160deg, rgba(38, 47, 89, 0.09), rgba(18, 167, 205, 0.09) 58%, rgba(255, 255, 255, 0.92));
  border-bottom: 1px solid rgba(38, 47, 89, 0.12);
}

.ann-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ann-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--ann-logo-image) center/contain no-repeat;
  filter: drop-shadow(0 6px 14px rgba(10, 36, 72, 0.15));
}

.ann-brandText {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ann-brandTop {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ann-navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ann-brandBottom {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(38, 47, 89, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ann-close {
  border: 1px solid rgba(38, 47, 89, 0.14);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 1.02rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ann-cyan), #0f8faf);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(18, 167, 205, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.ann-close:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(18, 167, 205, 0.3);
}

.ann-close:focus-visible {
  outline: 3px solid rgba(18, 167, 205, 0.34);
  outline-offset: 2px;
}

.ann-body {
  max-height: min(58vh, 560px);
  overflow-y: auto;
  padding: 16px 18px 20px;
}

.ann-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  margin-bottom: 11px;
  border-radius: 999px;
  border: 1px solid rgba(185, 156, 113, 0.36);
  background: linear-gradient(120deg, rgba(18, 167, 205, 0.13), rgba(185, 156, 113, 0.15));
  color: var(--ann-navy);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ann-annTitle {
  margin: 0 0 10px 0;
  padding-left: 12px;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.38;
  color: var(--ann-ink);
  letter-spacing: -0.01em;
  position: relative;
}

.ann-annTitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 4px;
  height: 1.2em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ann-gold), var(--ann-orange));
}

.ann-message {
  margin: 0;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid rgba(38, 47, 89, 0.08);
  background: var(--ann-surface-soft);
  color: var(--ann-muted);
  font-size: 0.94rem;
  line-height: 1.72;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ann-footer {
  display: flex;
  justify-content: center;
  padding: 14px 18px 18px;
  background: var(--ann-surface);
  border-top: 1px solid rgba(38, 47, 89, 0.1);
}

.ann-btn.primary {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(120deg, var(--ann-navy), #0a4e8f 58%, var(--ann-cyan));
  box-shadow: 0 14px 34px rgba(10, 78, 143, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.ann-btn.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 42px rgba(10, 78, 143, 0.34);
}

.ann-btn.primary:focus-visible {
  outline: 3px solid rgba(18, 167, 205, 0.34);
  outline-offset: 2px;
}

.ann-body::-webkit-scrollbar {
  width: 7px;
}

.ann-body::-webkit-scrollbar-track {
  background: #edf2fa;
  border-radius: 999px;
}

.ann-body::-webkit-scrollbar-thumb {
  background: rgba(38, 47, 89, 0.28);
  border-radius: 999px;
}

@keyframes ann-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.986);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .ann-modal {
    padding: 12px;
  }

  .ann-card {
    border-radius: 18px;
  }

  .ann-head {
    padding: 14px 14px 12px;
  }

  .ann-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .ann-brandTop {
    font-size: 0.86rem;
  }

  .ann-brandBottom {
    font-size: 0.78rem;
  }

  .ann-body {
    padding: 13px 14px 16px;
  }

  .ann-footer {
    padding: 12px 14px 14px;
  }
}

/* Eski embed merkezleme davranisi */
body.app-embed .ann-card {
  margin-left: calc(-1 * var(--embedded-shell-shift, 148px));
}

@media (max-width: 992px) {
  body.app-embed .ann-card {
    margin-left: 0;
  }
}
