/* ===========================================================
   Club FRESH — app skin (Design Brief, 11 Jun 2026)
   Luxury editorial. Light app, charcoal as the accent moment.
   Day-anchor tint driven by --cf-accent (set per weekday by app).
   =========================================================== */

.cf-root {
  /* FRESH anchor palette (brief §11) */
  --a-f: #c07152;   /* Fitness   · copper    · Monday    */
  --a-r: #d7ad82;   /* Relations · calico    · Tuesday   */
  --a-e: #c69b8b;   /* Environ.  · quicksand · Wednesday */
  --a-s: #748d78;   /* Self      · laurel    · Thursday  */
  --a-h: #101010;   /* Hustle    · onyx      · (Thu/Fri) */
  --gold: #b8915a;  /* the Door / FFB accent */

  /* day anchor (overridden per-day on .cf-root) */
  --cf-accent: #c07152;
  --cf-accent-ink: #ffffff;
  --cf-dark: #141210;          /* charcoal accent surface */
  --cf-radius: 20px;
  --cf-radius-sm: 14px;
  --cf-head: 'Editors Note', Georgia, serif;

  --ink-h: #1a1714;            /* onyx headings */
  --ink-b: #34302b;            /* body */
  --ink-m: #8c8780;            /* mute / labels */

  --canvas-top: #f7f5f1;
  --canvas-bot: #efece4;
  --paper: #ffffff;
  --cream: #ece7de;

  font-family: var(--sans);
  color: var(--ink-b);
  -webkit-font-smoothing: antialiased;
}

/* ---------- canvas + day tint ---------- */
.cf-screen {
  position: relative;
  min-height: 100%;
  background:
    radial-gradient(135% 52% at 50% 0%, color-mix(in srgb, var(--cf-accent) 15%, transparent) 0%, color-mix(in srgb, var(--cf-accent) 0%, transparent) 60%),
    linear-gradient(180deg, var(--canvas-top) 0%, var(--canvas-bot) 100%);
  padding: 54px 0 134px;
  box-sizing: border-box;
  transition: background .5s ease;
}
.cf-pad { padding-left: 22px; padding-right: 22px; }

/* ---------- typography ---------- */
.cf-display {
  font-family: var(--cf-head);
  font-weight: 400;
  color: var(--ink-h);
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0;
  font-size: 44px;
}
.cf-root[data-mode="modern"] .cf-display {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.cf-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-m);
  margin: 0;
}
.cf-h3 {
  font-family: var(--cf-head);
  font-weight: 400;
  color: var(--ink-h);
  font-size: 25px;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
}
.cf-root[data-mode="modern"] .cf-h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; }
.cf-script {
  font-family: 'Jhon Halend', cursive;
  color: var(--cf-accent);
  font-weight: 400;
}
.cf-num {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink-h);
  font-variant-numeric: tabular-nums;
}

/* ---------- glass pill buttons ---------- */
.cf-glass {
  height: 44px; min-width: 44px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 0 15px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 3px rgba(20,16,12,0.06), 0 6px 18px rgba(20,16,12,0.05);
  border: 0.5px solid rgba(255,255,255,0.85);
  color: var(--ink-h);
  font-size: 14px; font-weight: 500;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, transform .12s ease;
}
.cf-glass:active { transform: translateY(1px); }
.cf-glass.cf-icon-only { padding: 0; width: 44px; }
.cf-glass .cf-dot {
  position: absolute; top: 10px; right: 11px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--a-f); box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
}

/* ---------- cards ---------- */
.cf-card {
  background: var(--paper);
  border-radius: var(--cf-radius);
  box-shadow: 0 2px 14px rgba(20,16,12,0.05);
  border: 0.5px solid rgba(20,16,12,0.05);
}
.cf-card-dark {
  background: var(--cf-dark);
  border-radius: var(--cf-radius);
  color: #fff;
  box-shadow: 0 18px 44px rgba(20,16,12,0.22);
}
.cf-card-accent {
  background: var(--cf-accent);
  border-radius: var(--cf-radius);
  color: var(--cf-accent-ink);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--cf-accent) 34%, transparent);
}

/* ---------- segmented metric pills ---------- */
.cf-statrow { display: flex; gap: 9px; align-items: stretch; }
.cf-stat {
  border-radius: 999px; padding: 13px 4px 11px; text-align: center;
  display: flex; flex-direction: column; gap: 2px; justify-content: center;
}
.cf-stat .cf-stat-v { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.cf-stat .cf-stat-l { font-size: 10.5px; letter-spacing: 0.01em; }
.cf-stat--dark { background: var(--cf-dark); color: #fff; }
.cf-stat--accent { background: var(--cf-accent); color: var(--cf-accent-ink); }
.cf-stat--ghost {
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.55) 0 7px, rgba(255,255,255,0.15) 7px 13px);
  border: 1px solid rgba(20,16,12,0.10); color: var(--ink-h);
}
.cf-stat--outline { background: transparent; border: 1.4px solid rgba(20,16,12,0.2); color: var(--ink-h); }
.cf-statlabels { display: flex; gap: 9px; margin-bottom: 6px; }
.cf-statlabels > span { font-size: 11px; color: var(--ink-m); font-weight: 500; }

/* ---------- monogram avatar ---------- */
.cf-mono {
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--cf-head); color: #fff; flex-shrink: 0;
  line-height: 1; letter-spacing: 0.01em; position: relative; overflow: hidden;
}
.cf-mono::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 55%);
}
.cf-mono span { position: relative; z-index: 1; }

/* ---------- bottom tab bar ---------- */
.cf-tabbar {
  position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 40;
  height: 64px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(20,16,12,0.16), 0 0 0 0.5px rgba(255,255,255,0.7) inset;
  display: flex; align-items: center; justify-content: space-around; padding: 0 8px;
}
.cf-tab {
  flex: 1; height: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--ink-m);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  border: none; background: none; transition: color .2s ease;
}
.cf-tab span:last-child { font-size: 9.5px; font-weight: 500; letter-spacing: 0.02em; }
.cf-tab.is-active { color: var(--ink-h); }
.cf-tab.is-active span:last-child { font-weight: 600; }
.cf-tabtop { position: relative; display: flex; align-items: center; justify-content: center; }
.cf-tabdot {
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--cf-accent);
}

/* ---------- chips / badges / rules ---------- */
.cf-divider { height: 1px; background: rgba(20,16,12,0.08); border: 0; }
.cf-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px 7px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.72); border: 0.5px solid rgba(20,16,12,0.08);
  font-size: 12.5px; font-weight: 500; color: var(--ink-h);
}
.cf-badge { font-size: 11px; font-weight: 500; padding: 5px 11px; border-radius: 999px; }

/* ---------- chat (Club) ---------- */
.cf-bubble {
  max-width: 78%; padding: 10px 14px; border-radius: 18px;
  font-size: 14.5px; line-height: 1.4; color: var(--ink-b);
  background: var(--paper); border: 0.5px solid rgba(20,16,12,0.05);
  box-shadow: 0 1px 4px rgba(20,16,12,0.04);
}
.cf-bubble--me {
  background: var(--cf-dark); color: #fff; border: none;
  border-bottom-right-radius: 6px;
}
.cf-bubble--first { border-top-left-radius: 6px; }
.cf-react {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--paper); border: 0.5px solid rgba(20,16,12,0.08);
  border-radius: 999px; padding: 2px 8px; font-size: 12px; color: var(--ink-b);
  box-shadow: 0 1px 3px rgba(20,16,12,0.05);
}

.cf-fade-in { animation: none; }
@keyframes cfBlink { 0%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@keyframes cfPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.cf-scroll::-webkit-scrollbar { display: none; }
.cf-scroll { scrollbar-width: none; }
.cf-tap { transition: transform .12s ease; }
.cf-tap:active { transform: scale(0.98); }

button.cf-reset { border: none; background: none; padding: 0; margin: 0; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
