/* Gradyansız düz mat koyu tema, yüzen kapsül ve panel bileşen stilleri */
.ag-soft-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background-color: rgba(10, 14, 22, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.72);
}

/* HUD katmanı tıklamayı 3D sahneye geçirir, yalnızca kontrol kapsülleri etkileşimlidir. */
.ag-hud-container {
  position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column;
  justify-content: space-between; padding: 1.35rem 1.75rem; box-sizing: border-box; pointer-events: none;
}

.ag-hud-container.is-ui-entering .ag-hud-top,
.ag-hud-container.is-ui-entering .eonet-query-dock {
  animation: ag-ui-float-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ag-hud-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }

.ag-brand-cluster {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; pointer-events: auto;
  padding: 0.2rem 0.5rem 0.3rem 0.1rem;
}

.ag-brand-row { display: flex; align-items: center; gap: 0.55rem; }
.ag-brand-logo { width: 2.05rem; height: 2.05rem; flex-shrink: 0; }

.ag-brand-title {
  margin: 0; font-family: "Orbitron", "Space Grotesk", sans-serif;
  font-size: 1.24rem; font-weight: 600; letter-spacing: 0.08em; color: #f8fafc;
}

.ag-brand-laser {
  width: 9.8rem; height: 1px; border-radius: 999px;
  background-color: rgba(56, 189, 248, 0.45);
}

.ag-status-badge {
  display: none;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.68rem;
  letter-spacing: 0.14em; color: #38bdf8;
}
.ag-top-right-nodes { display: flex; align-items: center; gap: 0.6rem; pointer-events: auto; }

.ag-node-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(10, 14, 22, 0.92);
  backdrop-filter: blur(14px); color: #e2e8f0; font-size: 0.8rem; font-weight: 500;
  font-family: inherit; letter-spacing: 0.03em; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.ag-node-btn:hover,
.ag-node-btn.is-active {
  border-color: #38bdf8;
  background-color: #141d2e;
  color: #f8fafc;
}

.ag-node-btn:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }

.ag-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem;
  padding: 0 0.35rem; border-radius: 999px; background-color: #0ea5e9;
  color: #030508; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.68rem; font-weight: 700;
}

/* Kompakt yüzen ayarlar popover'ı */
.ag-settings-panel {
  position: fixed; top: 4.5rem; right: 1.75rem; z-index: 32;
  width: min(18rem, calc(100vw - 2.5rem)); display: flex; flex-direction: column; overflow: hidden;
}

.ag-settings-list { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.8rem 0.9rem 0.95rem; }
.ag-settings-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }

.ag-settings-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: flex-start; gap: 0.5rem;
  padding: 0.52rem 0.78rem; border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(15, 23, 42, 0.65); color: #cbd5e1;
  font-size: 0.8rem; font-weight: 500; font-family: inherit; cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.ag-settings-btn:hover { border-color: rgba(56, 189, 248, 0.55); background-color: rgba(30, 41, 59, 0.9); color: #f8fafc; }
.ag-settings-btn.is-active { border-color: #38bdf8; background-color: rgba(14, 165, 233, 0.18); color: #f8fafc; }
.ag-settings-btn:disabled { opacity: 0.42; cursor: not-allowed; }
.ag-reset-action { border-color: rgba(255, 255, 255, 0.16); margin-top: 0.2rem; }

.ag-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: #0f172a; color: #e2e8f0;
  font-size: 0.78rem; font-weight: 500; font-family: inherit; cursor: pointer;
}

.ag-icon { width: 1rem; height: 1rem; flex-shrink: 0; }

/* Yan görev paneli, overlay kartı ve pop-up */
/* Sağ taraf AI yanıt paneline (eonet-panel) ait; görev paneli sola alınır */
.ag-side-panel-container {
  position: fixed; top: 6rem; left: 1.75rem; max-height: calc(100vh - 11rem); z-index: 30;
  width: min(22rem, calc(100vw - 2.5rem)); display: flex; flex-direction: column; overflow: hidden;
}

.ag-side-panel-header,
.ag-settings-header {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.85rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ag-side-panel-title,
.ag-settings-title { margin: 0; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.1em; color: #f8fafc; }

.ag-side-panel-body {
  flex: 1; overflow-y: auto; padding: 1rem; font-size: 0.9rem; line-height: 1.55; color: #cbd5e1;
}

.ag-side-panel-actions {
  display: flex; flex-direction: column; gap: 0.5rem; padding: 0.85rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ag-overlay-card-container {
  position: fixed; bottom: 7.5rem; left: 1.75rem; z-index: 25;
  width: min(23rem, calc(100vw - 2.5rem)); max-height: min(32rem, calc(100vh - 14rem));
  overflow-y: auto; padding: 1rem; box-sizing: border-box;
}

.ag-close-btn { padding: 0.32rem 0.75rem; }

.ag-panel-action-btn { width: 100%; justify-content: flex-start; text-align: left; margin-top: 0.45rem; }
.ag-panel-description { margin: 0 0 0.75rem 0; font-size: 0.9rem; line-height: 1.5; color: #cbd5e1; }
.ag-card { display: flex; flex-direction: column; gap: 0.65rem; }
.ag-card-header { display: flex; flex-direction: column; gap: 0.3rem; border-bottom: 1px solid rgba(56, 189, 248, 0.16); padding-bottom: 0.55rem; }
.ag-card-tag { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: #38bdf8; font-weight: 600; }
.ag-card-title { margin: 0; font-size: 1rem; font-weight: 600; color: #f8fafc; }
.ag-card-body { display: flex; flex-direction: column; gap: 0.5rem; }
.ag-card-section-title { margin: 0.35rem 0 0; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #38bdf8; }
.ag-comparison-grid { display: flex; flex-direction: column; gap: 0.4rem; }
.ag-comparison-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.45rem 0.6rem; border-radius: 10px; background: rgba(15, 23, 42, 0.78); border: 1px solid rgba(148, 163, 184, 0.14); }
.ag-comparison-label { font-size: 0.78rem; color: #94a3b8; }
.ag-comparison-value { font-size: 0.84rem; font-weight: 600; color: #e2e8f0; text-align: right; }
.ag-timeline-list { list-style: none; margin: 0; padding: 0 0 0 0.9rem; border-left: 1px solid rgba(56, 189, 248, 0.35); display: flex; flex-direction: column; gap: 0.7rem; }
.ag-timeline-step { position: relative; padding-left: 0.35rem; }
.ag-timeline-step-title { font-size: 0.85rem; font-weight: 600; color: #f1f5f9; }
.ag-timeline-step-desc { margin-top: 0.2rem; font-size: 0.78rem; line-height: 1.4; color: #94a3b8; }
.mars-info-card { border-left: 2px solid #f97316; padding-left: 0.65rem; }
.light-delay-panel { border-left: 2px solid #38bdf8; padding-left: 0.65rem; }

.ag-popup-container:not(.is-hidden) .ag-popup-dialog { animation: ag-popup-dialog-in 1.15s cubic-bezier(0.25, 0.8, 0.25, 1) 0.08s both; }

.ag-popup-gallery { display: grid; width: 100%; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.55rem; }
.ag-popup-figure { margin: 0; width: 100%; display: flex; justify-content: center; }
.ag-popup-image-frame {
  width: 100%; display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 0.85rem; border: 1px solid rgba(56, 189, 248, 0.22); background-color: #050a14;
  animation: ag-popup-image-in 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) 0.28s both;
}
.ag-popup-image { display: block; width: 100%; max-height: min(74vh, 36rem); object-fit: contain; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.ag-popup-image-frame:hover .ag-popup-image { transform: scale(1.03); }

@media (max-width: 768px) {
  .ag-app-shell.is-split-screen .ag-viewport-area { flex-direction: column; }
  .ag-hud-container { padding: 1rem; }
  .ag-settings-panel { right: 1rem; left: 1rem; width: auto; }
  .ag-side-panel-container { top: auto; right: 1rem; left: 1rem; bottom: 6.75rem; width: auto; max-height: 45vh; }
}

/* Görünürlük sınıfı sona konur ki diğer display kurallarını ezsin. */
.is-hidden { display: none; }
