/* ================================
   CoreHabit Global Styles (FIXED)
   ================================ */

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

/* FORCE DARK BACKGROUND EVERYWHERE */
body {
  background: radial-gradient(
    80% 80% at 20% 10%,
    #1a1f35 0%,
    #0b0f19 60%
  ) !important;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* TYPOGRAPHY */
h1 {
  font-size: 42px;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

h2 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
}

h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 8px;
}

p {
  color: #9ca3af;
  line-height: 1.6;
  max-width: 640px;
}

/* PAGE WRAPPER */
.page-wrapper {
  max-width: 760px;
  margin: 80px auto;
  padding: 0 24px 80px;
}

/* CARDS */
.card {
  background: linear-gradient(
    180deg,
    rgba(17,24,39,0.95),
    rgba(11,15,25,0.95)
  );
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  margin-bottom: 28px;
}

/* BUTTONS */
button,
.button-primary,
.button-secondary {
  appearance: none;
  border: none;
  font-family: inherit;
}

.button-primary {
  padding: 14px 26px;
  border-radius: 999px;
  background: #7c5cff;
  color: white;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.button-primary:hover {
  background: #8b6cff;
}

.button-secondary {
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(124,92,255,0.6);
  background: transparent;
  color: #a78bfa;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

/* FORM CONTROLS (THIS FIXES THE WHITE ISSUE) */
input,
select,
textarea {
  background: rgba(17,24,39,0.9);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

input::placeholder {
  color: #6b7280;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7c5cff;
}

/* INLINE ONBOARDING ROW */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

/* LABELS */
label {
  font-size: 12px;
  color: #9ca3af;
}

/* LISTS */
ul {
  padding-left: 18px;
  margin-top: 12px;
}

li {
  margin-bottom: 8px;
  color: #e5e7eb;
}

/* PREMIUM LOCK PILL */
.lock-pill {
  display: inline-block;
  background: rgba(124,92,255,0.18);
  color: #c4b5fd;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 6px;
}

/* PREMIUM CALLOUT */
.premium-box {
  border: 1px dashed rgba(124,92,255,0.35);
  border-radius: 16px;
  padding: 20px;
  margin-top: 24px;
  background: rgba(124,92,255,0.06);
}

/* FOOTER SPACING FIX */
.spacer {
  height: 40px;
}

/* FORCE NO WHITE ANYWHERE */
body * {
  background-color: transparent;
}
/* ============================
   Global Premium Bubble
   ============================ */

.global-premium-tab {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;

  padding: 8px 18px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;

  /* GOLD BUBBLE */
  background: linear-gradient(
    135deg,
    #d4af37,
    #f0d58c
  );
  color: #1a1a1a !important;

  box-shadow:
    0 6px 18px rgba(212, 175, 55, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* Hover = premium feel */
.global-premium-tab:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 28px rgba(212, 175, 55, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .global-premium-tab {
    top: 14px;
    right: 14px;
    padding: 7px 14px;
    font-size: 11px;
  }
}

/* HARD OVERRIDE: Global Premium Bubble */
a.global-premium-tab,
a.global-premium-tab:visited,
a.global-premium-tab:hover,
a.global-premium-tab:active {
  background: linear-gradient(135deg, #d4af37, #f0d58c) !important;
  color: #1a1a1a !important;
  text-decoration: none !important;
}

/* ============================
   Premium Tab – Context Aware
   ============================ */

/* Default behavior (all pages) */
.global-premium-tab {
  position: fixed;
  top: 20px;
  right: 20px;
}

/* Home page override */
.home-page .global-premium-tab.inline-premium {
  position: relative;
  top: auto;
  right: auto;
  margin-left: 12px;
}

/* Align nicely with CTA buttons */
.home-page .hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================
   Premium Gating (Results Page)
   ============================ */

.premium-box {
  border: 1px dashed rgba(124,92,255,0.45);
  border-radius: 18px;
  padding: 24px;
  margin-top: 48px;
  background: rgba(124,92,255,0.06);
}

.lock-pill {
  display: inline-block;
  background: rgba(124,92,255,0.18);
  color: #c4b5fd;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}
