/* ==========================================================================
   UPLIFTED — zyentora.css
   Additions for the Zyentora conversion: the shared shell's colours set to
   Uplifted's palette, Pro markers, locked-page cards and the plan card.
   Loaded after the app's own stylesheets and /shared/zy-shell.css.
   On html, so the shared dialogs follow the light / dark theme.
   ========================================================================== */

html {
  --zy-bg: var(--bg-surface);
  --zy-surface: var(--bg-surface-2);
  --zy-border: var(--border-glass-strong);
  --zy-text: var(--text-primary);
  --zy-muted: var(--text-secondary);
  --zy-accent: var(--accent-gold);
  --zy-accent-ink: var(--gold-t);
  --zy-accent-text: var(--text-on-accent);
  --zy-ok: var(--accent-green);
  --zy-warn: var(--accent-gold-bright);
  --zy-danger: var(--accent-red);
  --zy-font: var(--font-body);
}

/* The shared Ask box (Ask Your Money): a field edge and placeholder that pass on both themes. */
.zy-ask-input { border-color: var(--field-edge); }
.zy-ask-input:focus { border-color: var(--accent-blue); }
.zy-ask-input::placeholder { color: var(--text-muted); opacity: 1; }

/* Topbar plan chip sits before "Add Transaction". */
.topbar-actions .zy-chip { min-height: 38px; }

/* Sidebar: Pro marker on locked items, Zyentora credit in the footer. */
.nav-pro {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--accent-gold-soft);
  color: var(--gold-t);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.sidebar-zy {
  display: inline-block;
  margin-top: 6px;
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sidebar-zy:hover { color: var(--text-primary); }

/* Locked page (Free user opening a Pro page). */
.lock-card {
  max-width: 560px;
  margin: 8px auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.lock-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gold-soft);
  color: var(--gold-t);
}
.lock-title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.01em; }
.lock-text { line-height: 1.6; max-width: 46ch; }
.lock-list { text-align: left; display: grid; gap: 8px; margin: 6px 0; font-size: var(--fs-sm); color: var(--text-secondary); }
.lock-list li { position: relative; padding-left: 22px; line-height: 1.45; }
.lock-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green-t); font-weight: 700; }
.lock-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-2); }

/* Locked feature teaser inside a Free page. */
.lock-teaser { cursor: pointer; margin-bottom: var(--space-3); }
.lock-teaser:hover { background: var(--bg-surface-hover); }
.lock-teaser:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.lock-teaser-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-2);
  color: var(--gold-t);
}

/* Profile: plan card actions. */
.plan-card-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

/* Onboarding: sign-in for returning users, Zyentora credit. */
.onboarding-signin { margin-top: var(--space-4); font-size: var(--fs-xs); color: var(--text-secondary); }
.onboarding-signin .link { font-size: inherit; }
.onboarding-brand { margin-top: var(--space-3); font-size: var(--fs-2xs); color: var(--text-muted); }
.onboarding-brand a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 560px) {
  .topbar-actions .zy-chip { padding: 0 10px; }
  .lock-actions .btn { width: 100%; }
}

/* Add-transaction form: Free's daily allowance. */
.tx-quota {
  margin-bottom: var(--space-4);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-gold-soft);
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  line-height: 1.5;
}
.tx-quota .link { font-size: inherit; color: var(--gold-t); }

/* Home: Ai Smart Insights spotlight (first card). */
.spotlight-card {
  margin-top: var(--space-5);
  padding: var(--space-5);
  border-color: color-mix(in srgb, var(--accent-gold) 35%, transparent);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-gold-soft), transparent 55%),
    var(--bg-surface);
  display: grid;
  gap: var(--space-3);
}
.spot-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.spot-title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.01em; }
.spot-insight { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-sm); line-height: 1.55; color: var(--text-secondary); }
.spot-insight b { color: var(--text-primary); }
.spot-insight--empty { color: var(--text-muted); }
.spot-emoji { font-size: 1.25rem; line-height: 1.2; flex-shrink: 0; }
.spot-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.spot-actions .btn { gap: 6px; }
.spot-pro { margin-left: 4px; }
@media (max-width: 560px) {
  .spot-actions .btn { flex: 1 1 140px; justify-content: center; }
}

/* Nav: the AI items carry the gold accent so they stand out. */
.nav-item.nav-spark svg, .bn-item.bn-spark svg { color: var(--gold-t); opacity: 1; }

/* Refer & Earn: Profile card and the slim Home banner (shared frame's openRefer). */
.refer-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-green-soft); color: var(--green-t);
}
.refer-banner {
  display: flex; align-items: stretch; gap: 0; margin-top: var(--space-4);
  border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
  background: var(--bg-surface); overflow: hidden;
}
.refer-banner-main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-3);
  padding: 10px 12px; border: 0; background: none; color: var(--text-primary);
  font: inherit; font-size: var(--fs-sm); text-align: left; cursor: pointer;
}
.refer-banner-main .refer-icon { width: 30px; height: 30px; }
.refer-banner-main > svg { color: var(--text-muted); flex-shrink: 0; }
.refer-banner-text { flex: 1; min-width: 0; line-height: 1.4; }
.refer-banner-x {
  width: 44px; flex-shrink: 0; border: 0; border-left: 1px solid var(--border-glass);
  background: none; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.refer-banner-main:hover, .refer-banner-x:hover { background: var(--bg-surface-hover); }
.refer-banner-main:focus-visible, .refer-banner-x:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: -2px; }
