/* =========================================================
   DYNASTY INTELLIGENCE — DASHBOARD BOX
   ========================================================= */

.dynasty-intelligence-box {
  position: relative;
  margin: 28px 0;
  padding: 28px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.035),
      rgba(0, 0, 0, 0.22)
    );
  overflow: hidden;
}

.dynasty-intelligence-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 1px;
  background: #d4af37;
}

.intelligence-box-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 26px;
}

.intelligence-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #d4af37;
}

.intelligence-box-header h2 {
  margin: 0 0 8px;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.intelligence-box-header p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
}

.intelligence-status {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.45);
}

.intelligence-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
}

.intelligence-question {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.intelligence-question > label {
  display: block;
  margin-bottom: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
}

.intelligence-input-row {
  display: flex;
  gap: 10px;
}

.intelligence-input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  outline: none;
}

.intelligence-input:focus {
  border-color: rgba(212, 175, 55, 0.65);
}

.intelligence-input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.intelligence-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.intelligence-example {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  text-align: left;
}

.intelligence-example:hover {
  color: #d4af37;
}

.intelligence-answer {
  margin-top: 24px;
}

.intelligence-result {
  padding: 22px;
  border-left: 2px solid #d4af37;
  background: rgba(0, 0, 0, 0.22);
}

.intelligence-result-heading {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.intelligence-result-heading span,
.intelligence-analysis > span,
.intelligence-recommendations > span,
.intelligence-causes > span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
  color: #d4af37;
}

.intelligence-result-heading strong {
  font-size: 18px;
  font-weight: 500;
}

.intelligence-result-answer {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.intelligence-analysis,
.intelligence-recommendations,
.intelligence-causes {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.intelligence-analysis p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.intelligence-recommendations ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.intelligence-recommendations li {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.intelligence-cause {
  margin-top: 12px;
}

.intelligence-cause strong {
  font-size: 13px;
}

.intelligence-cause p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.5;
}

.intelligence-limitation {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(212, 175, 55, 0.045);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.5;
}

.intelligence-result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intelligence-upgrade {
  font-size: 10px;
}

.intelligence-loading {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 20px;
  border-left: 2px solid #d4af37;
  background: rgba(0, 0, 0, 0.22);
}

.intelligence-loading span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d4af37;
  animation: dynasty-intelligence-pulse 1s infinite ease-in-out;
}

.intelligence-loading span:nth-child(2) {
  animation-delay: 0.15s;
}

.intelligence-loading span:nth-child(3) {
  animation-delay: 0.3s;
}

.intelligence-loading strong {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 400;
}

@keyframes dynasty-intelligence-pulse {
  0%, 100% {
    opacity: 0.25;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.intelligence-result-error {
  border-left-color: #888;
}

@media (max-width: 700px) {
  .dynasty-intelligence-box {
    padding: 20px;
  }

  .intelligence-box-header {
    flex-direction: column;
    gap: 12px;
  }

  .intelligence-input-row {
    flex-direction: column;
  }

  .intelligence-input-row .btn {
    width: 100%;
  }

  .intelligence-result-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}