/* ===========================
   EMERALD KEY – BUTTON
   =========================== */

.emerald-buy-button {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid #00c08b;
  color: #00c08b;
  transition: all 0.2s ease-in-out;
}

.emerald-buy-button:hover {
  background: #00c08b;
  color: #ffffff;
}

/* ===========================
   PAGE 42 – CONTROL ROOM (PRIVATE AREA)
   =========================== */

.uc-p42-portal {
  min-height: 100vh;
  padding: 4rem 1.5rem 5rem;
  background: radial-gradient(circle at top, #1c2140 0%, #090c16 45%, #050712 100%);
  color: #f5f5ff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.uc-p42-hero {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
}

.uc-p42-hero h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  margin-bottom: 0.8rem;
  letter-spacing: 0.04em;
}

.uc-p42-hero p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 680px;
  margin: 0.5rem auto 1.5rem;
}

.uc-p42-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.uc-p42-tags span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(5, 8, 18, 0.7);
}

.uc-p42-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

@media (max-width: 800px) {
  .uc-p42-grid {
    grid-template-columns: 1fr;
  }
}

.uc-p42-card {
  background: radial-gradient(circle at top left, rgba(138, 92, 255, 0.24), rgba(5, 7, 18, 0.98));
  border-radius: 1.25rem;
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
}

.uc-p42-card h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}

.uc-p42-card p {
  font-size: 0.98rem;
  opacity: 0.9;
  margin-bottom: 0.9rem;
}

.uc-p42-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  opacity: 0.92;
}

.uc-p42-card li + li {
  margin-top: 0.3rem;
}

.uc-p42-small {
  font-size: 0.82rem;
  opacity: 0.7;
  margin-top: 1rem;
}

/* ===========================
   PAGE 42 ORACLE – TOAST
   =========================== */

#p42-toast {
  position: fixed;
  right: 28px;
  bottom: 120px;
  z-index: 99999;

  max-width: 260px;
  padding: 10px 14px 10px 12px;

  display: flex;
  align-items: center;
  gap: 8px;

  background: radial-gradient(circle at top left,
              rgba(168, 85, 247, 0.96),
              rgba(37, 99, 235, 0.98));
  color: #fdfbff;

  font-size: 0.82rem;
  line-height: 1.4;

  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.85);

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

#p42-toast::before {
  content: "🔮";
  flex-shrink: 0;
  font-size: 1rem;
}

#p42-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   PAGE 42 ORACLE – BUTTON & PANEL
   =========================== */

#p42-oracle-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left,
              rgba(168, 85, 247, 0.98),
              rgba(236, 72, 153, 0.97));
  color: #fdfbff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

#p42-oracle-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.95);
}

/* Panel container */
#p42-oracle-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 9999;
  display: none; /* JS toggles this */
}

/* Card inside panel */
.p42-oracle-inner {
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 1.1rem 1.15rem 1.1rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left,
              rgba(129, 140, 248, 0.55),
              rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
  color: #f9f7ff;
  font-size: 0.86rem;
  backdrop-filter: blur(14px);
}

/* Header */
.p42-oracle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.p42-oracle-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: #f9f5ff;
}

#p42-oracle-close {
  border: none;
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

#p42-oracle-close:hover {
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
}

/* Intro + note */
.p42-oracle-intro {
  margin: 0.1rem 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.92;
}

.p42-oracle-intro strong {
  font-weight: 700;
}

.p42-oracle-note {
  margin-top: 0.7rem;
  font-size: 0.76rem;
  opacity: 0.8;
}

/* Prompt buttons layout */
.p42-oracle-prompts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.25rem 0 0.4rem;
}

/* Individual prompt button */
.p42-prompt {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 255, 0.35);
  background: rgba(15, 23, 42, 0.92);
  color: #f3f4ff;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.p42-prompt:hover {
  background: radial-gradient(circle at top left,
              rgba(129, 140, 248, 0.65),
              rgba(15, 23, 42, 0.98));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  transform: translateY(-1px);
}

/* Tabs & panes */
.p42-tabs {
  display: flex;
  gap: 4px;
  margin: 0.15rem 0 0.6rem;
  padding: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(226, 232, 255, 0.35);
}

.p42-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: #e5e7ff;
  font-size: 0.78rem;
  padding: 0.35rem 0.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.p42-tab-active {
  background: radial-gradient(circle at top left,
              rgba(129, 140, 248, 0.9),
              rgba(37, 99, 235, 0.95));
  color: #fdfbff;
}

.p42-pane {
  display: none;
}

.p42-pane-active {
  display: block;
}

/* FAQ items */
.p42-faq-item + .p42-faq-item {
  margin-top: 0.55rem;
}

.p42-faq-item h4 {
  font-size: 0.84rem;
  margin: 0 0 0.15rem;
}

.p42-faq-item p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.92;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  #p42-oracle-button {
    right: 16px;
    bottom: 16px;
    font-size: 0.85rem;
    padding-inline: 1.1rem;
  }

  #p42-oracle-panel {
    right: 8px;
    left: 8px;
    bottom: 80px;
  }

  .p42-oracle-inner {
    width: 100%;
  }
}

/* ===========================
   PAGE 42 – PUBLIC SECTION
   =========================== */

.uc-p42-public {
  padding: 4rem 1.5rem 4.5rem;
  background: radial-gradient(circle at top, #151a2b 0%, #050811 55%, #02030a 100%);
  color: #f8f7ff;
}

.uc-p42-public-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.uc-p42-public h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.uc-p42-lead {
  font-size: 1.02rem;
  max-width: 720px;
  opacity: 0.9;
  margin-bottom: 2.2rem;
}

.uc-p42-public-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .uc-p42-public-grid {
    grid-template-columns: 1fr;
  }
}

.uc-p42-public-card {
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.3), rgba(10, 13, 28, 0.96));
  border-radius: 1.1rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.7);
}

.uc-p42-public-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.uc-p42-public-card p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.uc-p42-footnote {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.5rem;
}

/* ===========================
   READERS' FAVORITE – PRAISE BLOCK
   =========================== */

.ek-praise {
  max-width: 800px;
  margin: 3rem auto 2.5rem;
  padding: 1.6rem 1.4rem 1.8rem;
  border-radius: 1.3rem;
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.35), rgba(10, 13, 28, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

.ek-rf-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(6, 10, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 0.9rem;
}

.ek-rf-stars {
  font-size: 0.95rem;
}

.ek-rf-text {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.ek-rf-quote {
  margin: 0.4rem 0;
  opacity: 0.9;
}

.ek-rf-reviewer {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  opacity: 0.8;
}

.ek-rf-reviewer a {
  color: #c7d2ff;
  text-decoration: none;
}

.ek-rf-reviewer a:hover {
  text-decoration: underline;
}

/* MINI BADGE UNDER HERO */

.ek-rf-mini {
  max-width: 440px;
  margin: -1rem auto 2.5rem;
  padding: 0.55rem 1rem;
  text-align: center;
  border-radius: 999px;
  background: rgba(8, 12, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
}

.ek-rf-mini a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.ek-rf-mini-stars {
  color: #ffcc66;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.ek-rf-mini-text {
  color: #f1f0ff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.9;
}

.ek-rf-mini a:hover .ek-rf-mini-text {
  text-decoration: underline;
}