/* Domino101 Info Quest — shared shell for privacy / legal / safety / contact */

:root {
  --iq-green: #45f882;
  --iq-green-dim: #36d369;
  --iq-gold: #ffbe18;
  --iq-bg-0: #0a0a0a;
  --iq-bg-1: #0a0e13;
  --iq-bg-2: #1a1a2e;
  --iq-bg-3: #16213e;
  --iq-card: rgba(15, 22, 27, 0.88);
  --iq-card-border: rgba(69, 248, 130, 0.22);
  --iq-text: #e8eaed;
  --iq-muted: #b8bcc8;
  --iq-read-max: 780px;
}

/* ── Page shell ── */
.iq-page {
  position: relative;
  min-height: 60vh;
  color: var(--iq-text);
  background: transparent;
  padding: 48px 0 100px;
  overflow: hidden;
}

.iq-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, var(--iq-bg-0) 0%, var(--iq-bg-2) 50%, var(--iq-bg-3) 100%);
}

.iq-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--iq-green);
  border-radius: 50%;
  opacity: 0.55;
  animation: iq-float 6s ease-in-out infinite;
}

@keyframes iq-float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.45; }
  50% { transform: translateY(-22px) rotate(180deg); opacity: 1; }
}

.iq-page > .container {
  position: relative;
  z-index: 1;
}

/* ── Sticky reading progress ── */
.iq-progress {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  margin: -48px 0 28px;
}

.iq-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--iq-green), var(--iq-gold));
  box-shadow: 0 0 12px rgba(69, 248, 130, 0.45);
  transition: width 0.25s ease;
}

/* ── Hero ── */
.iq-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
  padding: 8px 12px 0;
}

.iq-hero__badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(69, 248, 130, 0.1);
  border: 1px solid rgba(69, 248, 130, 0.28);
  color: var(--iq-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.iq-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.iq-hero__title span {
  background: linear-gradient(90deg, var(--iq-green), #00ff88, var(--iq-green));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: iq-grad 4s ease infinite;
}

@keyframes iq-grad {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.iq-hero__lead {
  color: var(--iq-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 640px;
}

.iq-hero__meta {
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(255, 190, 24, 0.9);
  font-weight: 600;
}

/* ── KPI strip ── */
.iq-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 0 0 32px;
}

.iq-kpi__tile {
  background: var(--iq-card);
  border: 1px solid var(--iq-card-border);
  border-radius: 14px;
  padding: 18px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.iq-kpi__tile:hover {
  transform: translateY(-3px);
  border-color: rgba(69, 248, 130, 0.5);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.iq-kpi__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(69, 248, 130, 0.15);
  color: var(--iq-green);
  font-size: 14px;
  font-weight: 800;
}

.iq-kpi__label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.iq-kpi__hint {
  font-size: 0.78rem;
  color: var(--iq-muted);
  line-height: 1.4;
}

/* ── Chapter pills ── */
.iq-chapters {
  position: sticky;
  top: 4px;
  z-index: 30;
  margin-bottom: 22px;
  padding: 10px 0 12px;
  background: linear-gradient(180deg, rgba(10, 14, 19, 0.95) 60%, rgba(10, 14, 19, 0));
}

.iq-chapters__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--iq-green) transparent;
  -webkit-overflow-scrolling: touch;
}

.iq-chapter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 28, 35, 0.85);
  color: var(--iq-muted);
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.iq-chapter:hover {
  color: #fff;
  border-color: rgba(69, 248, 130, 0.4);
}

.iq-chapter.is-active {
  color: #0a0e13;
  background: var(--iq-green);
  border-color: var(--iq-green);
  box-shadow: 0 0 18px rgba(69, 248, 130, 0.35);
}

.iq-chapter.is-done:not(.is-active) {
  border-color: rgba(255, 190, 24, 0.45);
  color: var(--iq-gold);
}

.iq-chapter__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.iq-chapter.is-active .iq-chapter__num {
  background: rgba(10, 14, 19, 0.2);
}

.iq-chapter.is-done .iq-chapter__num::after {
  content: "✓";
}

.iq-chapter.is-done .iq-chapter__num {
  font-size: 0;
}
.iq-chapter.is-done .iq-chapter__num::after {
  font-size: 0.72rem;
}

/* ── Glass reading panel ── */
.iq-panel {
  background: var(--iq-card);
  border: 1px solid var(--iq-card-border);
  border-radius: 18px;
  padding: 28px 28px 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  max-width: 920px;
  margin: 0 auto 24px;
}

.iq-panel[hidden],
.iq-panel.is-hidden {
  display: none !important;
}

.iq-panel__eyebrow {
  display: block;
  text-transform: uppercase;
  color: var(--iq-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.iq-panel h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem) !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 0 18px !important;
}

.iq-panel h3 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 1.4rem 0 0.55rem !important;
}

.iq-panel p,
.iq-panel li {
  color: var(--iq-muted);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 500 !important;
}

.iq-panel p {
  margin-bottom: 0.9rem;
}

.iq-panel ul,
.iq-panel ol {
  margin: 0 0 1rem 1.35rem;
}

.iq-panel li {
  margin-bottom: 0.4rem;
}

.iq-panel a {
  color: var(--iq-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.iq-panel a:hover {
  color: var(--iq-gold);
}

.iq-panel strong {
  color: #fff;
  font-weight: 700;
}

.iq-block {
  margin-bottom: 1.25rem;
  padding-bottom: 0.25rem;
}

/* ── Checklist / unlock ── */
.iq-check {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px dashed rgba(69, 248, 130, 0.35);
  background: rgba(69, 248, 130, 0.06);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.iq-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--iq-green);
  cursor: pointer;
  flex-shrink: 0;
}

.iq-check label {
  cursor: pointer;
  color: var(--iq-text);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 600;
}

.iq-check.is-done {
  border-style: solid;
  border-color: rgba(255, 190, 24, 0.5);
  background: rgba(255, 190, 24, 0.08);
}

.iq-check.is-done label {
  color: var(--iq-gold);
}

/* ── Journey map (safety) ── */
.iq-journey {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .iq-journey { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .iq-journey { grid-template-columns: repeat(2, 1fr); }
}

.iq-step {
  background: var(--iq-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.iq-step:hover {
  transform: translateY(-3px);
  border-color: rgba(69, 248, 130, 0.4);
}

.iq-step.is-current {
  border-color: var(--iq-green);
  box-shadow: 0 0 20px rgba(69, 248, 130, 0.2);
}

.iq-step.is-complete {
  border-color: rgba(255, 190, 24, 0.45);
}

.iq-step__num {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: rgba(69, 248, 130, 0.15);
  color: var(--iq-green);
}

.iq-step.is-complete .iq-step__num {
  background: rgba(255, 190, 24, 0.18);
  color: var(--iq-gold);
}

.iq-step__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.iq-step__hint {
  font-size: 0.72rem;
  color: var(--iq-muted);
}

/* ── Report / CTA card ── */
.iq-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(69, 248, 130, 0.12), rgba(255, 190, 24, 0.08));
  border: 1px solid rgba(69, 248, 130, 0.35);
  margin: 24px auto;
  max-width: 920px;
}

.iq-cta__text h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: #fff;
}

.iq-cta__text p {
  margin: 0;
  color: var(--iq-muted);
  font-size: 0.92rem;
}

.iq-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  background: var(--iq-green);
  color: #0a0e13;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.iq-btn:hover {
  background: var(--iq-gold);
  color: #0a0e13;
  transform: translateY(-1px);
}

.iq-btn--ghost {
  background: transparent;
  border: 1px solid rgba(69, 248, 130, 0.5);
  color: var(--iq-green);
}

.iq-btn--ghost:hover {
  background: rgba(69, 248, 130, 0.12);
  color: #fff;
}

/* ── Cross-quest strip ── */
.iq-cross {
  max-width: 920px;
  margin: 40px auto 0;
  padding: 22px 24px;
  border-radius: 16px;
  background: rgba(15, 22, 27, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.iq-cross__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--iq-green);
  font-weight: 700;
  margin-bottom: 12px;
}

.iq-cross__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.iq-cross__links a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--iq-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
  transition: all 0.2s ease;
}

.iq-cross__links a:hover,
.iq-cross__links a.is-here {
  color: #0a0e13;
  background: var(--iq-green);
  border-color: var(--iq-green);
}

/* ── Fade-up ── */
.iq-fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.iq-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Toast ── */
.iq-toast-host {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.iq-toast {
  pointer-events: auto;
  min-width: 220px;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(15, 22, 27, 0.95);
  border: 1px solid rgba(69, 248, 130, 0.45);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  animation: iq-toast-in 0.35s ease;
}

.iq-toast span {
  color: var(--iq-green);
}

@keyframes iq-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Contact extras ── */
.iq-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.iq-topic {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(22, 28, 35, 0.8);
  color: var(--iq-muted);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.2s ease;
}

.iq-topic:hover,
.iq-topic.is-active {
  color: #0a0e13;
  background: var(--iq-green);
  border-color: var(--iq-green);
}

.iq-find-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iq-find-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(22, 28, 35, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--iq-text);
  text-decoration: none;
  font-weight: 650;
  transition: all 0.2s ease;
}

.iq-find-links a:hover {
  border-color: var(--iq-green);
  color: var(--iq-green);
}

.iq-find-links a small {
  color: var(--iq-muted);
  font-weight: 500;
}

/* Contact glass cards reuse */
.iq-glass {
  background: var(--iq-card);
  border: 1px solid var(--iq-card-border);
  border-left: 4px solid var(--iq-green);
  border-radius: 14px;
  padding: 28px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Float celebration dots on contact success */
.iq-float-burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

.iq-float-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--iq-green);
  animation: iq-burst 1.1s ease-out forwards;
}

@keyframes iq-burst {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}
