/* Compact spiritual My AI Pandit page */
.my-ai-pandit-page {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 215, 106, 0.1), transparent 26rem),
    radial-gradient(circle at 86% 14%, rgba(122, 27, 27, 0.2), transparent 28rem),
    linear-gradient(145deg, #1c0605 0%, #3a0d0d 48%, #180605 100%);
}

.my-ai-pandit-page .ai-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 20px 48px;
}

.my-ai-pandit-page .ai-hero {
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(255, 215, 106, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 215, 106, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(74, 22, 13, 0.86), rgba(42, 10, 9, 0.82));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 247, 223, 0.1);
}

.my-ai-pandit-page .ai-hero-badge,
.my-ai-pandit-page .ai-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border: 1px solid rgba(255, 215, 106, 0.42);
  border-radius: 999px;
  color: #ffd76a;
  background: rgba(255, 215, 106, 0.1);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.my-ai-pandit-page .ai-hero h1 {
  margin: 14px 0 10px;
  color: #fff7df;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 2px 20px rgba(255, 215, 106, 0.14);
}

.my-ai-pandit-page .ai-hero p {
  max-width: 620px;
  margin: 0 auto;
  color: #f1e4c3;
  font-size: 17px;
  line-height: 1.55;
}

.my-ai-pandit-page .ai-dashboard-content {
  display: grid;
  gap: 18px;
}

.my-ai-pandit-page .ai-card {
  min-height: 0;
  padding: 24px;
  border: 1px solid rgba(255, 215, 106, 0.3);
  border-radius: 18px;
  color: #f1e4c3;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 215, 106, 0.09), transparent 38%),
    linear-gradient(145deg, rgba(60, 15, 10, 0.78), rgba(33, 7, 5, 0.72));
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 247, 223, 0.08);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.my-ai-pandit-page .ai-state-card,
.my-ai-pandit-page .ai-login-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.my-ai-pandit-page .ai-dashboard {
  display: grid;
  gap: 18px;
}

.my-ai-pandit-page .ai-title {
  margin: 0 0 10px;
  color: #fff7df;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.my-ai-pandit-page .ai-card p {
  margin: 0;
  color: #f1e4c3;
  font-size: 16px;
  line-height: 1.55;
}

.my-ai-pandit-page .compact-account-card {
  padding: 26px 28px;
}

.my-ai-pandit-page .compact-account-card .ai-helper {
  max-width: 540px;
  margin: 0 auto;
}

.my-ai-pandit-page .account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.my-ai-pandit-page .account-actions .ai-btn {
  min-width: 160px;
}

.my-ai-pandit-page .ai-grid {
  display: grid;
  gap: 20px;
}

.my-ai-pandit-page .ai-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.my-ai-pandit-page .ai-account-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 215, 106, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(59, 15, 11, 0.88), rgba(33, 7, 5, 0.72));
}

.my-ai-pandit-page .ai-account-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.my-ai-pandit-page .ai-avatar {
  display: inline-grid;
  width: 56px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 106, 0.48);
  border-radius: 18px;
  color: #2b1208;
  background: linear-gradient(135deg, #ffd76a, #b77924);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.my-ai-pandit-page .ai-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.my-ai-pandit-page .ai-account-copy {
  min-width: 0;
}

.my-ai-pandit-page .ai-account-copy .ai-title {
  margin-bottom: 6px;
  font-size: 21px;
  overflow-wrap: anywhere;
}

.my-ai-pandit-page .ai-account-copy p {
  overflow-wrap: anywhere;
}

.my-ai-pandit-page .ai-account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.my-ai-pandit-page .ai-account-actions .ai-btn {
  min-width: 150px;
}

.my-ai-pandit-page .ai-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  color: #2b1208;
  background: linear-gradient(135deg, #ffe08a, #d99a2b);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.my-ai-pandit-page .ai-btn:hover {
  transform: translateY(-1px);
}

.my-ai-pandit-page .ai-btn-secondary {
  border: 1px solid rgba(255, 215, 106, 0.42);
  color: #fff7df;
  background: rgba(255, 247, 223, 0.08);
  box-shadow: none;
}

.my-ai-pandit-page .ai-btn-link {
  justify-self: start;
  margin-top: 4px;
  min-height: 38px;
  padding: 9px 16px;
  font-size: 15px;
}

.my-ai-pandit-page .ai-stat-card,
.my-ai-pandit-page .ai-summary-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px;
}

.my-ai-pandit-page .ai-number {
  color: #ffd76a;
  font-size: clamp(36px, 5vw, 42px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.my-ai-pandit-page .ai-summary-value {
  color: #fff7df;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.my-ai-pandit-page .ai-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.my-ai-pandit-page .ai-action-grid {
  display: grid;
  gap: 9px;
}

.my-ai-pandit-page .ai-action-grid .ai-btn {
  width: 100%;
  min-height: 38px;
  padding: 9px 12px;
  font-size: 14px;
}

.my-ai-pandit-page .ai-gold {
  color: #ffd76a;
  font-weight: 800;
}

.my-ai-pandit-page .ai-muted,
.my-ai-pandit-page .ai-helper,
.my-ai-pandit-page .ai-empty {
  color: #dcc79d;
  opacity: 1;
}

.my-ai-pandit-page .ai-empty {
  font-size: 16px;
  line-height: 1.5;
}

.my-ai-pandit-page .ai-badge {
  min-height: 26px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.my-ai-pandit-page .ai-badge.is-paid {
  border-color: rgba(126, 231, 135, 0.42);
  color: #bdf0b7;
  background: rgba(63, 166, 76, 0.15);
}

.my-ai-pandit-page .ai-badge.is-failed {
  border-color: rgba(255, 129, 129, 0.44);
  color: #ffb6a6;
  background: rgba(176, 49, 35, 0.16);
}

.my-ai-pandit-page .ai-answer-list {
  display: grid;
  gap: 10px;
}

.my-ai-pandit-page .ai-answer-item {
  border: 1px solid rgba(255, 215, 106, 0.22);
  border-radius: 16px;
  background: rgba(33, 7, 5, 0.28);
  overflow: hidden;
}

.my-ai-pandit-page .ai-answer-toggle {
  display: grid;
  width: 100%;
  gap: 5px;
  padding: 14px 16px;
  border: 0;
  color: #f1e4c3;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.my-ai-pandit-page .ai-answer-toggle strong {
  color: #fff7df;
  font-size: 16px;
  line-height: 1.4;
}

.my-ai-pandit-page .ai-answer-preview {
  color: #dcc79d;
  font-size: 15px;
  line-height: 1.45;
}

.my-ai-pandit-page .ai-answer-body {
  padding: 0 16px 16px;
  color: #f1e4c3;
  font-size: 15px;
  line-height: 1.55;
}

.my-ai-pandit-page .ai-help-card {
  padding: 0;
  overflow: hidden;
}

.my-ai-pandit-page .compact-help-strip {
  width: min(620px, 100%);
  margin: 0 auto;
}

.my-ai-pandit-page .ai-help-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  color: #f1e4c3;
  cursor: pointer;
  list-style: none;
}

.my-ai-pandit-page .ai-help-card summary::-webkit-details-marker {
  display: none;
}

.my-ai-pandit-page .ai-help-card summary strong {
  display: block;
  color: #fff7df;
  font-size: 17px;
  line-height: 1.35;
}

.my-ai-pandit-page .ai-help-card summary small {
  display: block;
  margin-top: 3px;
  color: #dcc79d;
  font-size: 14px;
  line-height: 1.4;
}

.my-ai-pandit-page .ai-help-action {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: #2b1208;
  background: linear-gradient(135deg, #ffe08a, #d99a2b);
  font-size: 14px;
  font-weight: 800;
}

.my-ai-pandit-page .ai-help-card p {
  padding: 0 20px 20px;
  color: #f1e4c3;
}

.my-ai-pandit-page .is-hidden,
.my-ai-pandit-page [hidden] {
  display: none !important;
}

.my-ai-pandit-page .ai-card:empty,
.my-ai-pandit-page .account-card:empty,
.my-ai-pandit-page .dashboard-panel:empty,
.my-ai-pandit-page .ai-account-card:empty,
.my-ai-pandit-page .ai-summary-grid:empty {
  display: none !important;
}

@media (max-width: 820px) {
  .my-ai-pandit-page .ai-hero h1 {
    font-size: 36px;
  }

  .my-ai-pandit-page .ai-account-card,
  .my-ai-pandit-page .ai-summary-grid {
    grid-template-columns: 1fr;
  }

  .my-ai-pandit-page .ai-account-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .my-ai-pandit-page .ai-page {
    padding: 22px 14px 40px;
  }

  .my-ai-pandit-page .ai-hero {
    margin-bottom: 16px;
    padding: 24px 18px;
    border-radius: 16px;
  }

  .my-ai-pandit-page .ai-hero h1 {
    font-size: 30px;
  }

  .my-ai-pandit-page .ai-hero p,
  .my-ai-pandit-page .ai-card p {
    font-size: 16px;
  }

  .my-ai-pandit-page .ai-card {
    padding: 18px;
    border-radius: 16px;
  }

  .my-ai-pandit-page .compact-account-card {
    padding: 18px;
  }

  .my-ai-pandit-page .account-actions {
    display: grid;
    gap: 10px;
  }

  .my-ai-pandit-page .account-actions .ai-btn {
    width: 100%;
    min-width: 0;
  }

  .my-ai-pandit-page .ai-account-main {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
  }

  .my-ai-pandit-page .ai-account-actions {
    display: flex;
    justify-content: stretch;
  }

  .my-ai-pandit-page .ai-account-actions .ai-btn,
  .my-ai-pandit-page .ai-login-card .ai-btn {
    width: 100%;
  }

  .my-ai-pandit-page .ai-help-card summary {
    display: grid;
  }

  .my-ai-pandit-page .ai-help-action {
    width: 100%;
  }
}

/* Page scoped contrast lock */
.my-ai-pandit-page .ai-card,
.my-ai-pandit-page .ai-card *:not(button):not(a),
.my-ai-pandit-page .ai-help-card *:not(button):not(a) {
  color: #f1e4c3;
}

.my-ai-pandit-page .ai-card h1,
.my-ai-pandit-page .ai-card h2,
.my-ai-pandit-page .ai-card h3,
.my-ai-pandit-page .ai-title {
  color: #fff7df !important;
}

.my-ai-pandit-page .ai-empty,
.my-ai-pandit-page .ai-muted,
.my-ai-pandit-page .ai-helper {
  color: #dcc79d !important;
  opacity: 1 !important;
}

.my-ai-pandit-page .ai-number,
.my-ai-pandit-page .ai-gold {
  color: #ffd76a !important;
}

.my-ai-pandit-page .ai-btn,
.my-ai-pandit-page .ai-page button,
.my-ai-pandit-page .ai-help-action {
  color: #2b1208 !important;
}

.my-ai-pandit-page .ai-btn-secondary {
  color: #fff7df !important;
}
