/* Kurumsal erişim kartı — yuvarlak mühür + altında birleşik kart.
   Ölçü/renk --kb-* değişkenleriyle değiştirilir; inline <style> yok. */

.kb-anchor {
  top: calc(4.5rem + 2rem);
  right: 1rem;
  z-index: 60;
}
@media (min-width: 768px) {
  .kb-anchor { top: calc(6.75rem + 2rem); right: 1.5rem; }
}

.kb {
  --kb-width: 19.5rem;
  --kb-logo: 4.75rem;
  --kb-overlap: 1.45rem;
  --kb-accent: #019c61;
  --kb-accent-dark: #017e4e;
  --kb-ink: #011632;
  --kb-muted: #5b6573;
  --kb-line: #e8edf2;
  --kb-paper: #fff;
  --kb-desc-max: 7.5rem;
  width: var(--kb-width);
  max-width: calc(100vw - 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.kb__seal {
  width: var(--kb-logo);
  height: var(--kb-logo);
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--kb-paper);
  border: 3px solid var(--kb-paper);
  box-shadow:
    0 0 0 1px var(--kb-line),
    0 10px 22px -8px rgba(1, 22, 50, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
  margin-bottom: calc(var(--kb-overlap) * -1);
  padding: 0.4rem;
}

.kb__seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kb__seal-fallback {
  width: 62%;
  height: 62%;
  color: var(--kb-accent);
}

.kb__card {
  width: 100%;
  background: var(--kb-paper);
  border: 1px solid var(--kb-line);
  border-radius: var(--radius-lg, 20px);
  box-shadow: 0 18px 36px -16px rgba(1, 22, 50, 0.28);
  padding: calc(var(--kb-overlap) + 0.7rem) 1.1rem 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  position: relative;
}

.kb__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 3;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #6b7280;
  background: #f3f4f6;
  transition: background 0.15s ease, color 0.15s ease;
}
.kb__close:hover {
  background: #e5e7eb;
  color: var(--kb-ink);
}
.kb__close:focus-visible {
  outline: 2px solid var(--kb-accent);
  outline-offset: 2px;
}

.kb__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--kb-ink);
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 1.25rem;
}

.kb__hint {
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--kb-muted);
  margin: 0;
}

.kb__status {
  display: inline-flex;
  align-items: center;
  margin: 0.1rem 0 0;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: #eef1f4;
  color: #4b5563;
}
.kb[data-durum="abone"] .kb__status {
  background: #e6f8f0;
  color: var(--kb-accent-dark);
}
.kb[data-durum="deneme"] .kb__status {
  background: #fff6e5;
  color: #b45309;
}
.kb[data-durum="aboneDegil"] .kb__status {
  background: #f3f4f6;
  color: #4b5563;
}

.kb__desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--kb-muted);
  margin: 0.15rem 0 0;
  max-height: var(--kb-desc-max);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.kb__desc strong {
  color: var(--kb-ink);
  font-weight: 700;
}

.kb__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.45rem;
}

.kb__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  height: 2.25rem;
  border-radius: 9999px;
  background: var(--kb-accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: background 0.15s ease;
}
.kb__cta:hover { background: var(--kb-accent-dark); }
.kb__cta:focus-visible {
  outline: 2px solid var(--kb-ink);
  outline-offset: 2px;
}
.kb__cta svg { width: 0.85rem; height: 0.85rem; }

.kb__secondary {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--kb-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.kb__secondary:hover { color: var(--kb-accent); }

.kb__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.45rem;
}

.kb__check-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  font-size: 0.625rem;
  color: #9ca3af;
  text-align: left;
}
.kb__check-row:hover { color: var(--kb-muted); }
.kb__check {
  width: 0.75rem;
  height: 0.75rem;
  accent-color: var(--kb-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.kb__ip {
  font-size: 0.5625rem;
  font-style: italic;
  color: #9ca3af;
  white-space: nowrap;
}

.kb__footnote {
  font-size: 0.5625rem;
  line-height: 1.4;
  color: #9ca3af;
  margin: 0.35rem 0 0;
  padding-top: 0.4rem;
  border-top: 1px solid var(--kb-line);
  width: 100%;
}

.kb-flag {
  position: fixed;
  z-index: 50;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px #e8edf2,
    0 10px 20px -4px rgba(1, 22, 50, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kb-flag:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px #e8edf2,
    0 14px 24px -4px rgba(1, 22, 50, 0.26);
}
.kb-flag:focus-visible {
  outline: 2px solid #019c61;
  outline-offset: 2px;
}
.kb-flag__logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.kb-flag__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.kb-flag__fallback {
  width: 62%;
  height: 62%;
  color: #019c61;
}

@media (max-width: 380px) {
  .kb { --kb-width: calc(100vw - 1.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .kb,
  .kb-flag,
  .kb__close,
  .kb__cta {
    transition: none;
  }
}
