/* Katman-0 Canli Site-Ici & 70-Site Ag Koprusu (0 inline style, CSP/Trusted-Types guvenli) */
.ag-kopru {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 2147483000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fafc;
  pointer-events: auto;
}

.ag-kopru--top {
  left: 50%;
  bottom: auto;
  top: 14px;
  transform: translateX(-50%);
}

.ag-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.88);
  border: 1px solid rgba(147, 52, 234, 0.55);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.ag-pill,
.ag-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.ag-pill:hover,
.ag-link:hover {
  border-color: #a855f7;
  background: rgba(147, 52, 234, 0.28);
}

.ag-pill[aria-expanded="true"] {
  background: #9334ea;
  color: #ffffff;
  border-color: #c084fc;
}

.ag-link--primary {
  background: rgba(147, 52, 234, 0.34);
  border-color: rgba(192, 132, 252, 0.65);
}

.ag-panel {
  position: fixed;
  left: 14px;
  bottom: 64px;
  width: min(460px, calc(100vw - 28px));
  max-height: min(68vh, 520px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(8, 12, 24, 0.96);
  border: 1px solid rgba(168, 85, 247, 0.5);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.58);
  color: #f8fafc;
}

.ag-kopru--top .ag-panel {
  left: 50%;
  bottom: auto;
  top: 62px;
  transform: translateX(-50%);
}

.ag-panel[hidden] {
  display: none;
}

.ag-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.ag-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
}

.ag-search {
  width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-size: 12px;
}

.ag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ag-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
}

.ag-chip[aria-pressed="true"] {
  background: #9334ea;
  color: #ffffff;
  border-color: #c084fc;
}

.ag-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 4px;
}

.ag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  text-decoration: none;
  font-size: 12px;
}

.ag-item:hover {
  border-color: #a855f7;
  background: rgba(147, 52, 234, 0.22);
}

.ag-item-meta {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
}
