/* ==========================================================================
   UNICIRCLE living-network layer (auth · modals · chat · toasts)
   Uses the blue mosaic design tokens defined in main.css.
   ========================================================================== */
.uc-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--uc-navy); color: #fff; padding: 12px 18px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); z-index: 100000; font-family: var(--font-body); font-size: var(--text-sm);
  max-width: min(440px, 92vw); opacity: 0; transition: opacity .25s, transform .25s; border: 1px solid oklch(1 0 0 / .12);
}
.uc-toast.in { opacity: 1; transform: translate(-50%, 0); }
.uc-toast--warn { background: linear-gradient(135deg, var(--uc-cobalt), var(--uc-azure)); }
.uc-toast b { color: var(--uc-ice); }

.uc-modal-host { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; }
.uc-modal-backdrop { position: absolute; inset: 0; background: oklch(0.25 0.075 256 / .55); backdrop-filter: blur(5px); }
.uc-modal {
  position: relative; width: min(440px, 92vw); max-height: 90vh; overflow: auto;
  background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border); animation: uc-pop .22s cubic-bezier(.4,0,.2,1);
}
@keyframes uc-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.uc-modal-head { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--uc-navy); color: #fff; }
.uc-modal-head h3 { color: #fff; font-size: var(--text-lg); }
.uc-x { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; opacity: .8; }
.uc-x:hover { opacity: 1; }
.uc-modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.uc-lead { font-size: var(--text-sm); color: var(--color-text-secondary); }

.uc-tabs { display: flex; gap: 6px; background: var(--color-bg); padding: 4px; border-radius: var(--radius-full); }
.uc-tab { flex: 1; border: none; background: none; padding: 8px; border-radius: var(--radius-full);
  font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm); color: var(--color-text-secondary); cursor: pointer; }
.uc-tab.active { background: var(--color-surface); color: var(--uc-azure); box-shadow: var(--shadow-sm); }

.uc-linkedin { display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; border: none; border-radius: var(--radius-md); cursor: pointer;
  background: linear-gradient(135deg, var(--uc-azure), var(--uc-cobalt)); color: #fff;
  font-family: var(--font-heading); font-weight: 700; font-size: var(--text-sm); }
.uc-linkedin:hover { filter: brightness(1.06); }
.uc-linkedin .iconify { font-size: 20px; }

.uc-or { display: flex; align-items: center; gap: 10px; color: var(--color-text-muted); font-size: var(--text-xs); }
.uc-or::before, .uc-or::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }

.uc-form { display: flex; flex-direction: column; gap: 12px; }
.uc-form label { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-heading);
  font-size: var(--text-xs); font-weight: 700; color: var(--color-text-secondary); }
.uc-form input { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: var(--text-sm); color: var(--color-text-primary); font-family: var(--font-body); }
.uc-form input:focus { outline: none; border-color: var(--uc-sky); box-shadow: 0 0 0 3px oklch(0.68 0.125 238 / .15); }
.uc-check { flex-direction: row !important; align-items: center; gap: 8px; }
.uc-check input { width: auto; }
.uc-primary { border: none; background: var(--uc-azure); color: #fff; padding: 12px; border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: 700; font-size: var(--text-sm); cursor: pointer; }
.uc-primary:hover { background: oklch(from var(--uc-azure) calc(l - .06) c h); }
.uc-err { color: var(--um-master); font-size: var(--text-xs); margin: 0; }
.uc-hint { font-size: var(--text-xs); color: var(--color-text-secondary); line-height: 1.5; margin: 0; }
.uc-hint code { background: var(--color-bg); padding: 1px 5px; border-radius: 4px; font-size: 11px; }
.uc-drop { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px;
  border: 1.5px dashed var(--uc-sky); border-radius: var(--radius-md); color: var(--uc-azure);
  font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm); cursor: pointer; }
.uc-drop:hover { background: var(--color-accent-bg); }

.uc-popover { position: fixed; z-index: 99995; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; min-width: 190px; }
.uc-popover button { display: flex; align-items: center; gap: 10px; background: none; border: none; text-align: left;
  padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-heading);
  font-weight: 600; font-size: var(--text-sm); color: var(--color-text-primary); }
.uc-popover button:hover { background: var(--color-surface-hover); color: var(--uc-azure); }

.uc-livechip { font-size: 8px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  background: var(--uc-azure); color: #fff; padding: 1px 6px; border-radius: var(--radius-full); }

#uc-fab { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%;
  border: none; cursor: pointer; background: linear-gradient(135deg, var(--uc-azure), var(--uc-cobalt));
  color: #fff; box-shadow: var(--shadow-lg); z-index: 9000; font-size: 26px; display: grid; place-items: center; }
#uc-fab:hover { filter: brightness(1.08); transform: translateY(-2px); }

#uc-chat { position: fixed; right: 22px; bottom: 90px; width: min(560px, 94vw); height: min(520px, 78vh);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); z-index: 9001; display: none; flex-direction: column; overflow: hidden; }
#uc-chat.open { display: flex; }
.uc-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
  background: var(--uc-navy); color: #fff; }
.uc-chat-cols { display: grid; grid-template-columns: 180px 1fr; flex: 1; min-height: 0; }
.uc-chat-peers { border-right: 1px solid var(--color-border); overflow-y: auto; }
.uc-peer { display: flex; align-items: center; gap: 8px; width: 100%; border: none; background: none;
  padding: 10px 12px; cursor: pointer; font-size: var(--text-xs); font-weight: 600; color: var(--color-text-primary); text-align: left; }
.uc-peer img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.uc-peer:hover { background: var(--color-surface-hover); }
.uc-peer.active { background: var(--color-accent-bg); color: var(--uc-azure); }
.uc-chat-thread { display: flex; flex-direction: column; min-height: 0; }
.uc-thread-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.uc-msg { max-width: 78%; padding: 8px 12px; border-radius: 14px; font-size: var(--text-sm); line-height: 1.4;
  background: var(--color-bg); color: var(--color-text-primary); align-self: flex-start; }
.uc-msg.mine { background: var(--uc-azure); color: #fff; align-self: flex-end; }
.uc-thread-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--color-border); }
.uc-thread-form input { flex: 1; border: 1px solid var(--color-border); border-radius: var(--radius-full);
  padding: 10px 14px; font-size: var(--text-sm); font-family: var(--font-body); }
.uc-thread-form input:focus { outline: none; border-color: var(--uc-sky); }
.uc-thread-form .uc-primary { padding: 8px 16px; border-radius: var(--radius-full); }
@media (width < 560px) { .uc-chat-cols { grid-template-columns: 120px 1fr; } }

/* ===== LANDING PAGE (non-authenticated view) ===== */
.uc-landing { background: var(--color-bg); }

/* Hero */
.uc-lp-hero {
  background: linear-gradient(140deg, var(--uc-navy) 0%, var(--uc-cobalt) 55%, var(--uc-azure) 100%);
  padding: clamp(56px, 9vw, 112px) var(--space-5) clamp(72px, 11vw, 140px);
}
.uc-lp-hero-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: center;
}
.uc-lp-eyebrow {
  display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-4);
  font-size: 11px; font-weight: 700; color: var(--uc-ice);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.uc-lp-h1 {
  font-family: var(--font-heading); font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 800; line-height: 1.08; color: #fff; margin-bottom: var(--space-4);
}
.uc-lp-sub {
  font-size: clamp(var(--text-sm), 1.4vw, var(--text-lg));
  color: oklch(1 0 0 / .82); line-height: 1.65; margin-bottom: var(--space-6); max-width: 460px;
}
.uc-lp-join-form { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); max-width: 480px; }
.uc-lp-email { flex: 1; padding: 14px 16px; border: 2px solid oklch(1 0 0 / .28); border-radius: var(--radius-md); background: oklch(1 0 0 / .1); color: #fff; font-family: var(--font-body); font-size: var(--text-sm); transition: border-color .2s; }
.uc-lp-email::placeholder { color: oklch(1 0 0 / .45); }
.uc-lp-email:focus { outline: none; border-color: var(--uc-sky); background: oklch(1 0 0 / .14); }
.uc-lp-join-btn { padding: 14px 22px; background: #fff; color: var(--uc-navy); border: none; border-radius: var(--radius-md); font-family: var(--font-heading); font-weight: 800; font-size: var(--text-sm); cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.uc-lp-join-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px oklch(0 0 0 / .22); background: var(--uc-frost); }
.uc-lp-signin-hint { font-size: var(--text-sm); color: oklch(1 0 0 / .68); margin-bottom: var(--space-5); }
.uc-lp-signin-hint a { color: var(--uc-sky); font-weight: 700; text-decoration: underline; cursor: pointer; }
.uc-lp-badges { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.uc-lp-badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; background: oklch(1 0 0 / .09); border: 1px solid oklch(1 0 0 / .18); border-radius: var(--radius-full); font-size: 10.5px; font-weight: 700; color: var(--uc-ice); }
.uc-lp-visual { border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 32px 80px oklch(0 0 0 / .4); aspect-ratio: 4 / 3; }
.uc-lp-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Stats bar */
.uc-lp-stats { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: var(--space-6) var(--space-4); }
.uc-lp-stats-row { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: clamp(var(--space-4), 5vw, var(--space-12)); flex-wrap: wrap; }
.uc-lp-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.uc-lp-stat-n { font-family: var(--font-heading); font-size: clamp(22px, 3vw, 34px); font-weight: 800; color: var(--uc-azure); }
.uc-lp-stat-l { font-size: 11px; color: var(--color-text-secondary); font-weight: 500; letter-spacing: .3px; }
.uc-lp-sep { width: 1px; height: 42px; background: var(--color-border); }

/* Features */
.uc-lp-feats { padding: clamp(56px, 8vw, 96px) var(--space-4); background: var(--color-bg); }
.uc-lp-title { font-family: var(--font-heading); font-size: clamp(22px, 3vw, 36px); font-weight: 800; color: var(--color-text-primary); text-align: center; margin-bottom: var(--space-2); }
.uc-lp-sub2 { font-size: var(--text-sm); color: var(--color-text-secondary); text-align: center; margin-bottom: var(--space-8); }
.uc-lp-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--space-5); }
.uc-lp-feat { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); transition: transform .2s, box-shadow .2s; }
.uc-lp-feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.uc-lp-feat-ico { width: 48px; height: 48px; border-radius: var(--radius-md); display: grid; place-items: center; font-size: 22px; color: #fff; margin-bottom: var(--space-3); }
.uc-lp-feat h3 { font-family: var(--font-heading); font-size: var(--text-md); font-weight: 700; color: var(--color-text-primary); margin-bottom: var(--space-2); }
.uc-lp-feat p { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: 1.6; }

/* Why section */
.uc-lp-why { background: var(--uc-navy); color: #fff; padding: clamp(56px, 8vw, 96px) var(--space-4); }
.uc-lp-why-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: center; }
.uc-lp-tag { display: inline-block; padding: 4px 12px; background: oklch(1 0 0 / .09); border: 1px solid oklch(1 0 0 / .18); border-radius: var(--radius-full); font-size: 10.5px; font-weight: 700; color: var(--uc-ice); text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--space-3); }
.uc-lp-why-text h2 { font-family: var(--font-heading); font-size: clamp(22px, 3vw, 36px); font-weight: 800; color: #fff; margin-bottom: var(--space-5); line-height: 1.2; }
.uc-lp-checks { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }
.uc-lp-checks li { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); color: oklch(1 0 0 / .85); line-height: 1.5; }
.uc-lp-checks .iconify { flex-shrink: 0; font-size: 18px; margin-top: 1px; }
.uc-lp-prof { font-size: 11px; color: oklch(1 0 0 / .38); border-top: 1px solid oklch(1 0 0 / .1); padding-top: var(--space-3); margin-top: var(--space-2); line-height: 1.6; }

/* Testimonials */
.uc-lp-quotes { padding: clamp(56px, 8vw, 96px) var(--space-4); background: var(--color-surface); }
.uc-lp-quote { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); position: relative; }
.uc-lp-quote::before { content: '"'; position: absolute; top: 10px; left: 18px; font-size: 56px; line-height: 1; font-family: var(--font-heading); color: var(--uc-azure); opacity: .18; pointer-events: none; }
.uc-lp-quote p { font-size: var(--text-sm); line-height: 1.75; color: var(--color-text-primary); font-style: italic; margin-bottom: var(--space-4); padding-top: var(--space-2); }
.uc-lp-quote-foot { display: flex; align-items: center; gap: var(--space-3); }
.uc-lp-quote-foot img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--uc-azure); }
.uc-lp-quote-foot strong { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700; display: block; color: var(--color-text-primary); }
.uc-lp-quote-foot span { font-size: 11px; color: var(--color-text-secondary); }

/* Bottom CTA */
.uc-lp-cta { background: linear-gradient(135deg, var(--uc-cobalt) 0%, var(--uc-azure) 100%); padding: clamp(64px, 10vw, 112px) var(--space-4); text-align: center; color: #fff; }
.uc-lp-cta h2 { font-family: var(--font-heading); font-size: clamp(24px, 4vw, 44px); font-weight: 800; color: #fff; margin-bottom: var(--space-3); }
.uc-lp-cta > p { font-size: var(--text-lg); color: oklch(1 0 0 / .8); margin-bottom: var(--space-6); }
.uc-lp-cta-big { padding: 18px 48px; background: #fff; color: var(--uc-navy); border: none; border-radius: var(--radius-lg); font-family: var(--font-heading); font-weight: 800; font-size: var(--text-lg); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.uc-lp-cta-big:hover { transform: translateY(-3px); box-shadow: 0 16px 40px oklch(0 0 0 / .25); }
.uc-lp-fine { font-size: 11px; color: oklch(1 0 0 / .4); margin-top: var(--space-4); }

/* Footer */
.uc-lp-foot { background: var(--uc-navy); padding: var(--space-5) var(--space-4); border-top: 1px solid oklch(1 0 0 / .1); }
.uc-lp-foot-row { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.uc-lp-foot-brand { display: flex; align-items: center; gap: var(--space-2); color: var(--uc-ice); font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm); }
.uc-lp-foot-links { display: flex; align-items: center; gap: var(--space-4); font-size: 11px; color: oklch(1 0 0 / .4); }
.uc-lp-foot-links a { color: var(--uc-sky); font-weight: 600; cursor: pointer; }

/* Responsive */
@media (max-width: 768px) {
  .uc-lp-hero-inner, .uc-lp-why-inner { grid-template-columns: 1fr; }
  .uc-lp-visual { display: none; }
  .uc-lp-join-form { flex-direction: column; }
  .uc-lp-sep { display: none; }
}
