/* Performance layer */
html.aq-doc-hidden *,
html.aq-doc-hidden *::before,
html.aq-doc-hidden *::after {
  animation-play-state: paused !important;
}

html.aq-lite *,
html.aq-lite *::before,
html.aq-lite *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  animation-delay: 0s !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.aq-lite #authParticlesCanvas,
html.aq-lite #weatherRainCanvas,
html.aq-lite #heroSteamCanvas,
html.aq-lite .interactive-gliding-spotlight {
  display: none !important;
}

/* 2FA panel in legacy #authGate */
.aq-2fa-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font: inherit;
  animation: aqFadeSlide 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.aq-2fa-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f0f6ff;
  border: 1px solid #d7e6ff;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.5;
}

.aq-2fa-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Monthly review modal & undo banner */
.aq-mr-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.48);
  font-family: inherit;
  opacity: 0;
  transition: opacity 180ms ease;
}

.aq-mr-overlay.is-open {
  opacity: 1;
}

.aq-mr-modal {
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  transform: translateY(8px) scale(0.985);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
}

.aq-mr-overlay.is-open .aq-mr-modal {
  transform: translateY(0) scale(1);
}

.aq-mr-modal--ask {
  max-width: 500px;
}

.aq-mr-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid #eef2f6;
}

.aq-mr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(52, 120, 246, 0.1);
  color: #3478f6;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.aq-mr-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.aq-mr-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.aq-mr-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.aq-mr-close:hover {
  background: #f8fafc;
  color: #0f172a;
}

.aq-mr-body {
  padding: 16px 22px;
  overflow-y: auto;
  flex: 1;
}

.aq-mr-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.aq-mr-search {
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #dbe2ea;
  font: inherit;
  font-size: 13px;
  background: #f8fafc;
  color: #0f172a;
}

.aq-mr-search:focus {
  outline: none;
  border-color: #3478f6;
  background: #ffffff;
}

.aq-mr-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: #f1f5f9;
  border-radius: 12px;
}

.aq-mr-tab {
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.aq-mr-tab.is-active {
  background: #ffffff;
  color: #3478f6;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.aq-mr-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.aq-mr-group {
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.aq-mr-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.aq-mr-group-actions {
  display: flex;
  gap: 6px;
}

.aq-mr-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.aq-mr-row:last-child {
  border-bottom: none;
}

.aq-mr-row:hover {
  background: #f8fafc;
}

.aq-mr-row input[type='checkbox'] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #3478f6;
  cursor: pointer;
  flex-shrink: 0;
}

.aq-mr-row-main {
  flex: 1;
  min-width: 0;
}

.aq-mr-row-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  word-break: break-word;
}

.aq-mr-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: #64748b;
}

.aq-mr-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.aq-mr-pill--done {
  background: #ecfdf5;
  color: #047857;
}

.aq-mr-pill--todo {
  background: #eff6ff;
  color: #1d4ed8;
}

.aq-mr-pill--progress {
  background: #fefce8;
  color: #a16207;
}

.aq-mr-pill--review {
  background: #f5f3ff;
  color: #6d28d9;
}

.aq-mr-keep-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.aq-mr-keep-tag.is-keep {
  background: #ecfdf5;
  color: #047857;
}

.aq-mr-keep-tag.is-remove {
  background: #fff1f2;
  color: #be123c;
}

.aq-mr-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid #eef2f6;
  background: #fafcff;
}

.aq-mr-summary {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.aq-mr-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aq-mr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #dbe2ea;
  background: #ffffff;
  color: #1e293b;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.aq-mr-btn:hover {
  background: #f8fafc;
}

.aq-mr-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.aq-mr-btn--xs {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 9px;
}

.aq-mr-btn--primary {
  background: #3478f6;
  border-color: #3478f6;
  color: #ffffff;
}

.aq-mr-btn--primary:hover {
  background: #2563eb;
}

.aq-mr-btn--danger {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
}

.aq-mr-btn--danger:hover {
  background: #be123c;
}

.aq-mr-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dbe2ea;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  font: inherit;
  font-size: 13px;
  color: #0f172a;
  animation: aqFadeSlide 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.aq-mr-empty {
  text-align: center;
  padding: 28px 12px;
  font-size: 13px;
  color: #64748b;
}

@keyframes aqFadeSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aq-2fa-box,
  .aq-mr-overlay,
  .aq-mr-modal,
  .aq-mr-row,
  .aq-mr-banner {
    animation: none !important;
    transition: none !important;
  }
}


/* Founder portrait & Lifetime Vision section */
.founder-portrait {
  margin: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(212, 175, 55, 0.08);
  background: #0b1120;
}

.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 88%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-id-card:hover .founder-portrait img {
  transform: scale(1.03);
}

.founder-portrait figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(11, 17, 32, 0.72);
  color: #f6e05e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.founder-portrait-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .founder-portrait {
    max-width: 320px;
    margin: 0 auto;
  }
}

.founder-lifetime {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.founder-lifetime-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.founder-lifetime-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.founder-lifetime-lead {
  margin: 0;
  max-width: 860px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary, #475569);
}

.founder-lifetime-tag {
  font-size: 11px;
  color: #d4af37;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.founder-lifetime-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .founder-lifetime-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .founder-lifetime-grid {
    grid-template-columns: 1fr;
  }
}

.founder-lifetime-stage {
  position: relative;
  border-radius: 16px;
  padding: 20px 22px 20px 26px;
  background: var(--card-bg, #ffffff);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.founder-lifetime-stage::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f6e05e, #b8860b);
}

.founder-lifetime-stage:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 12px 26px rgba(212, 175, 55, 0.14);
}

html[data-theme='dark'] .founder-lifetime-stage {
  background: rgba(15, 23, 42, 0.7);
}

.lifetime-age {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #b8860b;
}

html[data-theme='dark'] .lifetime-age {
  color: #f6e05e;
}

.lifetime-stage-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
}

.lifetime-stage-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary, #475569);
}

.founder-lifetime-pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

@media (max-width: 1100px) {
  .founder-lifetime-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .founder-lifetime-pillars {
    grid-template-columns: 1fr;
  }
}

.lifetime-pillar {
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.22);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary, #475569);
}

.lifetime-pillar b {
  font-size: 13.5px;
  color: var(--text-primary);
}

.founder-lifetime-legacy {
  margin: 0;
  border-radius: 20px;
  padding: 26px 30px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0b0f19 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.55);
}

.founder-lifetime-legacy p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.7;
  font-style: italic;
  color: #f8fafc;
}

.founder-lifetime-legacy cite {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #d4af37;
}

html.aq-lite .founder-lifetime-stage,
html.aq-lite .founder-portrait img,
html.aq-lite .founder-id-card:hover .founder-portrait img,
html.aq-lite .founder-lifetime-stage:hover {
  transition: none !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .founder-lifetime-stage,
  .founder-portrait img,
  .founder-id-card:hover .founder-portrait img,
  .founder-lifetime-stage:hover {
    transition: none !important;
    transform: none !important;
  }
}


@media (max-width: 640px) {
  .aq-mr-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    flex-wrap: wrap;
    gap: 8px;
  }

  .aq-mr-modal {
    max-height: 92vh;
    border-radius: 16px;
  }

  .aq-mr-head,
  .aq-mr-body,
  .aq-mr-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
}
