/*


*/


.flash-toasts{
  position: fixed;
  top: 100px;
  right: 18px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  float:right;
}

.flash-toast{
    padding: 0.5rem 1rem;
    border: none;
    color: #fff;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    width: 250px;
    margin: 0.5em;
    transition: filter 0.2s ease-in-out,
        transform 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    outline: none;
    background: #3498db;
    color: #fff;

  }

.flash-toast__icon{
  width: 28px;
  margin: 20px;
  height: 28px;
  border-radius: 999px;
  flex: 0 0 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    0 8px 20px rgba(15,23,42,0.18),
    0 0 0 1px rgba(255,255,255,0.22) inset;
}

.flash-toast__icon::before{
  content: "i";
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  transform: translateY(-0.5px);
}

.flash-toast__body{
  min-width: 0;
  color:#000;
  min-height:90px;
}

.flash-toast__msg{

  color: rgba(255,255,255,0.95);
  font-size: 14px;
  line-height: 1.35;
  text-shadow: 0 1px 0 rgba(2,6,23,0.10);
  word-break: break-word;
}

.flash-toast__close{
  margin-left: auto;
  border: 0;
  background: rgba(255,255,255,0.14);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  font-size: 18px;
}

.flash-toast__close:hover{
  background: rgba(255,255,255,0.22);
}

.flash-toast--notice,
.flash-toast--success{
  background: rgba(2, 132, 199, 0.80);
}

.flash-toast--alert,
.flash-toast--error{
  background: rgba(239, 68, 68, 0.18);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(22px); }
}

.flash-toast.is-in{
  animation: toast-in 240ms ease-out forwards;
}

.flash-toast.is-out{
  animation: toast-out 180ms ease-in forwards;
}

@media (max-width: 720px){
  .flash-toasts{ left: 12px; right: 12px; }
  .flash-toast{ width: auto; min-width: 0; max-width: none; }
}

/*
 *= require_self
 *= require_tree .
*/
/* Coachable Admin: glass panel shell */


.admin-body {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, rgba(2,132,199,.18), transparent 55%),
              radial-gradient(circle at 85% 10%, rgba(6,182,212,.16), transparent 55%),
              radial-gradient(circle at 70% 100%, rgba(14,165,233,.12), transparent 50%),
              linear-gradient(180deg, #0b1220, #040811 65%);
}

.admin-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.admin-orb {
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 999px;
  filter: blur(32px);
  opacity: .45;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), rgba(6,182,212,.2), rgba(2,132,199,0));
  animation: adminFloat 10s ease-in-out infinite;
}

.admin-orb.orb-1 { top: -180px; left: -160px; animation-duration: 12s; }
.admin-orb.orb-2 { top: 10%; right: -220px; animation-duration: 14s; }
.admin-orb.orb-3 { bottom: -240px; left: 25%; animation-duration: 16s; }

@keyframes adminFloat {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(14px, -10px, 0) scale(1.05); }
}

.admin-wrap {
  padding: 26px;
}

.admin-panel {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(90deg, rgba(2,132,199,.18), rgba(6,182,212,.10));
}

.admin-brand { display: flex; align-items: center; gap: 12px; }
.admin-brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #e0f2fe;
  background: linear-gradient(135deg, rgba(6,182,212,.55), rgba(2,132,199,.65));
  border: 1px solid rgba(255,255,255,.22);
}
.admin-brand__title { color: #e2e8f0; font-weight: 800; line-height: 1; }
.admin-brand__sub { color: rgba(226,232,240,.75); font-size: 12px; margin-top: 2px; }

.admin-head__right { display: flex; align-items: center; gap: 14px; }
.admin-user { display: flex; align-items: center; gap: 10px; }
.admin-user__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #e0f2fe;
  background: rgba(2,132,199,.22);
  border: 1px solid rgba(255,255,255,.18);
}
.admin-user__name { color: rgba(226,232,240,.85); font-size: 13px; }

.admin-panel__body {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 640px;
}

.admin-nav {
  border-right: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(2,6,23,.35), rgba(2,6,23,.12));
}

.admin-main { padding: 18px; }

.admin-nav__inner { padding: 14px; display: flex; flex-direction: column; gap: 16px; }
.admin-nav__label { color: rgba(226,232,240,.65); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.admin-nav__section { display: flex; flex-direction: column; gap: 8px; }

.admin-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(226,232,240,.86);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}

.admin-nav__item:hover { transform: translateY(-1px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); }
.admin-nav__item.is-active { background: rgba(6,182,212,.16); border-color: rgba(56,189,248,.25); }
.admin-nav__item.is-disabled { opacity: .6; cursor: not-allowed; }
.admin-nav__soon { margin-left: auto; font-size: 11px; color: rgba(226,232,240,.65); font-style: normal; }

.admin-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.admin-h1 { margin: 0; color: #e2e8f0; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.admin-h2 { margin: 0 0 10px; color: #e2e8f0; font-size: 15px; font-weight: 800; }
.admin-sub { margin: 6px 0 0; color: rgba(226,232,240,.75); font-size: 13px; }

.admin-card {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px;
}

.admin-card--tight{
  padding: 12px;
}

.admin-actions { display: flex; gap: 10px; margin-bottom: 12px; }

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(226,232,240,.92);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  transition: transform .12s ease, background-color .12s ease;
}

.admin-btn--sm{
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
}

.admin-btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.09); }
.admin-btn--primary { background: linear-gradient(135deg, rgba(6,182,212,.25), rgba(2,132,199,.35)); border-color: rgba(56,189,248,.30); }
.admin-btn--danger { background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.35); }
.admin-btn--warning { background: rgba(245,158,11,.16); border-color: rgba(245,158,11,.35); }

/* Inline text-button used inside admin tables */
.admin-link--btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: rgba(226,232,240,.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.admin-link--btn:hover { color: #fff; }

/* Status badges */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.admin-badge--success { border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.14); }
.admin-badge--danger  { border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.14); }

.admin-link { color: #7dd3fc; text-decoration: none; font-weight: 700; }
.admin-link:hover { text-decoration: underline; }

.admin-table-wrap { overflow-x: auto; }

/* --------------------------------------------------------------------------
   Admin Library uploader
----------------------------------------------------------------------------*/

.admin-lib-card { position: relative; }

.admin-lib-form { margin-top: 8px; }

.admin-lib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-lib-field--full { grid-column: 1 / -1; }

.admin-lib-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(226,232,240,.78);
}

.admin-lib-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(226,232,240,.92);
  outline: none;
}

.admin-lib-input:focus {
  border-color: rgba(56,189,248,.35);
  box-shadow: 0 0 0 3px rgba(56,189,248,.12);
}

.admin-lib-provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-lib-provider-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(226,232,240,.88);
}

.admin-lib-provider-pill input { transform: translateY(1px); }
.admin-lib-provider-name { font-weight: 800; font-size: 13px; }

.admin-lib-file { display: inline-flex; align-items: center; gap: 8px; }
.admin-lib-file__icon { color: rgba(125,211,252,.95); }

/* Recent table: prevent horizontal scroll + "skewed" wrapping inside narrow cards */
.admin-lib-recent .admin-table-wrap{ overflow-x: hidden; }

.admin-table--wrap{ table-layout: fixed; }
.admin-table--wrap th,
.admin-table--wrap td{
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-lib-recent .admin-table--wrap th:nth-child(1){ width: 28%; }
.admin-lib-recent .admin-table--wrap th:nth-child(2){ width: 34%; }
.admin-lib-recent .admin-table--wrap th:nth-child(3){ width: 22%; }
.admin-lib-recent .admin-table--wrap th:nth-child(4){ width: 12%; }
.admin-lib-recent .admin-table--wrap th:nth-child(5){ width: 4%; }

.admin-lib-file{ align-items: flex-start; }
.admin-lib-file span{ display: block; line-height: 1.25; }

.admin-muted { color: rgba(226,232,240,.70); }

@media (max-width: 900px) {
  .admin-lib-grid { grid-template-columns: 1fr; }
  .admin-lib-provider-grid { grid-template-columns: 1fr; }
}
.admin-table { width: 100%; border-collapse: collapse; font-size:11px; }
.admin-table th {
  text-align: left;
  font-size: 12px;
  color: rgba(226,232,240,.72);
  font-weight: 800;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.admin-table td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(226,232,240,.90);
  vertical-align: top;
}
.admin-table__tight { width: 120px; }
.admin-table__actions { width: 160px; text-align: right; white-space: nowrap; }
.admin-empty { text-align: center; color: rgba(226,232,240,.70); padding: 18px; }

.admin-row-title { display: flex; align-items: center; gap: 10px; }
.admin-row-title__main { font-weight: 900; color: rgba(226,232,240,.95); }
.admin-row-title__sub { font-size: 12px; color: rgba(226,232,240,.65); margin-top: 2px; }
.admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #e0f2fe;
  background: linear-gradient(135deg, rgba(6,182,212,.35), rgba(2,132,199,.55));
  border: 1px solid rgba(255,255,255,.18);
}

.admin-muted { color: rgba(226,232,240,.72); }

.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-form-box {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(2,6,23,.22);
  padding: 14px;
}
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-help { margin-top: 6px; font-size: 12px; color: rgba(226,232,240,.62); }
.admin-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; }

.admin-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-kv__label { font-size: 12px; color: rgba(226,232,240,.65); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.admin-kv__value { margin-top: 4px; font-weight: 800; }
.admin-divider { height: 1px; background: rgba(255,255,255,.10); margin: 14px 0; }
.admin-prose { color: rgba(226,232,240,.86); font-size: 14px; line-height: 1.55; }

@media (max-width: 920px) {
  .admin-panel__body { grid-template-columns: 1fr; }
  .admin-nav { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .admin-nav__inner { flex-direction: row; flex-wrap: wrap; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-kv { grid-template-columns: 1fr; }
}



/* --- Admin panel card + utilities --- */
.admin-panel-card{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 18px;
  overflow: hidden;
}

.admin-panel-card__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(90deg, rgba(2,132,199,.18), rgba(6,182,212,.10));
}

.admin-panel-card__title{
  margin: 0;
  font-size: 20px;
  letter-spacing: .2px;
  color: rgba(255,255,255,.95);
}

.admin-panel-card__subtitle{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(226,232,240,.75);
}

.admin-panel-card__body{
  padding: 16px 18px;
}

.admin-muted{
  color: rgba(226,232,240,.68);
}

.u-right{ text-align:right; }
.u-mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* Analytics */
.admin-analytics{ display:flex; flex-direction:column; gap: 14px; }

.admin-metrics{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(2,132,199,.06);
  border-radius: 16px;
  padding: 12px 14px;
}

.metric--wide{ grid-column: 1 / -1; }

.metric__label{
  font-size: 12px;
  color: rgba(226,232,240,.75);
}

.metric__value{
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  color: rgba(255,255,255,.95);
}

.metric__chart{ margin-top: 10px; }

.spark{
  display:flex;
  align-items:flex-end;
  height: 64px;
  gap: 3px;
  padding: 10px 10px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(15,23,42,.24);
}

.spark__bar{
  flex: 1 1 auto;
  min-width: 4px;
  border-radius: 10px 10px 2px 2px;
  background: linear-gradient(180deg, rgba(56,189,248,.95), rgba(2,132,199,.55));
  opacity: .85;
}

.spark__axis{
  display:flex;
  justify-content:space-between;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(226,232,240,.65);
}

.admin-grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-table-card{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  overflow:hidden;
}

.admin-table-card__title{
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(2,132,199,.06);
}

.admin-table--compact td, .admin-table--compact th{
  padding: 10px 12px;
}

/* Logs */
.admin-log{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow:hidden;
  background: rgba(2,6,23,.55);
}

.admin-log__pre{
  margin: 0;
  padding: 14px;
  max-height: 65vh;
  overflow:auto;
  color: rgba(226,232,240,.90);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre;
}

@media (max-width: 980px){
  .admin-grid-2{ grid-template-columns: 1fr; }
  .admin-metrics{ grid-template-columns: 1fr; }
}


/* Email Templates polish */
.admin-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px;}
.admin-toolbar__left{flex:1;min-width:0}
.admin-toolbar code{display:inline-block;margin-right:6px;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);color:rgba(226,232,240,.92);font-weight:800;font-size:12px;}
.admin-code{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12px; color: rgba(226,232,240,.92);}
.admin-ellipsis{max-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.admin-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);font-weight:800;font-size:12px;color:rgba(226,232,240,.9);}
.admin-pill--on{border-color: rgba(56,189,248,.32);background: rgba(2,132,199,.18);}
.admin-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;}
.admin-iconbtn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:rgba(226,232,240,.9);text-decoration:none;transition:transform .12s ease, background-color .12s ease;}
.admin-iconbtn:hover{transform:translateY(-1px);background:rgba(255,255,255,.09);}
.admin-iconbtn--danger{border-color: rgba(239,68,68,.35);background: rgba(239,68,68,.12);}
.admin-iconbtn--danger:hover{background: rgba(239,68,68,.18);}
.admin-divider{height:1px;background:rgba(255,255,255,.10);margin:18px 0;}
.admin-inline--spread{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.admin-form-grid--email{grid-template-columns: repeat(2, minmax(0, 1fr));}
.admin-field--half{grid-column: span 1;}
@media (max-width: 980px){
  .admin-form-grid--email{grid-template-columns: 1fr;}
  .admin-field--half{grid-column: 1 / -1;}
}
.admin-textarea--mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}
.admin-input--readonly{opacity:.9;cursor:not-allowed;}
.admin-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:6px;}
.admin-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px;}
.admin-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:rgba(226,232,240,.92);font-weight:800;font-size:12px;cursor:pointer;}
.admin-chip:hover{background:rgba(255,255,255,.09);}
.admin-preview{margin-top:12px;border:1px solid rgba(255,255,255,.12);border-radius:16px;overflow:hidden;background:rgba(255,255,255,.04);}
.admin-preview__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:rgba(255,255,255,.04);border-bottom:1px solid rgba(255,255,255,.10);}
.admin-preview__frame{width:100%;height:220px;border:0;background:white;}



/* ===== Email Templates UI fixes (rendering + responsive) ===== */
.admin-form-box{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
}

.admin-field__label{
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-input, .admin-textarea{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.admin-input--sm{
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 10px;
}

.admin-input--readonly{
  width: auto;
  min-width: 220px;
  background: rgba(255,255,255,0.78);
}

.admin-textarea{
  min-height: 220px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.admin-inline{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-inline--spread{
  justify-content: space-between;
}

.admin-form-grid--email{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.admin-field--wide{
  grid-column: 1 / -1;
}

.admin-field--right{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.admin-check{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.admin-check input[type="checkbox"]{
  width: 18px;
  height: 18px;
}

.admin-token-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-token{
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.9);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.admin-token:hover{ background: rgba(0,0,0,0.28); }
.admin-token__plus{
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  margin-right: 6px;
}

.admin-preview{
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.admin-preview__hdr{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-preview__title{
  font-weight: 800;
}

.admin-preview__frame{
  width: 100%;
  height: 340px;
  border: 0;
  background: #fff;
}

.admin-icon{
  display: inline-block;
  margin-right: 6px;
  opacity: 0.9;
}

/* smaller screens */
@media (max-width: 980px){
  .admin-form-grid--email{ grid-template-columns: 1fr; }
  .admin-field--right{ justify-content: flex-start; }
}
/* Auth pages (Devise sign-up split paths)
   - glass card
   - lotus background (login-bg.png)
*/

.auth-wrap{
  position: relative;
  min-height: calc(100vh - 140px);
  padding: 48px 24px 56px;
  overflow: hidden;
}

.auth-bg{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-bg__image{
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1.05);
  opacity: 0.35;
  transform: scale(1.04);
}

.auth-bg__veil{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 700px at 20% 30%, rgba(60,160,255,0.16), rgba(0,0,0,0) 60%),
    radial-gradient(700px 600px at 80% 25%, rgba(110,220,255,0.12), rgba(0,0,0,0) 55%),
    linear-gradient(to bottom, rgba(255,255,255,0.88), rgba(245,250,255,0.90));
}

.auth-bg__orb{
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.18;
}
.auth-bg__orb.orb-1{ left: -220px; top: 120px; background: rgba(0,170,255,1); }
.auth-bg__orb.orb-2{ right: -240px; top: 40px; background: rgba(140,230,255,1); }

.auth-grid{
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

@media (max-width: 960px){
  .auth-grid{ grid-template-columns: 1fr; }
  .auth-hero{ display: none; }
  .auth-wrap{ padding-top: 28px; }
}

.auth-hero{
  padding: 12px 12px 12px 8px;
}

.auth-hero__badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  font-weight: 600;
  letter-spacing: 0.2px;
  color: rgba(15, 23, 42, 0.82);
}

.auth-hero__title{
  margin: 14px 0 10px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: rgba(10, 22, 41, 0.92);
}

.auth-hero__subtitle{
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.72);
  max-width: 46ch;
}

.auth-hero__bullets{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: rgba(15, 23, 42, 0.70);
}

.auth-hero__bullets li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.auth-card{
  border-radius: 22px;
  padding: 26px 26px 18px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-card__title{
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgba(10, 22, 41, 0.92);
}

.auth-card__subtitle{
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.68);
}

.auth-form{
  display: grid;
  gap: 14px;
}

.auth-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
}

.auth-check{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.78);
  user-select: none;
}

.auth-check input[type="checkbox"]{
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.18);
}

.auth-link{
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 120, 255, 0.95);
  text-decoration: none;
}

.auth-link:hover{
  text-decoration: underline;
}

.auth-field{
  display: grid;
  gap: 7px;
}

.auth-label{
  font-size: 13px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.78);
}

.auth-input{
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255,255,255,0.70);
  color: rgba(15, 23, 42, 0.92);
  outline: none;
  transition: box-shadow 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.auth-input:focus{
  border-color: rgba(0, 140, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 140, 255, 0.14);
  transform: translateY(-1px);
}

.auth-hint{
  font-size: 12px;
  color: rgba(15, 23, 42, 0.56);
}

.auth-btn{
  margin-top: 6px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(0,130,255,1), rgba(0,200,255,1));
  box-shadow: 0 18px 40px rgba(0,120,255,0.24);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.auth-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 22px 46px rgba(0,120,255,0.28);
}

.auth-btn:active{
  transform: translateY(0px);
  box-shadow: 0 14px 30px rgba(0,120,255,0.22);
}

.auth-footer{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: grid;
  gap: 10px;
}

.auth-alt{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.70);
}

.auth-links{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.auth-link{
  color: rgba(0, 120, 210, 0.92);
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover{
  text-decoration: underline;
}

.auth-dot{
  color: rgba(15, 23, 42, 0.35);
}
/* Coachable Dashboards – shared look for client & provider
   Uses your existing brand palette where possible. */


:root{
  --brand-500:#06b6d4;   /* cyan / teal */
  --brand-600:#0284c7;   /* blue-leaning teal */
  --brand-700:#0369a1;   /* deep blue */

  --ink-950:#0b1220;
  --ink-900:#111827;
  --ink-700:#374151;
  --ink-500:#6b7280;
  --ink-300:#d1d5db;
  --ink-200:#e5e7eb;
  --ink-100:#f3f4f6;
  --white:#ffffff;

  --shell-bg: radial-gradient(circle at top left,#0f172a,#020617 46%,#020617 100%);
  --panel-bg: rgba(15,23,42,.83);
  --panel-soft: rgba(15,23,42,.74);
  --panel-border: rgba(148,163,184,.36);
  --blur: 18px;

  --gutter: 18px;
}

/* Root wrapper for dashboards */
.dashboard-wrap{

  background-image:
    radial-gradient(circle at top left, rgba(255,255,255,.65), rgba(255,255,255,.55) 45%, rgba(226,232,240,.75) 90%),
    url(/assets/steps-bg-leaves.png);

  max-width:1200px;
  margin:40px auto 60px;
  padding:24px 24px 32px;
  border-radius:28px;

  /* FROSTED WHITE PANEL STYLE (matches main page cards) */
  border:1px solid rgba(148,163,184,.35);
  backdrop-filter:blur(22px) saturate(160%);

  color:var(--ink-900);
  position:relative;
  overflow:hidden;
}

/* Provider dashboard: lotus background behind frosted shell */
.dash-lotus-bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden; /* prevent horizontal scroll from blurred/scaled layers */
}
.dash-lotus-bg__image{
  position: absolute;
  inset: 0; /* do NOT use negative inset here (causes horizontal scroll) */
  background-size: cover;
  background-position: center;
  background-image: url(/assets/login-bg.png);
  /* Keep the lotus visible: light blur + a touch more saturation */
  filter: blur(3px) saturate(1.18) contrast(1.05);
  opacity: 0.38;
  transform: scale(1.06);
}
.dash-lotus-bg__veil{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 700px at 20% 30%, rgba(60,160,255,0.16), rgba(0,0,0,0) 20%),
    radial-gradient(700px 600px at 80% 25%, rgba(110,220,255,0.12), rgba(0,0,0,0) 55%),
    linear-gradient(to bottom, rgba(255,255,255,0.66), rgba(245,250,255,0.76));
}
.dash-lotus-bg__orb{
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(46px);
  opacity: 0.18;
}
.dash-lotus-bg__orb.orb-1{ left: -220px; top: 120px; background: rgba(0,170,255,1); }
.dash-lotus-bg__orb.orb-2{ right: -240px; top: 40px; background: rgba(140,230,255,1); }

/* Ensure the dashboard shell sits above the lotus bg */
.dashboard-wrap{
  z-index: 1;
}

/* Lotus variant: let lotus show through (remove leaf texture) */
.dashboard-wrap--lotus{
  background-image:
    radial-gradient(circle at top left, rgba(255,255,255,.70), rgba(255,255,255,.60) 45%, rgba(226,232,240,.78) 90%);
}
.dashboard-wrap::before{
  content:"";
  position:absolute;
  inset:-80px;
  background:
    radial-gradient(circle at 10% 0%,rgba(56,189,248,.12),transparent 55%),
    radial-gradient(circle at 90% 0%,rgba(129,140,248,.10),transparent 52%);
  opacity:.9;
  filter:blur(38px);
  pointer-events:none;
}
.dashboard-wrap::after{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:27px;
  background:radial-gradient(circle at top,rgba(255,255,255,.6),rgba(248,250,252,.9));
  mix-blend-mode:screen;
  opacity:.7;
  pointer-events:none;
}
.dashboard-wrap > *{
  position:relative;
  z-index:1;
}

/* Top bar */
.dash-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
}
.dash-title{
  display:flex;
  align-items:center;
  gap:14px;
}
.avatar{
  width:40px;
  height:40px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  font-weight:700;
  color:#0b1120;
  background:radial-gradient(circle at 30% 0%,#e0f2fe,#38bdf8);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.8),
    0 18px 32px rgba(15,23,42,.75);
}

/* Uploaded avatar images should fill the circle */
.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.dash-title h1{
  margin:0;
  font-size:22px;
  letter-spacing:-.02em;
  color:var(--ink-900);
}
.dash-subtle{
  margin:3px 0 0;
  font-size:13px;
  color:var(--ink-500);
}
.dash-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

/* Buttons */
.btn-mini{
  font-size:13px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.75);
  background:rgba(255,255,255,.7);
  color:var(--ink-900);
  text-decoration:none;
  display:inline-flex; align-items:center; gap:6px;
  backdrop-filter:blur(10px);
}
.btn-mini:hover{
  background:#ffffff;
  border-color:rgba(148,163,184,.9);
  color:#020617;
}
.btn-mini.btn-cta{
  border:none;
  background:linear-gradient(135deg,var(--brand-500),var(--brand-700));
  color:#f9fafb;
  box-shadow:0 14px 35px rgba(37,99,235,.4);
}

/* =====================
   Upcoming sessions (client dashboard)
   ===================== */
.upcoming-sessions .upcoming-sessions-list{ display:flex; flex-direction:column; gap:10px; }

.upcoming-session-row{
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 12px;
  border-radius:18px;
  border:1px solid rgba(148,163,184,.32);
  background:rgba(255,255,255,.78);
  backdrop-filter: blur(10px) saturate(150%);
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
}
.upcoming-session-row:hover{
  border-color: rgba(148,163,184,.48);
  background: rgba(255,255,255,.9);
}
.upcoming-session-row.is-invite{
  border-color: rgba(59,130,246,.35);
  background: rgba(59,130,246,.05);
}

.upcoming-when{
  min-width: 150px;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.upcoming-date{ font-weight:700; font-size:14px; color: var(--ink-900); }
.upcoming-time{ font-size:12px; color: var(--ink-500); font-weight:600; }
.upcoming-time-sep{ margin:0 6px; color: rgba(100,116,139,.9); }

.upcoming-main{ flex: 1 1 auto; min-width: 0; }
.upcoming-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  font-size:14px;
  color: var(--ink-900);
}
.upcoming-badge{
  font-size:11px;
  font-weight:700;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(59,130,246,.25);
  background: rgba(59,130,246,.10);
  color: #1d4ed8;
}

.upcoming-meta{
  margin-top:3px;
  font-size:12px;
  color: var(--ink-500);
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.upcoming-meta .dot{ color: rgba(100,116,139,.65); }

.upcoming-desc{
  margin-top:6px;
  font-size:13px;
  color: rgba(30,41,59,.92);
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.upcoming-desc.is-empty{ color: rgba(100,116,139,.9); font-style: italic; }

@media (max-width: 640px){
  .upcoming-session-row{ flex-wrap:wrap; }
  .upcoming-when{ min-width: 0; width: 100%; }
  .upcoming-session-row .list-actions{ width:100%; justify-content:flex-start; }
}

/* Layout: sidebar + main */
.dash-layout,
.dash-grid{
  display:grid;
  grid-template-columns: 270px minmax(0,1fr);
  gap:26px;
  align-items:flex-start;
}
@media (max-width: 860px){
  .dash-layout,
  .dash-grid{
    grid-template-columns: minmax(0,1fr);
  }
}

/* Sidebar */
.dash-sidebar,
.dash-side{
  background:rgba(255,255,255,.02);
  border-radius:22px;
  padding:0;
}

/* Titles used in sidebar cards & sections */
.dash-sidebar h2,
.dash-side h2,
.dash-card .card-title{
  margin:0 0 10px;
  font-size:15px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--ink-500);
}

/* Sidebar card wrapper used in client/provider dashboards */
.dash-card{
  background:rgba(255,255,255,.94);
  border-radius:18px;
  box-shadow:var(--panel-shadow);
  padding:14px 14px 16px;
  border:1px solid rgba(148,163,184,.28);
  margin-bottom:14px;
}
.dash-card .card-inner{
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* Compact section headers with icon (used on client dashboard panels) */
.mini-head{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ink-700);
}
.mini-head .mini-icon{
  width:28px;
  height:28px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(59,130,246,.10);
  border:1px solid rgba(59,130,246,.22);
  color:#2563eb;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}
.mini-head .mini-icon svg{
  width:16px;
  height:16px;
}

.side-section{
  margin-top:14px;
  padding-top:14px;
  border-top:1px dashed rgba(148,163,184,.4);
}

/* nav list */
.side-nav,
.nav-vert{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.side-nav li,
.nav-vert li{
  margin:0;
}
.side-nav a,
.nav-vert a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:13px;
  padding:7px 9px;
  border-radius:10px;
  color:var(--ink-700);
  text-decoration:none;
  transition: background .18s ease, color .18s ease, transform .12s ease;
}
.side-nav a svg,
.nav-vert a svg{
  width:16px; height:16px; opacity:.65;
}
.side-nav a:hover,
.nav-vert a:hover{
  background:rgba(241,245,249,.8);
  color:var(--ink-900);
}
.side-nav a.active,
.nav-vert a.active{
  background:linear-gradient(135deg,rgba(59,130,246,.08),rgba(56,189,248,.12));
  color:var(--brand-700);
  font-weight:600;
}

/* Little chips in sidebar */
.chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.chip{
  font-size:11px;
  padding:4px 7px;
  border-radius:999px;
  background:rgba(15,23,42,.06);
  color:var(--ink-700);
}

/* ------------------------------
   Client My Documents
   ------------------------------ */

.doc-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:6px;
}
.doc-list--compact{
  gap:8px;
}

.doc-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.25);
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(248,250,252,.92));
  box-shadow:0 10px 26px rgba(15,23,42,.06);
  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}
.doc-item:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 34px rgba(15,23,42,.08);
  border-color:rgba(56,189,248,.35);
}

.doc-left{
  display:flex;
  gap:12px;
  min-width:0;
  flex:1;
}

.doc-icon{
  width:40px;
  height:40px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--brand-700);
  background:radial-gradient(circle at 20% 0%,rgba(56,189,248,.22),rgba(59,130,246,.08));
  border:1px solid rgba(148,163,184,.28);
  flex:0 0 auto;
}
.doc-list--compact .doc-icon{
  width:36px;
  height:36px;
  border-radius:12px;
}
.doc-icon svg{
  width:20px;
  height:20px;
}

.doc-meta{
  min-width:0;
  flex:1;
}
.doc-title a{
  display:inline-block;
  font-weight:800;
  color:var(--ink-900);
  text-decoration:none;
  line-height:1.2;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.doc-title a:hover{
  color:var(--brand-700);
}

.doc-submeta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  margin-top:6px;
  font-size:12px;
  color:var(--ink-500);
}
.doc-submeta .dot{
  opacity:.7;
}

.doc-foot{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-top:7px;
}
.doc-filename{
  font-size:12px;
  color:var(--ink-700);
  max-width:520px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.doc-badge{
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(59,130,246,.10);
  color:var(--brand-700);
  border:1px solid rgba(59,130,246,.16);
}
.doc-size{
  font-size:11px;
  padding:3px 7px;
  border-radius:999px;
  background:rgba(241,245,249,.9);
  border:1px solid rgba(148,163,184,.24);
  color:var(--ink-500);
}

.doc-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.doc-empty{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 12px;
  border-radius:16px;
  border:1px dashed rgba(148,163,184,.45);
  background:rgba(255,255,255,.75);
}
.doc-empty-icon{
  width:40px;
  height:40px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ink-500);
  background:rgba(241,245,249,.85);
  border:1px solid rgba(148,163,184,.28);
}
.doc-empty-icon svg{ width:20px; height:20px; }
.doc-empty-title{
  font-weight:800;
  color:var(--ink-900);
  margin-bottom:2px;
}
.doc-empty-sub{
  font-size:12px;
  color:var(--ink-500);
}

/* Detail page helpers */
.doc-shell{ max-width:1100px; margin:0 auto; padding:24px 18px; }
.doc-detail-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.doc-detail-left{ display:flex; align-items:flex-start; gap:12px; min-width:0; }
.doc-detail-actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.doc-detail-grid{ display:flex; flex-direction:column; gap:10px; margin-top:6px; }
.doc-detail-row{ display:grid; grid-template-columns: 140px minmax(0,1fr); gap:12px; }
.doc-detail-row .k{ font-size:12px; color:var(--ink-500); font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.doc-detail-row .v{ color:var(--ink-900); min-width:0; overflow-wrap:anywhere; }
@media (max-width: 720px){
  .doc-item{ flex-direction:column; }
  .doc-actions{ width:100%; justify-content:flex-start; }
  .doc-detail-row{ grid-template-columns: 1fr; }
}

/* Main area */
.dash-main{
  display:flex;
  flex-direction:column;
  gap:18px;
}

/* KPIs */
.kpi-row{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:var(--gutter);
}
@media (max-width: 1023px){
  .kpi-row{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 640px){
  .kpi-row{
    grid-template-columns: minmax(0,1fr);
  }
}
.kpi{
  position:relative;
}
.kpi-inner{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  color: #000;
  padding:12px 14px 13px;
  border:1px solid rgba(148,163,184,.45);
}
.kpi-inner::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 0% 0%,rgba(56,189,248,.25),transparent 55%),
    radial-gradient(circle at 100% 0%,rgba(129,140,248,.18),transparent 55%);
  opacity:.7;
  mix-blend-mode:screen;
  pointer-events:none;
}
.kpi-inner > *{
  position:relative;
  z-index:1;
}
.kpi .label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#000;
  margin:0 0 6px;
}
.kpi .value{
  margin:0;
  font-size:22px;
  font-weight:700;
  letter-spacing:-.03em;
  color:#000;
}

.hearts-rating{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:2px;
}
.hearts-rating .hearts{
  display:flex;
  align-items:center;
  gap:4px;
  line-height:1;
}
.hearts-rating .hearts i{
  font-size:14px;
}
.hearts-rating .hearts-text{
  font-size:13px;
  font-weight:700;
  letter-spacing:-.02em;
}
.spark{
  margin-top:8px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(248,250,252,.2),rgba(56,189,248,.85),rgba(59,130,246,.6));
}

/* Row for schedule + inbox */
.two-col{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--gutter);
}
@media (max-width: 900px){
  .two-col{
    grid-template-columns: minmax(0,1fr);
  }
}

/* Inbox panel, etc. */
.inbox{
  background:rgba(255,255,255,.94);
  border-radius:18px;
  box-shadow:var(--panel-shadow);
  padding:14px 14px 16px;
  border:1px solid rgba(148,163,184,.3);
}
.inbox-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.inbox-head h2{
  margin:0;
  font-size:15px;
  letter-spacing:-.02em;
  color:var(--ink-900);
}
.inbox-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.inbox-item{
  background:#f9fafb;
  border-radius:12px;
  padding:7px 8px;
  border:1px solid var(--ink-200);
  display:flex;
  flex-direction:column;
  gap:3px;
}
.inbox-title{
  font-size:13px;
  font-weight:600;
  color:var(--ink-900);
}
.inbox-snippet{
  font-size:12px;
  color:var(--ink-600);
}
.inbox-meta{
  font-size:11px;
  color:var(--ink-400);
}

/* Simple schedule list */
.simple-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.simple-item{
  display:flex;
  align-items:center;
  gap:8px;
}
.simple-item .badge{
  min-width:42px;
  padding:4px 6px;
  border-radius:999px;
  background:#e0f2fe;
  color:#0f172a;
  font-size:11px;
  font-weight:600;
  text-align:center;
}
.simple-item .meta{
  font-size:12px;
  color:var(--ink-500);
}

/* Columns board (notes / tasks / clients) */
.board{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--gutter);
}
@media (max-width: 900px){
  .board{
    grid-template-columns: minmax(0,1fr);
  }
}

/* NOTE: scoped so we don't break wizard/bootstrap .col */
.board .col{
  background:rgba(255,255,255,.94);
  border-radius:18px;
  box-shadow:var(--panel-shadow);
  padding:12px 12px 14px;
  border:1px solid rgba(148,163,184,.3);
}
.board .col-head{
  font-size:13px;
  font-weight:600;
  margin-bottom:8px;
  color:var(--ink-900);
}
.board .col-body{
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* Cards inside board columns – also scoped */
.board .card{
  border:1px solid var(--ink-200);
  border-radius:12px;
  padding:8px 9px;
  background:#f9fafb;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.board .card-title{
  margin:0;
  font-size:13px;
  font-weight:600;
  color:var(--ink-900);
}
.board .card-sub{
  margin:0;
  font-size:12px;
  color:var(--ink-600);
}
.board .card-tags{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}
.board .card-tag{
  font-size:11px;
  padding:3px 6px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
}

/* Client list (for provider dashboard) */
.client-list{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.client-list li{
  display:flex; justify-content:space-between; align-items:center;
  font-size:12px;
  color:var(--ink-700);
}
.client-name{
  font-weight:600;
}
.client-pill{
  padding:2px 6px;
  border-radius:999px;
  background:rgba(248,250,252,1);
  border:1px dashed rgba(148,163,184,.6);
  font-size:11px;
  color:var(--ink-500);
}

/* Responsive tweaks */
@media (max-width: 768px){
  .dash-topbar{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
}
@media (max-width: 640px){
  .dashboard-wrap{
    padding:18px 14px 24px;
  }
}

/* ---------------- Tiny Garden (Vibe check-in game) ---------------- */

.tiny-garden-card { position: relative; overflow: hidden; }
.tg-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }

.tg-streak-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  background: rgba(58, 120, 206, .10);
  color:#1f3b6a; font-weight:700; font-size:12px;
}

.tg-garden{
  position:relative; margin-top:14px;
  background: linear-gradient(180deg, #e9f2ff 0%, #f7fbff 100%);
  border:1px solid #e3ecfb; border-radius:16px;
  height:210px; overflow:hidden;
}

.tg-sky{ position:absolute; inset:0 0 auto 0; height:52%; }
.tg-soil{
  position:absolute; inset:auto 0 0 0; height:52%;
  background: linear-gradient(180deg, #c89a6a 0%, #ad7d4f 100%);
  border-top:1px solid rgba(0,0,0,.05);
}

.tg-plants{
  position:absolute; inset:0; display:flex; align-items:flex-end; gap:12px;
  padding:18px 18px 14px; flex-wrap:wrap;
}

.tg-empty{ font-weight:600; color:#355a8a; opacity:.9; }

.tg-hint{
  position:absolute; right:12px; top:10px;
  font-size:12px; font-weight:800; color:#20426c;
  background: rgba(255,255,255,.9); padding:6px 8px; border-radius:10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

.tg-plant{
  width:48px; height:48px; display:grid; place-items:center;
  font-size:32px; transform-origin:center bottom;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.12));
  transition: transform .35s ease, opacity .35s ease;
}

/* Growth stages (recent => sprout, older => fuller) */
.tg-stage-1{
  opacity:.75;
  transform: translateY(10px) scale(.7);
  animation: tg-sprout .9s ease-out both;
}
.tg-stage-2{
  opacity:.95;
  transform: translateY(3px) scale(.9);
  animation: tg-grow .9s ease-out both;
}
.tg-stage-3{
  opacity:1;
  transform: translateY(0) scale(1);
}

/* Just planted: pop + wiggle */
.tg-just-planted{
  animation: tg-pop .95s cubic-bezier(.2,.9,.2,1) both;
}

/* Garden pulse when planting */
.tg-pulse .tg-garden::after{
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 50% 75%, rgba(255,255,255,.95), transparent 55%);
  animation: tg-glow .95s ease-out;
  pointer-events:none;
}

/* Water animation: fallback shimmer */
.tg-water .tg-garden::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.95), transparent 40%),
    radial-gradient(circle at 60% 8%, rgba(255,255,255,.95), transparent 35%),
    radial-gradient(circle at 80% 22%, rgba(255,255,255,.95), transparent 45%);
  animation: tg-rain .95s ease-out;
  pointer-events:none;
}
.tg-water .tg-soil::after{
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 50% 10%, rgba(255,255,255,.5), transparent 55%);
  animation: tg-ripple .95s ease-out;
  pointer-events:none;
}

/* Cloud + sun */
.tg-cloud{
  position:absolute; top:18px; width:64px; height:26px; border-radius:999px;
  background: rgba(255,255,255,.9);
  box-shadow: 12px 0 0 rgba(255,255,255,.9), 24px 6px 0 rgba(255,255,255,.9);
  opacity:.9;
  animation: tg-cloud-drift 22s linear infinite;
}
.tg-cloud--1{ left:-80px; animation-duration: 26s; top:20px; }
.tg-cloud--2{ left:-110px; animation-duration: 34s; top:44px; opacity:.75; transform: scale(.9); }
@keyframes tg-cloud-drift{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(420px); }
}

.tg-sun{
  position:absolute; right:22px; top:18px; width:28px; height:28px; border-radius:50%;
  background: rgba(255,236,164,.95);
  box-shadow: 0 0 0 6px rgba(255,236,164,.25), 0 0 0 12px rgba(255,236,164,.12);
  animation: tg-sun-pulse 5.5s ease-in-out infinite;
}
@keyframes tg-sun-pulse{
  0%,100%{ transform: scale(1); opacity:.95; }
  50%{ transform: scale(1.08); opacity:1; }
}

/* FX layer for JS particles */
.tg-fx{ position:absolute; inset:0; pointer-events:none; overflow:hidden; }

/* Sparkles */
.tg-spark{
  position:absolute; width:6px; height:6px; border-radius:2px;
  background: rgba(255,255,255,1);
  box-shadow: 0 0 12px rgba(255,255,255,.9);
  animation: tg-sparkle 1.1s ease-out forwards;
}
@keyframes tg-sparkle{
  0%{ transform: translateY(6px) scale(.4) rotate(0deg); opacity:0; }
  30%{ opacity:1; }
  100%{ transform: translateY(-26px) scale(1.1) rotate(90deg); opacity:0; }
}

/* Raindrops */
.tg-raindrop{
  position:absolute; width:3px; height:12px; border-radius:10px;
  background: rgba(120,175,255,.9);
  animation: tg-drop 0.9s ease-in forwards;
}
@keyframes tg-drop{
  0%{ transform: translateY(0); opacity:0; }
  20%{ opacity:1; }
  100%{ transform: translateY(230px); opacity:0; }
}

@keyframes tg-sprout{
  0%{ transform: translateY(22px) scale(.45); opacity:.05; }
  100%{ transform: translateY(10px) scale(.7); opacity:.75; }
}
@keyframes tg-grow{
  0%{ transform: translateY(12px) scale(.65); opacity:.25; }
  100%{ transform: translateY(3px) scale(.9); opacity:.95; }
}
@keyframes tg-pop{
  0%{ transform: translateY(22px) scale(.25); opacity:0; }
  55%{ transform: translateY(-4px) scale(1.18); opacity:1; }
  100%{ transform: translateY(0) scale(1); }
}
@keyframes tg-glow{
  0%{ opacity:0; transform: scale(.88); }
  55%{ opacity:1; transform: scale(1.02); }
  100%{ opacity:0; transform: scale(1.06); }
}
@keyframes tg-rain{
  0%{ opacity:0; transform: translateY(-12px); }
  45%{ opacity:1; }
  100%{ opacity:0; transform: translateY(16px); }
}
@keyframes tg-ripple{
  0%{ opacity:0; transform: scale(.6); }
  60%{ opacity:.9; transform: scale(1); }
  100%{ opacity:0; transform: scale(1.12); }
}

/* Choices */
.tg-choices-wrap{ margin-top:14px; }
.tg-prompt{ font-weight:700; margin-bottom:8px; color:#20426c; }
.tg-choices{ display:flex; flex-wrap:wrap; gap:10px; }
.tg-choice{
  display:flex; align-items:center; gap:10px; text-align:left;
  padding:10px 12px; border-radius:12px; border:1px solid #e5ecf7;
  background:#fff; box-shadow: 0 6px 14px rgba(0,0,0,.04);
  cursor:pointer; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.tg-choice:hover{ transform: translateY(-1px); border-color:#cfe0f8; box-shadow: 0 8px 18px rgba(0,0,0,.06); }
.tg-choice.is-selected{ border-color:#3a78ce; box-shadow: 0 0 0 2px rgba(58,120,206,.18); }
.tg-emoji{ font-size:26px; }
.tg-label small{ color:#6d7e97; font-weight:600; }
.tg-actions{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }

/* History */
.tg-history{ margin-top:12px; border-top:1px dashed #e3ecfb; padding-top:10px; }
.tg-history-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.tg-history-title{ font-weight:800; color:#1f3b6a; }
.tg-history-row{ display:flex; flex-direction:column; gap:8px; max-height:220px; overflow:auto; padding-right:2px;}
.tg-history-item{ display:flex; align-items:center; gap:10px; background:#fff; border:1px solid #e7eef9; padding:8px 10px; border-radius:10px; }
.tg-history-emoji{ font-size:22px; }
.tg-history-plant{ font-weight:800; }
.tg-history-date{ font-size:12px; color:#6d7e97; font-weight:700; }

/* Gentle idle sway for mature plants */
.tg-stage-3{ animation: tg-sway 6s ease-in-out infinite; }
@keyframes tg-sway{
  0%,100%{ transform: translateY(0) rotate(0deg) scale(1); }
  50%{ transform: translateY(-1px) rotate(-1.5deg) scale(1.01); }
}


/* ---------------- Journal (Client portal) ------------------------- */
.journal-card .jr-top{
  display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap;
}
.journal-card .jr-top-actions{ display:flex; gap:6px; flex-wrap:wrap; }

.journal-card .jr-prompt{
  margin-top:12px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(241,245,249,0.8);
  border:1px solid rgba(226,232,240,0.9);
}
.journal-card .jr-eyebrow{
  font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#0f172a; opacity:.7;
}
.journal-card .jr-prompt-text{
  font-size:14px; font-weight:600; color:#0f172a; margin-top:2px;
}

.journal-card .jr-editor{
  margin-top:12px; padding:12px;
  border-radius:16px;
  border:1px solid rgba(226,232,240,0.9);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 14px rgba(15,23,42,0.06);
}
.journal-card .jr-input{
  width:100%;
  border:1px solid rgba(203,213,225,0.9);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
  outline:none;
}
.journal-card .jr-input:focus{
  border-color:#38bdf8;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.18);
}
.journal-card .jr-title{ margin-bottom:8px; }
.journal-card .jr-body{ margin-top:8px; resize:vertical; min-height:110px; }

.journal-card .jr-tags{ margin-top:6px; }
.journal-card .jr-tags-label{ font-size:12px; font-weight:700; color:#334155; margin-bottom:6px; }
.journal-card .jr-tags-row{ display:flex; gap:6px; flex-wrap:wrap; }
.journal-card .jr-tag{
  border:1px solid rgba(203,213,225,1);
  background:#fff; color:#0f172a;
  font-size:12px; font-weight:700;
  padding:6px 8px; border-radius:999px; cursor:pointer;
  transition: all .15s ease;
}
.journal-card .jr-tag:hover{ transform: translateY(-1px); }
.journal-card .jr-tag.is-selected{
  background:#0ea5e9; color:white; border-color:#0ea5e9;
  box-shadow: 0 4px 10px rgba(14,165,233,0.30);
}

.journal-card .jr-share{
  display:flex; align-items:center; gap:8px;
  font-size:13px; font-weight:600; color:#334155;
  margin-top:8px;
}
.journal-card .jr-editor-actions{
  margin-top:10px; display:flex; gap:6px; flex-wrap:wrap; align-items:center;
}
.journal-card .jr-saving{ font-size:12px; font-weight:700; color:#64748b; }

.journal-card .jr-empty{ margin-top:12px; }

.journal-card .jr-list{
  margin-top:12px; display:flex; flex-direction:column; gap:8px;
}
.journal-card .jr-item{
  padding:10px 12px; border-radius:14px;
  background: rgba(255,255,255,0.9);
  border:1px solid rgba(226,232,240,0.95);
  cursor:pointer; transition: all .15s ease;
}
.journal-card .jr-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15,23,42,0.08);
}
.journal-card .jr-item-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.journal-card .jr-item-title{
  font-size:14px; font-weight:800; color:#0f172a;
}
.journal-card .jr-item-date{
  font-size:12px; color:#64748b; font-weight:700;
}
.journal-card .jr-item-body{
  font-size:13px; color:#334155; margin-top:4px; line-height:1.4;
}
.journal-card .jr-item-foot{
  margin-top:6px; display:flex; gap:6px; flex-wrap:wrap; align-items:center;
}

/* Journal – book view & chips */
.journal-card .jr-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 7px;
  font-size:11px;
  font-weight:700;
  color:#0f172a;
  background:rgba(226,232,240,0.9);
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.7);
}

/* Book container */
.journal-card .jr-book{
  margin-top:16px;
  display:flex;
  align-items:stretch;
  justify-content:center;
  gap:14px;
  perspective:1600px;
  position:relative;
}

.journal-card .jr-book-inner{
  display:contents;
  gap:14px;
  max-width:90%;
}

/* Individual pages */
.journal-card .jr-page{
  position:relative;
  flex:1 1 0;
  min-height:260px;
  background-color:#f9fbff;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(148,163,184,0.45) 0px,
      rgba(148,163,184,0.45) 1px,
      transparent 1px,
      transparent 24px
    );
  border-radius:18px;
  padding:18px 20px 20px;
  box-shadow:0 18px 40px rgba(15,23,42,0.24);
  transform-style:preserve-3d;
  transform-origin:0% 50%;
  transition:transform 0.6s ease, box-shadow 0.6s ease;
  overflow:hidden;
}

/* Right page uses opposite origin */
.journal-card .jr-page-right{
  transform-origin:100% 50%;
}

/* Spine highlight + shadow using pseudo-elements */
.journal-card .jr-book-inner::before{
  content:"";
  position:absolute;
  top:6px;
  bottom:10px;
  left:50%;
  width:2px;
  transform:translateX(-50%);
  background:linear-gradient(
    to bottom,
    rgba(15,23,42,0.25),
    rgba(148,163,184,0.35),
    rgba(15,23,42,0.25)
  );
  opacity:0.65;
  pointer-events:none;
}

.journal-card .jr-book-inner::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:46%;
  transform:translateX(-50%);
  background:radial-gradient(circle at 50% 0, rgba(15,23,42,0.14), transparent 55%);
  opacity:0.45;
  pointer-events:none;
}

.journal-card .jr-page-content{
  height:100%;
  display:flex;
  flex-direction:column;
  position:relative;
  z-index:1;
}

.journal-card .jr-page-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:6px;
}

.journal-card .jr-page-date{
  font-size:12px;
  font-weight:600;
  color:#64748b;
}

.journal-card .jr-page-title{
  font-size:15px;
  font-weight:800;
  color:#0f172a;
  margin-bottom:4px;
}

.journal-card .jr-page-body{
  font-size:14px;
  line-height:1.7;
  color:#1f2933;
  flex:1 1 auto;
  margin-top:8px;
  font-family:"Homemade Apple","Dancing Script","Pacifico","Segoe Script","Lucida Handwriting",cursive;
  letter-spacing:0.01em;
}


.journal-card .jr-page-foot{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  margin-top:10px;
}

/* Empty state */
.journal-card .jr-page-empty .jr-page-content{
  justify-content:center;
  text-align:center;
}

.journal-card .jr-page-empty-inner{
  padding:16px 10px;
}

.journal-card .jr-page-empty-label{
  font-size:13px;
  color:#64748b;
}

.journal-card .jr-shared-label{
  font-size:11px;
  font-weight:600;
  color:#0f172a;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(219,234,254,0.96);
  border:1px solid rgba(129,140,248,0.35);
}

/* Nav buttons */
.journal-card .jr-book-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:28px;
  height:28px;
  border-radius:999px;
  border:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:17px;
  font-weight:600;
  cursor:pointer;
  background:rgba(15,23,42,0.92);
  color:#f9fafb;
  box-shadow:0 14px 30px rgba(15,23,42,0.35);
  transition:transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  z-index:3;
}

.journal-card .jr-book-prev{
  left:-4px;
}

.journal-card .jr-book-next{
  right:-4px;
}

.journal-card .jr-book-nav:hover:not([disabled]){
  transform:translateY(-50%) scale(1.06);
  box-shadow:0 18px 40px rgba(15,23,42,0.46);
  background:rgba(15,23,42,0.98);
}

.journal-card .jr-book-nav[disabled]{
  opacity:0.25;
  cursor:default;
  box-shadow:none;
}

/* Page flip states */
.journal-card .jr-page.is-turning-forward{
  transform:rotateY(-180deg);
  box-shadow:0 12px 26px rgba(15,23,42,0.16);
}

.journal-card .jr-page.is-turning-back{
  transform:rotateY(180deg);
  box-shadow:0 12px 26px rgba(15,23,42,0.16);
}

/* Small screens: stack pages */
@media (max-width: 900px){
  .journal-card .jr-book{
    justify-content:flex-start;
    gap:10px;
  }
  .journal-card .jr-book-inner{
    max-width:100%;
  }
  .journal-card .jr-page{
    max-width:100%;
  }
  .journal-card .jr-book-prev{
    left:8px;
  }
  .journal-card .jr-book-next{
    right:8px;
  }
}

.modal-backdrop,
.booking-modal-backdrop,
.session-modal-backdrop,
.jr-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(59, 130, 246, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 900;
}


.modal,
.booking-modal,
.session-modal,
.jr-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 910;
  padding: 32px 16px;
  overflow-y: auto;
}

/* lock background scroll when a modal is open */
body.has-modal-open {
  overflow: hidden;
}


.booking-modal-inner {
  max-width: 720px;
  width: 100%;
  margin-top: 0;
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(30, 64, 175, 0.20);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 18px 20px;
  overflow-y: auto;
}

/* Client Portal — appointment details modal panel
   (keeps header + close button inside the modal, not "floating" on the blurred backdrop) */
.client-details-modal-inner{
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(30, 64, 175, 0.20);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 18px 20px;
  overflow-y: auto;
}

/* Center + polish: Provider Portal schedule (booking) modal */
.session-modal-inner{
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  max-height: 90vh;
}


/* Modal form fields (Invoice + other simple forms) */
.field-row{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin: 0 0 12px;
}

.field-row label{
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(59,130,246,0.28);
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.10);
  outline: none;
}

.input:focus{
  border-color: rgba(59,130,246,0.55);
  box-shadow: 0 14px 28px rgba(30, 64, 175, 0.18);
}

.field-hint{
  margin: 6px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

/* --- Provider Client header actions (Risk UI) --------------------------- */
.client-header-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

/* Connection area (Disconnect + status) */
.client-connection-actions{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.60);
}

.connection-pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
  background: rgba(59,130,246,0.10);
  border: 1px solid rgba(59,130,246,0.22);
}

.risk-form{
  display:flex;
  align-items:flex-end;
  gap:10px;
}

.risk-field{
  min-width: 220px;
}

/* Make select look like our pill inputs */
select.input{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15,23,42,0.55) 50%),
    linear-gradient(135deg, rgba(15,23,42,0.55) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px),
    calc(100% - 2.4rem) 0.5rem;
  background-size: 6px 6px, 6px 6px, 1px 1.8rem;
  background-repeat: no-repeat;
}

.client-header-danger{
  margin-top: 12px;
}

.btn-danger-soft{
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.35);
  color: #991b1b;
}
/* Frosted date/time pickers inside modals (best-effort for native pickers) */
.booking-modal-inner input[type="date"],
.booking-modal-inner input[type="datetime-local"],
.session-modal-inner input[type="date"],
.session-modal-inner input[type="datetime-local"]{
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(59,130,246,0.28);
  border-radius: 14px;
  box-shadow:
    0 10px 24px rgba(15,23,42,0.12),
    0 0 0 1px rgba(255,255,255,0.55) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #0f172a;
}

/* Chrome/Safari calendar indicator */
.booking-modal-inner input[type="date"]::-webkit-calendar-picker-indicator,
.booking-modal-inner input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.session-modal-inner input[type="date"]::-webkit-calendar-picker-indicator,
.session-modal-inner input[type="datetime-local"]::-webkit-calendar-picker-indicator{
  padding: 6px;
  border-radius: 10px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.18);
  box-shadow: 0 6px 14px rgba(15,23,42,0.10);
  cursor: pointer;
}

.booking-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.booking-modal-title {
  font-size: 18px;
  font-weight: 600;
}

.booking-modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.booking-modal-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-label {
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
}

.booking-provider-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-provider-input {
  flex: 1;
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-size: 13px;
}

.booking-provider-input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.booking-availability {
  max-height: 280px;
  overflow-y: auto;
  padding: 8px 10px;
  border-radius: 12px;
  background: radial-gradient(circle at top left, rgba(191, 219, 254, 0.35), transparent 60%),
              radial-gradient(circle at bottom right, rgba(147, 197, 253, 0.35), transparent 60%),
              rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(147, 197, 253, 0.8);
}

.booking-day {
  margin-bottom: 10px;
}

.booking-day:last-child {
  margin-bottom: 0;
}

.booking-day-label {
  font-size: 12px;
  font-weight: 500;
  color: #bfdbfe;
  margin-bottom: 4px;
}

.booking-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.booking-slot {
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.8);
  background: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  padding: 4px 9px;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
  white-space: nowrap;
}

.booking-slot:hover {
  transform: translateY(-1px);
  background: rgba(59, 130, 246, 0.96);
  color: #fff;
  box-shadow: 0 10px 18px rgba(59, 130, 246, 0.35);
}

.booking-slot:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (max-width: 640px) {
  .booking-modal-inner {
    padding: 14px 14px 16px;
    border-radius: 14px;
  }
}


/* Booking modal footer actions */
.booking-actions{
  display:flex;
  gap:8px;
  margin-top:6px;
  justify-content:flex-end;
}
.booking-actions .btn-mini[aria-disabled="true"]{
  pointer-events:none;
  opacity:0.6;
}


/* Messages panel */
.messages-panel .messages-panel-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}
.messages-tabs{
  display:flex;
  gap:6px;
}
.messages-tab{
  border-radius:999px;
  border:1px solid #d1e3ff;
  padding:6px 12px;
  font-size:12px;
  background:#f1f5ff;
  cursor:pointer;
}
.messages-tab.is-active{
  background:linear-gradient(135deg,#2563eb,#3b82f6);
  color:#f9fafb;
  border-color:transparent;
}
.messages-panes{
  margin-top:8px;
}
.messages-pane{
  display:none;
}
.messages-pane.is-active{
  display:block;
}
.messages-table{
  width:100%;
  border-collapse:collapse;
  margin-top:4px;
}
.messages-table th,
.messages-table td{
  font-size:12px;
  padding:6px 8px;
  border-bottom:1px solid #e5e7eb;
}
.messages-row.unread .messages-subject,
.messages-row.unread .messages-from{
  font-weight:600;
}
.messages-link{
  text-decoration:none;
  color:#0f172a;
}
.messages-link:hover{
  text-decoration:underline;
}
.messages-footer{
  margin-top:12px;
  display:flex;
  justify-content:flex-end;
}
/* Chat-style message list */

.messages-chat{
  margin-top:8px;
}

.messages-chat-list{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.messages-chat-item{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  text-decoration:none;
  background:rgba(255,255,255,0.95);
  border:1px solid rgba(226,232,240,0.95);
  box-shadow:0 6px 18px rgba(15,23,42,0.04);
  transition:transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.messages-chat-item:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(15,23,42,0.10);
  background:#ffffff;
}

.messages-chat-item.is-unread{
  border-color:#38bdf8;
  box-shadow:0 0 0 1px rgba(56,189,248,0.45);
}

.messages-chat-avatar .avatar-pill{
  width:32px;
  height:32px;
  border-radius:999px;
  background: linear-gradient(
    135deg,
    hsla(var(--avatar-hue, 210), 92%, 42%, 0.95),
    hsla(var(--avatar-hue, 210), 92%, 62%, 0.95)
  );
  color:#f9fafb;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:700;
  box-shadow: 0 10px 24px rgba(15,23,42,0.20);
  border: 1px solid rgba(255,255,255,0.55);
}

/* Support newer markup used by the client portal conversation list */
.messages-chat-top-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  margin-bottom:2px;
}

.messages-chat-meta{
  display:flex;
  align-items:center;
  gap:8px;
}

.messages-chat-date{
  font-size:11px;
  color:#9ca3af;
  white-space:nowrap;
}

.messages-chat-unread-pill{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  background: rgba(56,189,248,0.14);
  color:#0369a1;
  border: 1px solid rgba(56,189,248,0.32);
}

.messages-chat-main{
  flex:1;
  min-width:0;
}

.messages-chat-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:2px;
}

.messages-chat-name{
  font-size:13px;
  font-weight:600;
  color:#0f172a;
}

.messages-chat-time{
  font-size:11px;
  color:#9ca3af;
  white-space:nowrap;
}

.messages-chat-subject{
  font-size:12px;
  color:#111827;
  margin-bottom:1px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.messages-chat-snippet{
  font-size:12px;
  color:#6b7280;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.messages-chat-unread-dot{
  position:absolute;
  top:9px;
  right:10px;
  font-size:18px;
  color:#38bdf8;
}



/* ----- Avatar modal (shared) ----- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(59, 130, 246, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 920;
}


.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  width: min(480px, 95vw);
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 26px 70px rgba(15,23,42,0.45);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #4b5563;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.modal-section {
  margin-top: 8px;
}

.modal-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
}

.avatar-form {
  margin-top: 4px;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.preset-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.preset-option:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-1px);
}

.preset-radio {
  display: none;
}

.preset-emoji {
  font-size: 20px;
}

.preset-radio:checked + .preset-emoji,
.preset-option input:checked + .preset-emoji {
  transform: scale(1.08);
}

/* Avatar emoji rendering */
.avatar-emoji {
  display: inline-block;
  font-size: 24px;
  line-height: 1;
}

.account-avatar-emoji {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
}

/* Explicit selected state for avatar presets (helps when radios are hidden) */
.preset-option.is-selected {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-1px);
}

.preset-option.is-selected .preset-emoji {
  transform: scale(1.08);
}



/* Avatar circles in dashboards (client + provider) */
.dashboard-wrap .avatar,
.dash-topbar .avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

/* Uploaded avatar images should fill the circle nicely */
.dashboard-wrap .avatar img,
.dash-topbar .avatar img,
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Emoji in avatar should be centered & large */
.avatar-emoji,
.account-avatar-emoji {
  display: inline-block;
  font-size: 22px;
  line-height: 1;
}



/* --- Warm & cozy journal layout overrides --- */

.journal-card.jr-shell,
.journal-card .jr-shell{
}

.journal-card .jr-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:10px 12px;
  border-radius:18px 18px 14px 14px;
  background:#ffffff;
}

.journal-card .jr-top-subtitle{
  font-size:13px;
  color:#1e3a8a;
}

.journal-card .jr-streak-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(248, 250, 252, 0.8);
  border:1px solid rgba(191, 219, 254, 0.9);
  box-shadow:0 8px 18px rgba(37, 99, 235, 0.12);
  font-size:12px;
  color:#1e3a8a;
  font-weight:600;
}

.journal-card .jr-streak-icon{
  font-size:14px;
}

.journal-card .jr-layout{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.journal-card .jr-sidebar{
  position:relative;
}

.journal-card .jr-sidebar-inner{
  position:relative;
  padding:12px 12px 10px;
  border-radius:18px;
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(226,232,240,0.9);
  box-shadow:0 14px 30px rgba(15,23,42,0.10);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  overflow:hidden;
}

.journal-card .jr-sidebar-inner::before{
  content:"";
  position:absolute;
  inset:-20%;
  background-image:radial-gradient(circle at 0 0, rgba(255,255,255,.75) 0, transparent 55%);
  opacity:0.5;
  pointer-events:none;
}

.journal-card .jr-sidebar-heading{
  position:relative;
  margin-bottom:10px;
}

.journal-card .jr-sidebar-title{
  font-size:13px;
  font-weight:700;
  color:#1e3a8a;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.journal-card .jr-sidebar-sub{
  font-size:12px;
  color:#1d4ed8;
  margin-top:2px;
}

.journal-card .jr-sidebar-inner [data-jr-empty],
.journal-card .jr-sidebar-inner [data-jr-list]{
  position:relative;
  z-index:1;
}

.journal-card .jr-list{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.journal-card .jr-item{
  padding:9px 10px;
  border-radius:14px;
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(248, 250, 252, 0.7);
  box-shadow:0 4px 12px rgba(30, 64, 175, 0.12);
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.journal-card .jr-item:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 16px rgba(59, 130, 246, 0.18);
  background:rgba(255,255,255,0.98);
}

.journal-card .jr-main{
  position:relative;
}

.journal-card .jr-main-paper{
  position:relative;
  padding:18px 18px 18px;
  border-radius:22px;
  background:rgba(255,255,255,0.86);
  border:1px solid rgba(191,219,254,0.95);
  background-size:cover;
  box-shadow:0 20px 40px rgba(15,23,42,0.16);
  backdrop-filter:blur(26px);
  -webkit-backdrop-filter:blur(26px);
  overflow:hidden;
}

.journal-card .jr-main-paper::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:repeating-linear-gradient(to bottom,
                      rgba(248,250,252,0) 0,
                      rgba(248,250,252,0) 22px,
                      rgba(191,219,254,0.6) 23px);
  opacity:0.6;
  pointer-events:none;
}

.journal-card .jr-main-paper > *{
  position:relative;
  z-index:1;
}

/* Warm prompt + editor tweaks */

.journal-card .jr-prompt{
  background:rgba(241,245,249,0.85);
  border-color:rgba(226,232,240,0.9);
}

.journal-card .jr-input{
  background:rgba(255,255,255,0.92);
  border-radius:14px;
  border:1px solid rgba(248, 250, 252, 0.9);
}

.journal-card .jr-input:focus{
  border-color:#3b82f6;
  box-shadow:0 0 0 1px rgba(248,250,252,0.9), 0 0 0 4px rgba(59,130,246,0.25);
}

.journal-card .jr-tag{
  background:rgba(93, 199, 255, 0.9);
  color:#1e3a8a;
}

.journal-card .jr-tag.is-selected{
  background:#eff6ff;
  color:#e0f2fe;
}

/* Modal: full-screen overlay for journal entry details */

.journal-card .jr-modal-backdrop{
  position: fixed;
  inset: 0;
  display: none; /* toggled to flex by JS */
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1300;
}


.journal-card .jr-modal{
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius:24px;
  padding:20px 24px 18px;
  max-width:520px;
  width:100%;
  box-shadow:0 18px 45px rgba(15,23,42,0.35);
  border:1px solid rgba(255,255,255,0.7);
  position:relative;
}

.journal-card .jr-detail-panel {
  display: none;
}


/* Journal modal content styling */

.journal-card .jr-modal-content{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.journal-card .jr-modal-title{
  font-size:16px;
  font-weight:600;
  color:#0f172a;
  margin-bottom:2px;
}

.journal-card .jr-modal-date{
  font-size:12px;
  color:#6b7280;
  margin-bottom:6px;
}

.journal-card .jr-modal-body{
  font-size:14px;
  line-height:1.6;
  color:#111827;
  margin-top:4px;
}

.journal-card .jr-modal-shared{
  margin-top:10px;
  font-size:11px;
  font-weight:600;
  letter-spacing:0.04em;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(15,23,42,0.04);
  color:#374151;
  display:inline-flex;
  align-items:center;
}

.journal-card .jr-modal-actions{
  margin-top:16px;
  display:flex;
  justify-content:flex-end;
  gap:8px;
}

.journal-card .jr-modal-actions .btn-mini{
  border-radius:999px;
  padding:6px 14px;
  font-size:12px;
}

.journal-card .jr-modal-actions .btn-mini.btn-cta{
  background:#111827;
  color:#f9fafb;
  border:none;
}

.journal-card .jr-modal-actions .btn-mini.btn-cta:hover{
  background:#020617;
}

.journal-card .jr-modal-actions .jr-delete{
  background:transparent;
  border:1px solid rgba(148,163,184,0.7);
  color:#4b5563;
}

.journal-card .jr-modal-actions .jr-delete:hover{
  background:rgba(148,163,184,0.08);
}

.journal-card .jr-modal-close{
  position:absolute;
  top:10px;
  right:12px;
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.55);
  background:rgba(255,255,255,0.95);
  font-size:12px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:#4b5563;
}

.journal-card .jr-modal-close:hover{
  background:#f9fafb;
  border-color:rgba(148,163,184,0.9);
  color:#111827;
}



/* Messages split layout: list + thread */
.messages-layout{
  display:flex;
  gap:16px;
  align-items:stretch;
}

.messages-split-left{
  flex:0 0 320px;
  max-width:360px;
}

.messages-split-right{
  flex:1 1 auto;
}

@media (max-width: 960px){
  .messages-layout{
    flex-direction:column;
  }
  .messages-split-left,
  .messages-split-right{
    flex:1 1 auto;
    max-width:none;
  }
}


/* ---------------- Messages thread chat styling (scoped to dashboard) ---------------- */

.messages-panel-thread{
  margin-top: 8px;
  padding: 16px 18px 14px;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(12px);
}

/* Stack of messages */
.messages-panel-thread .message-thread{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Individual message bubble */
.messages-panel-thread .message-thread-item{
  max-width: 520px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  position: relative;
}

/* Subtle "chat bubble" tail */
.messages-panel-thread .message-thread-item::after{
  content:"";
  position:absolute;
  bottom:10px;
  left:-6px;
  width:12px;
  height:12px;
  background: rgba(248, 250, 252, 0.96);
  border-radius: 0 0 12px 0;
  transform: rotate(45deg);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04);
}

/* Align your own messages to the right, with blue glass bubble */
.messages-panel-thread .message-thread-item.is-mine{
  margin-left: auto;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(191, 219, 254, 0.96));
}

.messages-panel-thread .message-thread-item.is-mine::after{
  left: auto;
  right: -6px;
  background: rgba(191, 219, 254, 0.96);
  border-radius: 0 0 0 12px;
}

/* Lightweight meta line under each bubble */
.messages-panel-thread .message-bubble-meta{
  margin-top: 6px;
  font-size: 11px;
  color: #64748b;
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
}

.messages-panel-thread .message-bubble-time{
  white-space: nowrap;
}

/* Header meta row */
.messages-panel-thread .message-thread-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  color: #6b7280;
}

.messages-panel-thread .message-thread-from strong{
  color: #111827;
}

/* Small "(you)" tag */
.messages-panel-thread .tag-you{
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 600;
}

/* Status badges */
.messages-panel-thread .badge{
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.messages-panel-thread .badge-read{
  background: rgba(34, 197, 94, 0.09);
  color: #15803d;
}

.messages-panel-thread .badge-sent{
  background: rgba(59, 130, 246, 0.10);
  color: #1d4ed8;
}

/* Message body text */
.messages-panel-thread .message-thread-body{
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: #111827;
}

/* Reply block at bottom */
.messages-panel-thread .messages-reply{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.messages-panel-thread .messages-reply h2.card-title{
  margin-bottom: 8px;
}

.messages-panel-thread .messages-reply .form-row{
  margin-bottom: 10px;
}

.messages-panel-thread .messages-reply .form-label{
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.messages-panel-thread .messages-reply .form-static{
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.96);
  font-size: 14px;
  color: #111827;
}

/* Inputs inside the reply area only */
.messages-panel-thread .messages-reply .form-control{
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  font-size: 14px;
}

.messages-panel-thread .messages-reply textarea.form-control{
  min-height: 90px;
  resize: vertical;
}

/* Reply button */
.messages-panel-thread .messages-reply .form-actions{
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.messages-panel-thread .messages-reply .btn-primary{
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}


/* -------------------------------------------------------------------------
   Global form controls (used across modals + portals)
   NOTE: Previously .form-control styling was scoped to the messaging thread,
   so other forms (ex: Schedule a Session modal) looked unstyled.
---------------------------------------------------------------------------*/

input.form-control,
textarea.form-control{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 1px 0 rgba(255,255,255,0.65) inset;
  transition: box-shadow .14s ease, border-color .14s ease, transform .14s ease;
}

select.form-control{
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(255,255,255,0.65) inset;
  transition: box-shadow .14s ease, border-color .14s ease, transform .14s ease;
}

/* Make Rails datetime_select groups look intentional (many selects in a row) */
select.form-control{
  display: inline-block;
  width: auto;
  min-width: 110px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* Bigger, nicer textareas for notes */
textarea.form-control{
  min-height: 120px;
  resize: vertical;
}

input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus{
  outline: none;
  border-color: rgba(2,132,199,0.65);
  box-shadow: 0 0 0 4px rgba(2,132,199,0.16);
  background: #ffffff;
}

/* Placeholder tone */
.form-control::placeholder{
  color: rgba(100,116,139,0.85);
}

/* Small label helper (optional) */
.field-label{
  display:block;
  font-weight: 800;
  font-size: 12px;
  color: #0f172a;
  margin: 0 0 6px;
}
.field-help{
  margin-top: 6px;
  font-size: 11px;
  color: #64748b;
}




/* --- Provider dashboard: Outlook-style Day view --- */
.board.board--dash-two{
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: stretch;
}
@media (max-width: 1100px){
  .board.board--dash-two{
    grid-template-columns: minmax(0,1fr);
  }
}

.col--day{
  /* Don't force a full-height column; the calendar panel manages its own height. */
  height: auto;
}
.outlook-day{
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(148,163,184,.35);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
  /* Compact panel that still allows a full-day view via internal scroll */
  height: clamp(360px, 48vh, 480px);
  min-height: 0;
}
.outlook-day .od-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148,163,184,.25);
  background: rgba(255,255,255,.65);
}
.outlook-day .od-title{
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-700);
}
.outlook-day .od-date{
  font-size: 13px;
  color: var(--ink-600);
}

.outlook-day .od-body{
  height: calc(100% - 48px);
  overflow: hidden;
}
.outlook-day .od-grid{
  display:grid;
  grid-template-columns: 72px minmax(0,1fr);
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.outlook-day .od-gutter{
  padding-top: 8px;
  border-right: 1px solid rgba(148,163,184,.20);
  background: rgba(255,255,255,.55);
}
.outlook-day .od-time{
  position: relative;
  padding: 6px 10px 0 8px;
  font-size: 12px;
  color: var(--ink-500);
  text-align: right;
}
.outlook-day .od-time span{
  display: inline-block;
}

.outlook-day .od-slots{
  position: relative;
  height: 100%;
  overflow: hidden;
  padding-top: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.78), rgba(255,255,255,.62));
}
.outlook-day .od-slot{
  border-top: 1px solid rgba(148,163,184,.22);
}
.outlook-day .od-slot:nth-child(2n){
  border-top-style: dashed;
  opacity: .8;
}

.outlook-day .od-now{
  position:absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(239, 68, 68, .9);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .12);
  pointer-events:none;
  z-index: 5;
}
.outlook-day .od-now::before{
  content:"";
  position:absolute;
  left:-6px;
  top:-4px;
  width:10px;
  height:10px;
  border-radius:999px;
  background: rgba(239,68,68,.95);
  box-shadow: 0 8px 20px rgba(239,68,68,.22);
}

.outlook-day .od-event{
  position:absolute;
  left: 10px;
  right: 10px;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(59,130,246,.32);
  background: rgba(191,219,254,.55);
  box-shadow: 0 12px 26px rgba(15,23,42,.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  z-index: 6;
}
.outlook-day .od-event.is-confirmed{
  border-color: rgba(14,165,233,.35);
  background: rgba(224,242,254,.70);
}
.outlook-day .od-event.is-requested{
  border-color: rgba(59,130,246,.30);
  background: rgba(219,234,254,.62);
}
.outlook-day .od-event.is-cancelled{
  border-color: rgba(148,163,184,.38);
  background: rgba(226,232,240,.70);
  opacity: .85;
}
.outlook-day .od-event-title{
  font-weight: 700;
  font-size: 12px;
  color: var(--ink-900);
  margin-bottom: 2px;
}
.outlook-day .od-event-sub{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-700);
}
.outlook-day .od-event-status{
  font-size: 11px;
  color: var(--ink-500);
  text-transform: capitalize;
}

.outlook-day .od-empty{
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(148,163,184,.45);
  color: var(--ink-600);
  background: rgba(255,255,255,.58);
}


/* -------------------------------------------------------------------------
   Provider Portal — Client Profiles (two-column layout)
   ------------------------------------------------------------------------- */
.cp-grid{
  display:flex;
  align-items:flex-start;
  gap:22px;
  flex-wrap:nowrap;
}

.cp-left{
  flex: 0 0 360px;
  width: 360px;
  max-width: 360px;
  min-width: 280px;
}

.cp-right{
  flex: 1 1 auto;
  min-width: 0; /* prevents overflow causing horizontal scroll */
}

.cp-invite{
  margin-top: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(226,232,240,0.95);
  box-shadow: 0 18px 45px rgba(148,163,184,0.28);
  padding: 16px 16px 18px;
}

@media (max-width: 980px){
  .cp-grid{ flex-direction: column; }
  .cp-left{ width: 100%; max-width: none; flex-basis: auto; }
}



/* --- Client Management / Client Profiles polish --- */
.avatar.avatar-flat{
  box-shadow:none !important;
}

/* Client Financials – selected client contact header */
.client-crm-contact-head{
  display:flex;
  gap:12px;
  align-items:center;
}

.client-crm-contact-meta{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.client-crm-contact-name{
  margin:0;
  font-size:14px;
  font-weight:700;
  color:#0f172a;
}

.client-crm-contact-sub,
.client-crm-contact-address{
  font-size:12px;
  color:#64748b;
  line-height:1.35;
  margin:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.client-crm-contact-address{
  color:#475569;
}

.client-mgmt .search-row{
  display:flex !important;
  align-items:center;
  gap:10px;
  width:100%;
}

.client-mgmt .search-row .input{
  flex:1 1 auto;
  min-width:0;
}

.client-mgmt .search-row .btn-mini{
  white-space:nowrap;
}

.client-mgmt .profile-header{
  display:flex;
  align-items:center;
  gap:12px;
}

.client-mgmt .profile-header .avatar{
  width:46px;
  height:46px;
}

.client-mgmt .profile-meta{
  margin-top:4px;
  font-size:14px;
  opacity:0.78;
}

.client-mgmt .kv{
  display:grid;
  gap:6px;
  font-size:14px;
  color:#0f172a;
  line-height:1.35;
}

.client-mgmt .kv strong{
  font-weight:700;
  color:#0f172a;
}

/* ------------------------------------------------------------------
   Generic "glass" utility

   Dashboard partials use class="glass" extensively. Defining it here
   ensures contained panels (invite cards, profile sections, etc.) render
   with the intended frosted look.
------------------------------------------------------------------- */

.glass{
  background:rgba(255,255,255,.72);
  border:1px solid rgba(148,163,184,.28);
  box-shadow:0 18px 46px rgba(15,23,42,.10);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
}

.glass:where(.no-border){
  border:0;
}




/* --- Client Financials: stacked layout (Active clients table on top, selected client panel below) --- */
.clients-financials-grid{
  display:flex;
  flex-direction:column;
  gap:18px;
  align-items:stretch;
}

.clients-financials-left,
.clients-financials-right{
  width:100%;
  min-width:0;
  padding:18px 20px;
}

.clients-financials-left-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}
.section-title{
  margin:0;
  font-size:16px;
  font-weight:800;
  color:#0f172a;
}
.section-meta{
  font-size:12px;
  color:#64748b;
}

.table-scroll{ overflow-x:auto; }
.table-basic{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.table-basic thead tr{
  border-bottom:1px solid rgba(226,232,240,0.9);
  text-align:left;
}
.table-basic th{ padding:6px 4px; color:#334155; font-weight:700; }
.table-basic td{ padding:7px 4px; border-bottom:1px solid rgba(241,245,249,0.9); vertical-align:middle; }
.table-basic tr.is-selected{ background:rgba(239,246,255,0.9); }

.cell-strong{ font-weight:700; color:#0f172a; }
.cell-muted{ color:#475569; }
.cell-mono{ font-variant-numeric: tabular-nums; }

.table-link{ color:inherit; text-decoration:none; }
.table-link:hover{ text-decoration:underline; }
.text-right{ text-align:right; }

.pill{
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  text-transform:capitalize;
  display:inline-block;
}
.pill-green{ background:rgba(187,247,208,0.8); color:#166534; }
.pill-blue{ background:rgba(219,234,254,0.9); color:#1d4ed8; }

.table-action{
  font-size:12px;
  color:#2563eb;
  text-decoration:none;
}
.table-action:hover{ text-decoration:underline; }

.empty-hint{
  margin:8px 0 0;
  font-size:13px;
  color:#64748b;
}


.inv-balance-paid{
  margin-top:6px;
  font-size: 13px;
  color: #556;
}

/* --- Client dashboard: Payments due --- */
.invoice-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.invoice-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,0.25);
  background:rgba(248,250,252,0.65);
  backdrop-filter: blur(8px);
}

.invoice-left{ display:flex; align-items:flex-start; gap:12px; min-width:0; }
.invoice-meta{ min-width:0; }

.invoice-icon{
  width:38px;
  height:38px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#0f172a;
  border:1px solid rgba(148,163,184,0.25);
  background:rgba(255,255,255,0.85);
}
.invoice-icon.ok{ background:rgba(240,253,250,0.85); color:#0f766e; border-color:rgba(45,212,191,0.35); }
.invoice-icon.warn{ background:rgba(255,251,235,0.9); color:#b45309; border-color:rgba(251,191,36,0.45); }
.invoice-icon.danger{ background:rgba(254,242,242,0.92); color:#b91c1c; border-color:rgba(248,113,113,0.45); }
.invoice-icon.neutral{ background:rgba(241,245,249,0.9); color:#334155; border-color:rgba(148,163,184,0.35); }

.invoice-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  color:#0f172a;
  font-size:14px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.invoice-pill{
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  font-weight:700;
  border:1px solid rgba(148,163,184,0.25);
  background:rgba(255,255,255,0.85);
  color:#334155;
  flex:0 0 auto;
}
.invoice-pill.ok{ background:rgba(204,251,241,0.85); color:#0f766e; border-color:rgba(45,212,191,0.35); }
.invoice-pill.warn{ background:rgba(254,243,199,0.9); color:#b45309; border-color:rgba(251,191,36,0.45); }
.invoice-pill.danger{ background:rgba(254,226,226,0.92); color:#b91c1c; border-color:rgba(248,113,113,0.45); }
.invoice-pill.neutral{ background:rgba(226,232,240,0.9); color:#334155; border-color:rgba(148,163,184,0.35); }

.invoice-sub{
  margin-top:2px;
  font-size:12px;
  color:#475569;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.invoice-sub-sep{ color:#94a3b8; }
.invoice-sub-hint{ color:#64748b; }

.invoice-good{
  margin-top:6px;
  font-size:12px;
  color:#64748b;
}

.invoice-right{ display:flex; align-items:center; gap:12px; flex:0 0 auto; }
.invoice-amount{ font-weight:800; color:#0f172a; font-size:14px; text-align:right; min-width:72px; }
.invoice-pay{ white-space:nowrap; }

@media (max-width: 760px){
  .invoice-row{ flex-direction:column; align-items:stretch; }
  .invoice-right{ justify-content:space-between; }
  .invoice-amount{ text-align:left; }
}

/* ---------------- Billing panel ---------------- */
.billing-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
}

.billing-summary{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
.bill-stat{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.35);
  background:rgba(255,255,255,.68);
  backdrop-filter:blur(12px) saturate(160%);
}
.bill-icon{
  width:38px;
  height:38px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  background:linear-gradient(135deg, rgba(56,189,248,.18), rgba(129,140,248,.14));
  border:1px solid rgba(148,163,184,.30);
}
.bill-label{ font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:#64748b; font-weight:800; }
.bill-value{ font-size:18px; font-weight:900; color:#0f172a; margin-top:1px; }

.billing-grid{
  display:grid;
  /* minmax(0, …) allows grid children to shrink instead of overflowing the page */
  grid-template-columns:minmax(0, 1.1fr) minmax(0, .9fr);
  gap:16px;
  align-items:start;
}
.billing-col{
  min-width:0; /* critical for long content/tables inside CSS grid */
  border:1px solid rgba(148,163,184,.28);
  background:rgba(255,255,255,.55);
  border-radius:18px;
  padding:14px;
}
.billing-section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}

.billing-table{ overflow:auto; max-width:100%; width:100%; border-radius:14px; border:1px solid rgba(148,163,184,.28); background:rgba(255,255,255,.72); }
.billing-history-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  /* Keep table readable but allow the column itself to remain within the grid */
  min-width:520px;
}
.billing-history-table thead th{
  text-align:left;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
  font-weight:900;
  padding:10px 12px;
  border-bottom:1px solid rgba(148,163,184,.28);
  background:rgba(248,250,252,.75);
  position:sticky;
  top:0;
  z-index:1;
}
.billing-history-table td{
  padding:12px 12px;
  border-bottom:1px solid rgba(148,163,184,.18);
  color:#0f172a;
  font-size:13px;
}
.billing-history-table tr:last-child td{ border-bottom:none; }
.billing-history-table .num{ text-align:right; white-space:nowrap; }
.billing-history-table .muted{ color:#64748b; white-space:nowrap; }
.billing-link{ color:#0f172a; text-decoration:none; font-weight:700; }
.billing-link:hover{ text-decoration:underline; }

@media (max-width: 980px){
  .billing-grid{ grid-template-columns:1fr; }
  .billing-col{ padding:12px; }
}

@media (max-width: 760px){
  .billing-summary{ grid-template-columns:1fr; }
  .bill-value{ font-size:17px; }
}


/* Email confirmation banner (client dashboard) */
.email-unconfirmed-banner{
  margin: 14px 0 18px 0;
  border-radius: 18px;
  padding: 12px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(120,170,255,0.35);
  box-shadow: 0 18px 44px rgba(20,40,90,0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.email-unconfirmed-banner .eub-inner{
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.email-unconfirmed-banner .eub-title{
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2px;
  color: #0b1b3a;
}
.email-unconfirmed-banner .eub-text{
  color: rgba(10,25,55,0.82);
  font-size: 13px;
  line-height: 1.35;
}
.email-unconfirmed-banner .eub-meta{
  margin-left: 6px;
  color: rgba(10,25,55,0.55);
}
.email-unconfirmed-banner .eub-actions{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}
.email-unconfirmed-banner .eub-form{
  margin: 0;
}
.email-unconfirmed-banner .eub-btn{
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}
.email-unconfirmed-banner .eub-link{
  font-size: 13px;
  text-decoration: underline;
  color: rgba(10,40,120,0.85);
}

/* ================================
   Provider Portal polish
   - Share card typography + icons
   - To-do + New/at-risk panels
   ================================ */

/* Share card */
.share-card .card-title{
  display:flex;
  align-items:center;
  gap: 10px;
}
.share-card .card-title::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(59,130,246,.75), rgba(99,102,241,.55));
  box-shadow: 0 10px 22px rgba(59,130,246,.18);
}

.share-stack{
  display:flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.share-item{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, .35);
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px) saturate(160%);
}

.share-icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255, 255, 255, .95);
  background: linear-gradient(135deg, rgba(2, 132, 199, .95), rgba(59, 130, 246, .78));
  box-shadow: 0 14px 26px rgba(59, 130, 246, .18);
  border: 1px solid rgba(255,255,255,.32);
  flex: 0 0 auto;
}
.share-icon svg{ display:block; }

.share-body{ flex: 1; min-width: 0; }
.share-title{
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 11px;
  color: rgba(15, 23, 42, .55);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.share-value{
  font-weight: 800;
  color: rgba(15, 23, 42, .92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 2px;
}
.share-meta{
  font-size: 12px;
  line-height: 1.35;
  color: rgba(15, 23, 42, .62);
}
.share-actions{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.share-actions .btn-mini{
  padding: 8px 12px;
  border-radius: 999px;
}

/* Column headers with icons */
.col-head.col-head--with-icon{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.col-head__left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.col-head__icon{
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,.95);
  background: linear-gradient(135deg, rgba(59,130,246,.85), rgba(14,165,233,.65));
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 12px 22px rgba(59,130,246,.16);
}
.col-head__icon svg{ display:block; }
.col-head__title{ white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
.col-head__pill{
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .35);
  background: rgba(255, 255, 255, .6);
  color: rgba(15, 23, 42, .65);
}

/* To-do list */
.todo-list{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.todo-row{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
}
.todo-left{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  min-width: 0;
}
.todo-check{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, .55);
  background: rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
  margin-top: 2px;
}
.todo-title{
  font-weight: 800;
  color: rgba(15, 23, 42, .9);
  line-height: 1.2;
}
.todo-meta{
  font-size: 12px;
  color: rgba(15, 23, 42, .62);
  margin-top: 3px;
}
.todo-badge{
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, .35);
  background: rgba(59, 130, 246, .10);
  color: rgba(30, 64, 175, .85);
  flex: 0 0 auto;
}

/* Pending / at-risk requests */
.risk-list{ display:flex; flex-direction: column; gap: 10px; }
.risk-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.risk-left{ display:flex; align-items:center; gap: 10px; min-width:0; }
.risk-avatar{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: rgba(255,255,255,.95);
  background: linear-gradient(135deg, rgba(99,102,241,.85), rgba(59,130,246,.75));
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 14px 26px rgba(59,130,246,.16);
  flex: 0 0 auto;
}
.risk-name{
  font-weight: 900;
  color: rgba(15, 23, 42, .92);
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.risk-meta{ font-size: 12px; color: rgba(15, 23, 42, .62); margin-top: 3px; }
.risk-actions{ display:flex; gap: 10px; align-items:center; flex-wrap: wrap; }
.risk-actions .btn-mini{ border-radius: 999px; padding: 8px 12px; }
.risk-actions .btn-mini.btn-accept{
  background: linear-gradient(135deg, rgba(16, 185, 129, .22), rgba(59, 130, 246, .16));
  border-color: rgba(16, 185, 129, .25);
}
.risk-actions .btn-mini.btn-decline{
  background: rgba(239, 68, 68, .07);
  border-color: rgba(239, 68, 68, .25);
}

/* Small empty state */
.panel-empty{
  display:flex;
  align-items:flex-start;
  gap: 12px;
}
.panel-empty__icon{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(59, 130, 246, .10);
  border: 1px solid rgba(96, 165, 250, .25);
  color: rgba(30, 64, 175, .85);
  flex: 0 0 auto;
}
.panel-empty__icon svg{ display:block; }
.panel-empty__title{ font-weight: 900; margin: 0; color: rgba(15, 23, 42, .9); }
.panel-empty__text{ margin: 6px 0 0; font-size: 12px; line-height: 1.35; color: rgba(15, 23, 42, .62); }
// -- nothing to see here
/* Discovery (search + categories) – cohesive with frontpage theme */

:root{
  --brand-500:#06b6d4; --brand-600:#0284c7; --brand-700:#0369a1;
  --ink-900:#0f172a; --ink-700:#334155; --ink-500:#64748b; --ink-200:#e5e7eb; --ink-100:#f3f4f6;
}

.section-discovery .discover-shell{
  background:#fff; border:1px solid rgba(148,163,184,.26);
  border-radius:22px; box-shadow:0 24px 60px rgba(15,23,42,.08);
  padding:16px 16px 20px;
}

.discover-bar{ display:flex; flex-direction:column; gap:10px; margin-bottom:14px; }
.search-wrap{
  position:relative; display:flex; align-items:center;
  background:#f8fafc; border:1px solid var(--ink-200); border-radius:14px; padding:8px 10px;
}
.search-wrap .icon-search{ width:18px; height:18px; color:#94a3b8; margin-right:8px; }
.search-wrap input{
  width:100%; border:0; background:transparent; outline:none; font-size:14px; color:var(--ink-900);
}

.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  border:1px solid var(--ink-200); background:#fff; color:var(--ink-700);
  font-weight:700; font-size:12px; padding:7px 10px; border-radius:999px; cursor:pointer;
}
.chip:hover{ background:var(--ink-100); }
.chip.active{ background:linear-gradient(135deg,var(--brand-500),var(--brand-700)); color:#fff; border-color:transparent; }

.discover-grid{ display:grid; grid-template-columns: 280px minmax(0,1fr); gap:16px; }
.discover-side{ display:flex; flex-direction:column; gap:12px; }
.side-card{
  background:#fff; border:1px solid var(--ink-200); border-radius:16px; box-shadow:0 16px 40px rgba(15,23,42,.06);
}
.side-card .side-title{ margin:0; padding:12px 14px; font-size:14px; font-weight:800; color:var(--ink-900); border-bottom:1px solid var(--ink-200); }
.cat-list{ list-style:none; margin:0; padding:10px; display:flex; flex-direction:column; gap:6px; }
.cat-link{
  width:100%; text-align:left; background:#fff; border:1px solid var(--ink-200); color:var(--ink-700);
  padding:9px 10px; border-radius:10px; font-weight:700; font-size:13px; cursor:pointer; display:flex; align-items:center; gap:8px;
}
.cat-link:hover{ background:var(--ink-100); color:var(--ink-900); }
.cat-dot{ width:7px; height:7px; border-radius:999px; background:linear-gradient(135deg,var(--brand-500),var(--brand-700)); }

.filter-row{ display:flex; flex-direction:column; gap:8px; padding:10px 12px 14px; color:var(--ink-700); font-size:13px; }
.filter-row label{ display:flex; align-items:center; gap:8px; }

.results-grid{
  display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px;
}
.results-empty{ border:1px dashed var(--ink-200); border-radius:12px; padding:16px; text-align:center; color:var(--ink-700); }

.card-coach{
  position:relative; overflow:hidden;
  background:#fff; border:1px solid var(--ink-200); border-radius:16px; box-shadow:0 18px 46px rgba(15,23,42,.06);
}
.card-coach .cover{
  height:84px; background:
    radial-gradient(90px 50px at 20% 30%, rgba(6,182,212,.25), transparent 60%),
    radial-gradient(120px 70px at 80% 70%, rgba(3,105,161,.25), transparent 60%),
    linear-gradient(135deg, rgba(2,132,199,.15), rgba(3,105,161,.15));
}
.card-coach .inner{ padding:12px 14px 14px; display:grid; grid-template-columns: 44px 1fr; gap:10px; }
.card-coach .avatar{
  width:44px; height:44px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; font-weight:800; color:#fff;
  background:linear-gradient(135deg,var(--brand-500),var(--brand-700)); box-shadow:0 8px 22px rgba(3,105,161,.35);
  margin-top:-22px; border:2px solid #fff;
}
.card-coach .name{ margin:0; font-size:15px; font-weight:800; color:var(--ink-900); }
.card-coach .meta{ margin:2px 0 6px; color:var(--ink-500); font-size:12px; }
.card-coach .tags{ display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 10px; }
.card-coach .tag{
  font-size:11px; font-weight:700; color:#0b1220; background:#f1f5f9; border:1px solid var(--ink-200);
  padding:4px 8px; border-radius:999px;
}
.card-coach .actions{ display:flex; gap:8px; }
.card-coach .btn-mini{
  display:inline-flex; align-items:center; gap:6px; padding:7px 10px; border-radius:10px;
  border:1px solid var(--ink-200); background:#fff; color:var(--ink-900); text-decoration:none; font-size:12px; font-weight:700;
}
.card-coach .btn-mini:hover{ background:var(--ink-100); }
.card-coach .btn-cta{
  border-color:transparent; background:linear-gradient(135deg,var(--brand-500),var(--brand-700)); color:#fff;
  box-shadow:0 10px 26px rgba(3,105,161,.28);
}

/* Responsive */
@media (max-width: 1024px){
  .discover-grid{ grid-template-columns: 1fr; }
  .results-grid{ grid-template-columns: 1fr; }
}

/* --- Discovery (Search) section alignment fix ---------------------- */

/* Use one radius + one canvas so the two rounded shapes line up */
.section-search{
  --panel-radius: 26px;
}

/* Make the section canvas match the inner panel exactly */
.section-search::before{
  border-radius: var(--panel-radius);
  /* keep your existing gradients from earlier; this line only syncs radii */
}

/* Remove any stray backgrounds from the search partial’s outer container */
.section-search .discovery-wrap{
  position: relative;
  padding: 0px;            /* tiny breathing room between canvas and panel */
  background: transparent;  /* important: let the section canvas be the only bg */
}

/* The actual glass card that holds the search UI */
.section-search .discovery-panel{
  border-radius: var(--panel-radius);
  background: linear-gradient(140deg, rgba(255,255,255,.22), rgba(255,255,255,.10));
  border: 1px solid rgba(148,163,184,.55);
  box-shadow:
    0 30px 80px rgba(15,23,42,.20),
    inset 0 1px 0 rgba(255,255,255,.45);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  padding: 18px;            /* inner spacing for the content */
  margin: 0 auto;           /* center it */
}

/* If your partial sets its own background on a top block, neutralize it */
.section-search .discovery-panel [class*="surface"],
.section-search .discovery-panel [class*="card"]{
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Optional: align the white input “pill” to the glass panel edges */
.section-search .search-input,
.section-search .search-input *{
  border-radius: calc(var(--panel-radius) - 10px);
}

/* Tighten the section’s vertical rhythm so the two shapes look centered */
.section-search.section-block{
  padding-top: 28px;
  padding-bottom: 32px;
}
/* Coachable frontpage theme: glass panels + section gradients */

/* Logo-aligned palette: teal / cyan → deep blue */

:root{
  --brand-500:#06b6d4;   /* cyan / teal */
  --brand-600:#0284c7;   /* blue-leaning teal */
  --brand-700:#0369a1;   /* deep blue */
  --brand-soft:#e0f2fe;  /* light cyan background */

  --slate-950:#020617;
  --slate-900:#0f172a;
  --slate-800:#1f2937;
  --slate-700:#334155;
  --slate-500:#64748b;
  --slate-300:#cbd5f5;
  --slate-200:#e5e7eb;
  --slate-100:#f3f4f6;
  --white:#ffffff;

  /* Section canvases */
  --canvas-soft: rgba(2,132,199,.06);
  --canvas-glass: rgba(255,255,255,.8);
}

*{box-sizing:border-box}

/* Layout shell for the landing page */

html,body{height:100%}
body.app{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  color:var(--slate-900);
}

.page-shell{
  position:relative;
  isolation:isolate; /* ensure pseudo canvases layer correctly */
}

/* ------------------------------------------------------------------ */
/* Section framing + perfectly aligned background gradients            */
/* ------------------------------------------------------------------ */

.section-block{
  position:relative;
  margin-top:40px;
  padding:32px 0 32px;
  border-top:1px solid rgba(148,163,184,.24);
  overflow:visible; /* allow our pseudo backgrounds */
 
}

/* Shared aligned background “canvas” per section.
   Expands to match page-shell gutters so sections line up. */
.section-block::before{
  content:"";
  position:absolute;
  z-index:-1;
  left:-20px; right:-20px;
  top:0; bottom:0;
  border-radius:22px;
  pointer-events:none;

  /* Layered gradient + blobs → glass-friendly base */
  background:
    radial-gradient(220px 140px at 8% 6%, var(--sec-blob1), transparent 60%),
    radial-gradient(240px 160px at 96% 14%, var(--sec-blob2), transparent 62%),
    linear-gradient(180deg, var(--sec-g2), var(--sec-g1) 70%),
    linear-gradient(0deg, var(--sec-g3), transparent 58%);
}

/* Optional faint glyph */
.section-block::after{
  content:"";
  position:absolute;
  z-index:-1;
  right:16px; top:18px;
  width:160px; height:160px;
  opacity:.06;
  filter:grayscale(1);
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  pointer-events:none;
  display:none; /* enable per-section if desired */
}

.section-block:last-of-type{ padding-bottom:4px; }

/* ------------------------------------------------------------------ */
/* Section-specific gradient palettes                                  */
/* ------------------------------------------------------------------ */

/* Mission: softer, optimistic cyan */
.section-mission{

  border-top:none;
  margin-top:48px;

  --sec-g2: rgba(2,132,199,.08);
  --sec-g3: rgba(14,165,233,.10);
  --sec-blob1: rgba(56,189,248,.16);
  --sec-blob2: rgba(37,99,235,.12);
    background:
    radial-gradient(220px 140px at 8% 6%, var(--sec-blob1), transparent 60%),
    radial-gradient(240px 160px at 96% 14%, var(--sec-blob2), transparent 62%),
    linear-gradient(180deg, var(--sec-g2), var(--sec-g1) 70%),
    linear-gradient(0deg, var(--sec-g3), transparent 58%);

}

/* Features: a touch deeper for contrast */
.section-features{

  --sec-g2: rgba(2,132,199,.10);
  --sec-g3: rgba(2,132,199,.08);
  --sec-blob1: rgba(6,182,212,.18);
  --sec-blob2: rgba(3,105,161,.12);
}

/* How it works: cool glassy strip feel */
.section-how{
  --sec-g2: rgba(148,163,184,.14);
  --sec-g3: rgba(2,132,199,.08);
  --sec-blob1: rgba(59,130,246,.14);
  --sec-blob2: rgba(56,189,248,.12);
}

/* Getting started steps strip */
.section-steps{
  --sec-g2: rgba(148,163,184,.10);
  --sec-g3: rgba(2,132,199,.08);
  --sec-blob1: rgba(56,189,248,.16);
  --sec-blob2: rgba(3,105,161,.12);
}


.steps-flow{
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding: 40px 8px 24px;
}

.steps-flow::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 1px;
  border-bottom: 1px dashed rgba(148,163,184,.55);
  transform: translateY(-50%);
  pointer-events: none;
}

.step-node{
  position: relative;
  z-index: 1;
  flex: 1 1 150px;
  max-width: 200px;
  margin-inline: auto;
  text-align: center;
  padding: 14px 18px 18px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,.45), rgba(226,242,255,.12));
  border: 1px solid rgba(191,219,254,.90);
  box-shadow:
    0 22px 60px rgba(15,23,42,.25),
    0 0 0 1px rgba(255,255,255,.65) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    opacity .7s ease-out,
    transform .7s ease-out,
    box-shadow .25s ease-out,
    border-color .25s ease-out;
  opacity: 0;
  transform: translateY(26px) scale(.98);
  transition-delay: calc(var(--step-order, 0) * 90ms);
}

.step-node:hover{
  box-shadow:
    0 26px 70px rgba(15,23,42,.32),
    0 0 0 1px rgba(255,255,255,.8) inset;
  border-color: rgba(125,211,252,.95);
}

.step-node.step-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Section shell for the 5-step area */
.section-steps {
  position: relative;
  padding: 3%;
  max-width: 100%;
  border-radius: 0px;
  overflow: hidden;
  background-image:
    radial-gradient(circle at top left, rgba(255,255,255,.65), rgba(255,255,255,.55) 45%, rgba(226,232,240,.75) 60%),
    url(/assets/steps-bg-leaves3-76fbbef4f63f9154139f5a728d5f6e1b9c86f6530b9d701bd2320fb011add465.png);
  background-size: cover;
  background-position: center;
  box-shadow:
    0 40px 80px rgba(15,23,42,.28);
}

/* optional: subtle inner vignette so edges fade nicely */
.steps-section::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    background-image:
    radial-gradient(circle at top left, rgba(255,255,255,.95), rgba(255,255,255,.85) 45%, rgba(226,232,240,.75) 100%),
    url('<%= image_path "steps-bg-leaves2.jpg" %>');

    radial-gradient(circle at center,
      rgba(255,255,255,.0) 0%,
      rgba(15,23,42,.04) 70%,
      rgba(15,23,42,.10) 100%);
  pointer-events: none;
}

/* Slightly more transparent hex glass now that we have a background */
.step-icon{
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  background:
    radial-gradient(circle at 20% 0%,
      rgba(255,255,255,.92) 0%,
      rgba(255,255,255,.65) 30%,
      rgba(191,219,254,.32) 60%,
      rgba(15,23,42,.02) 100%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow:
    0 20px 50px rgba(15,23,42,.30),
    0 0 0 1px rgba(148,205,255,.55) inset;
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

.step-icon::before{
  content: "";
  position: absolute;
  inset: 10px;
  clip-path: inherit;
  border: 1px solid rgba(255,255,255,.7);
  opacity: .85;
  pointer-events: none;
}

/* keep the dark center circle crisp */
.step-icon-number{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #0f172a, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
  box-shadow:
    0 8px 20px rgba(15,23,42,.55),
    0 0 0 1px rgba(255,255,255,.6);
}
.step-node h3{
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--slate-900);
}

.step-node p{
  font-size: .9rem;
  line-height: 1.5;
  color: var(--slate-700);
}

/* ------------------------------------------------------------------ */
/* Getting Started Roadmap (modern path diagram)                        */
/* ------------------------------------------------------------------ */

.roadmap{
  position: relative;
  margin-top: 26px;
  padding: 22px 10px 8px;
}

.roadmap-path{
  position: absolute;
  left: 18px;
  right: 18px;
  /* sit behind the badges, not through the text */
  top: 104px;
  height: 220px;
  width: calc(100% - 36px);
  pointer-events: none;
  opacity: .9;
  filter: drop-shadow(0 12px 26px rgba(15,23,42,.18));
}

.roadmap-nodes{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.roadmap-node{
  --floatY: 12px;
  position: relative;
  border-radius: 26px;
  padding: 18px 18px 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.48), rgba(226,242,255,.10));
  border: 1px solid rgba(191,219,254,.92);
  box-shadow:
    0 22px 60px rgba(15,23,42,.22),
    0 0 0 1px rgba(255,255,255,.62) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 248px;

  opacity: 0;
  transform: translateY(calc(var(--floatY) + 26px)) scale(.985);
  transition:
    opacity .7s ease-out,
    transform .7s ease-out,
    box-shadow .25s ease-out,
    border-color .25s ease-out;
  transition-delay: calc(var(--node-order, 0) * 90ms);
}

.roadmap-node:hover{
  box-shadow:
    0 26px 74px rgba(15,23,42,.28),
    0 0 0 1px rgba(255,255,255,.78) inset;
  border-color: rgba(125,211,252,.98);
}

.roadmap-node.roadmap-visible{
  opacity: 1;
  transform: translateY(var(--floatY)) scale(1);
}

/* Staggered "wave" placement to match the dashed path */
.roadmap-node:nth-child(1){ --floatY: 26px; }
.roadmap-node:nth-child(2){ --floatY: 0px; }
.roadmap-node:nth-child(3){ --floatY: 38px; }
.roadmap-node:nth-child(4){ --floatY: 4px; }
.roadmap-node:nth-child(5){ --floatY: 22px; }

.roadmap-badge-wrap{
  position: relative;
  width: 98px;
  height: 98px;
  margin: 0 auto 14px;
}

.roadmap-badge{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  background:
    radial-gradient(circle at 30% 0%, rgba(255,255,255,.35), rgba(255,255,255,.08) 38%, rgba(2,132,199,.12) 70%, rgba(15,23,42,.02) 100%),
    linear-gradient(135deg, rgba(14,165,233,.35), rgba(59,130,246,.25));
  /* Make the hex read clearly on light glass */
  border: 2px solid rgba(255,255,255,.88);
  box-shadow:
    0 20px 52px rgba(15,23,42,.30),
    0 0 0 2px rgba(148,205,255,.72) inset,
    0 0 0 1px rgba(2,132,199,.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Outer cyan outline ring (subtle but visible) */
.roadmap-badge::before{
  content: "";
  position: absolute;
  inset: -2px;
  clip-path: inherit;
  border: 2px solid rgba(2,132,199,.38);
  border-radius: 0; /* clip-path defines the shape */
  pointer-events: none;
}

/* crisp outline ring for the hex (helps it read on light backgrounds) */
.roadmap-badge::after{
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
  box-shadow:
    0 0 0 1px rgba(2,132,199,.22) inset,
    0 10px 24px rgba(15,23,42,.16);
  pointer-events: none;
}

.roadmap-badge i{
  color: #fff;
  font-size: 28px;
  text-shadow: 0 10px 22px rgba(15,23,42,.35);
  transform: translateY(-2px);
}

.roadmap-number{
  position: absolute;
  z-index: 3;
  bottom: -12px;
  right: -6px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  background: radial-gradient(circle at 30% 0%, #0f172a, #020617);
  box-shadow:
    0 10px 22px rgba(15,23,42,.45),
    0 0 0 2px rgba(255,255,255,.70);
}

.roadmap-node h3{
  font-size: 1.02rem;
  margin: 0 0 6px;
  color: var(--slate-900);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roadmap-node p{
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--slate-700);
  min-height: 66px;
}

/* Mobile adjustments */
@media (max-width: 900px){
  .steps-flow{
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-inline: 0;
  }
  .steps-flow::before{
    display: none;
  }
  .step-node{
    max-width: none;
    text-align: left;
    padding: 14px 16px 18px;
  }
  .step-icon{
    margin: 0 0 8px;
  }
}

/* Roadmap responsive */
@media (max-width: 1100px){
  .roadmap-nodes{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roadmap-path{ top: 128px; height: 210px; }
}

@media (max-width: 820px){
  .roadmap-nodes{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap-path{ display: none; }
  .roadmap-node{
    text-align: left;
    transform: translateY(18px) scale(.99);
  }
  .roadmap-node.roadmap-visible{ transform: translateY(0) scale(1); }
  .roadmap-badge{ margin: 0 0 10px; }
  .roadmap-node:nth-child(n){ --floatY: 0px; }
}

@media (max-width: 560px){
  .roadmap-nodes{ grid-template-columns: 1fr; }
}

/* Small screen refinement */
@media (max-width: 640px){
  .step-node h3{
    font-size: .98rem;
    margin-bottom: 4px;
  }
  .step-node p{
    font-size: .86rem;
  }
}
/* Outcomes: strong glass */
.section-outcomes{
  --sec-g2: rgba(2,132,199,.12);
  --sec-g3: rgba(14,165,233,.12);
  --sec-blob1: rgba(6,182,212,.20);
  --sec-blob2: rgba(3,105,161,.14);
}

/* Reviews: starry subtle */
.section-reviews{
  --sec-g2: rgba(148,163,184,.12);
  --sec-g3: rgba(59,130,246,.08);
  --sec-blob1: rgba(59,130,246,.16);
  --sec-blob2: rgba(6,182,212,.12);
}

/* ------------------------------------------------------------------ */
/* Glass utilities (apply to cards, columns, or panels)                */
/* ------------------------------------------------------------------ */

.glass-card{
  position:relative;
  border-radius:20px;
  background:linear-gradient(140deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  border:1px solid rgba(148,163,184,.45);
  box-shadow:
    0 24px 60px rgba(15,23,42,.18),
    inset 0 1px 0 rgba(255,255,255,.35);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  color:var(--slate-900);
}
.glass-card .panel-inner{ padding:22px 20px 22px; }

.glass-strong{
  border-color: rgba(148,163,184,.55);
}

/* ------------------------------------------------------------------ */
/* Section header + text                                               */
/* ------------------------------------------------------------------ */

.section-header{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:18px;
  margin-bottom:18px;
}
.section-header h2{
  margin:0;
  font-size:22px;
  line-height:1.3;
  color:var(--slate-900);
}
.section-header p{
  margin:0;
  color:var(--slate-700);
  max-width:560px;
}

/* Eyebrow + text helpers */

.eyebrow{
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:24px;
  font-weight:600;
  color:rgba(148,163,184,.95);
  margin:12px;
  padding:0px;
}
.lede{
  margin:0;
  color:var(--slate-700);
  font-size:15px;
  line-height:1.6;
}

/* Buttons */

.btn{
  display:inline-block;
  border-radius:10px;
  padding:10px 14px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
  border:1px solid transparent;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .1s ease;
}
.btn-primary{
  background:linear-gradient(135deg,var(--brand-500),var(--brand-600));
  color:#fff;
  box-shadow:0 10px 30px rgba(3,105,161,.38);
}
.btn-primary:hover{
  background:linear-gradient(135deg,var(--brand-600),var(--brand-700));
  transform:translateY(-1px);
  box-shadow:0 14px 36px rgba(3,105,161,.5);
}
.btn-ghost{
  background:#ffffff;
  border-color:var(--slate-200);
  color:var(--slate-900);
}
.btn-ghost:hover{ background:var(--slate-100); }

/* ------------------------------------------------------------------ */
/* HEADER / NAV                                                        */
/* ------------------------------------------------------------------ */

header.header{ border-bottom:1px solid rgba(148,163,184,.18); padding:10px;}

header.header.nav-elevated{
  /* Keep the top nav visible while scrolling (translucent glass overlay) */
  position:-webkit-sticky;
  position:sticky;
  top:0;
  width:101%;
  /* Avoid negative margins here; they can break sticky behavior in some browsers */
  margin-top:-7px;
  z-index:40;
  background:rgba(255,255,255,.62);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 4px 18px rgba(15,23,42,.06);
  animation:nav-drop-in .45s ease-out;
}

.nav-inner{
  max-width:1080px;
  margin:0 auto;
  padding:0px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.nav-left{ display:flex; align-items:center; gap:8px; }

.logo-link{ display:inline-flex; align-items:center; }
.logo-stack{ display:flex; align-items:center; }
.logo-wordmark{
  margin-left:6px; font-weight:700; letter-spacing:.02em; font-size:16px; color:var(--slate-900);
}

/* Center nav links */

.nav-center{ flex:1; display:flex; justify-content:center; }

.nav-links{
  list-style:none; margin:0; padding:0;
  display:flex; gap:22px; align-items:center;
  font-size:14px; font-weight:500;
}

.nav-link{
  position:relative; text-decoration:none; color:var(--slate-700);
  padding:4px 0; transition:color .18s ease, transform .1s ease;
}
.nav-link::after{
  content:""; position:absolute; left:0; bottom:-3px; width:100%; height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--brand-500),var(--brand-700));
  transform:scaleX(0); transform-origin:center; transition:transform .2s ease-out,opacity .2s ease-out; opacity:0;
}
.nav-link:hover{ color:var(--slate-900); transform:translateY(-1px); }
.nav-link:hover::after{ transform:scaleX(1); opacity:1; }

/* Right side actions */

.nav-right{ display:flex; align-items:center; gap:8px; }

/* Mobile hamburger + slide-down menu */

.nav-hamburger{
  display:none;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.7);
  background:rgba(255,255,255,.9);
  padding:0;
  margin-left:4px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:4px;
  flex-direction:column;
  box-shadow:0 8px 20px rgba(15,23,42,.12);
  transition:box-shadow .15s ease, transform .12s ease, border-color .15s ease;
}

.nav-hamburger span{
  width:16px;
  height:2px;
  border-radius:999px;
  background:var(--slate-800);
  transition:transform .15s ease, opacity .15s ease;
}

/* X state */
.nav-hamburger.is-open span:nth-child(1){
  transform:translateY(4px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2){
  opacity:0;
}
.nav-hamburger.is-open span:nth-child(3){
  transform:translateY(-4px) rotate(-45deg);
}

/* Mobile nav panel */
.nav-mobile{
  position:fixed;
  inset:56px 14px auto 14px;
  border-radius:20px;
  padding:12px 14px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(148,163,184,.4);
  box-shadow:0 20px 40px rgba(15,23,42,.25);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  z-index:30;
  opacity:0;
  pointer-events:none;
  transform:translateY(-8px);
  transition:opacity .18s ease, transform .18s ease;
}

.nav-mobile.nav-mobile--open{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

.nav-mobile-links{
  list-style:none;
  margin:0;
  padding:4px 0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.nav-mobile-links a{
  display:block;
  padding:8px 6px;
  border-radius:10px;
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  color:var(--slate-800);
}

.nav-mobile-links a:hover{
  background:rgba(226,232,240,.9);
}



/* Account dropdown */

.nav-account-dropdown{ position:relative; }
.nav-account-trigger{
  display:inline-flex; align-items:center; gap:6px; padding:6px 10px;
  border-radius:999px; border:1px solid rgba(148,163,184,.7);
  background:rgba(255,255,255,.9);
  cursor:pointer; font-size:13px; font-weight:500; color:var(--slate-800);
  box-shadow:0 8px 20px rgba(15,23,42,.08);
  transition:box-shadow .16s ease, transform .08s ease, border-color .16s ease, background .16s ease;
}
.nav-account-trigger:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(15,23,42,.16);
  border-color:rgba(59,130,246,.8);
  background:rgba(255,255,255,.98);
}
.nav-account-pill{
  font-size:11px; text-transform:uppercase; letter-spacing:.12em;
  padding:10px 10px; border-radius:999px;
  background:linear-gradient(135deg,var(--brand-500),var(--brand-700)); color:#f9fafb;
}

/* ------------------------------------------------------------------ */
/* Frontpage CTA pills                                                */
/* Unifies the two blue pill buttons on the home page (Explore + Quick search) */
/* ------------------------------------------------------------------ */

.home-pill-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:34px;
  padding:12px 22px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  white-space:nowrap;
  box-shadow:0 12px 32px rgba(2,132,199,.22);
}

/* Ensure the mini button variant matches the pill style */
.btn-mini.home-pill-cta{
  padding:12px 22px;
  border-radius:999px;
}

.nav-account-name{ max-width:120px; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.nav-account-chevron{ font-size:11px; color:var(--slate-500); }

.nav-account-menu{
  position:absolute; right:0; top:100%;
  min-width:200px; padding:8px 0; border-radius:14px;
  background:#ffffff; border:1px solid rgba(148,163,184,.35);
  box-shadow:0 18px 45px rgba(15,23,42,.22);
  opacity:0; pointer-events:none; transform:translateY(-4px);
  transition:opacity .16s ease, transform .16s ease; z-index:50;
}
.nav-account-dropdown:hover .nav-account-menu,
.nav-account-dropdown:focus-within .nav-account-menu{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

.nav-account-item{
  display:block; padding:7px 12px; font-size:13px; color:var(--slate-800);
   transition:background .13s ease, color .13s ease;
}
.nav-account-item:hover{ background:rgba(248,250,252,1); color:var(--slate-900); }
.nav-account-item--danger{ color:#b91c1c; }
.nav-account-item--danger:hover{ background:#fef2f2; }
.nav-account-divider{ height:1px; margin:5px 0; background:rgba(226,232,240,1); }

header.header .btn.nav-utility{ font-size:13px; padding:8px 12px; }
header.header .btn.nav-cta{ font-size:13px; padding:8px 13px; box-shadow:0 8px 24px rgba(3,105,161,.35); }

/* Nav drop-in animation keyframes */

@keyframes nav-drop-in{
  from{ opacity:0; transform:translateY(-10px); }
  to{ opacity:1; transform:translateY(0); }
}

/* ------------------------------------------------------------------ */
/* HERO                                                               */
/* ------------------------------------------------------------------ */

.hero-bg{
  position:relative;
  margin-top:32px;
  padding:32px 28px 40px;
  background:
    radial-gradient(circle at 0% 0%, rgba(56,189,248,.35), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(37, 162, 235,.95), var(--slate-950));
  color:#e5e7eb;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(15,23,42,.55);
}
.hero-bg::before{
  content:"";
  position:absolute;
  inset:14%;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.45);
  opacity:.3;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.65), transparent 52%),
    radial-gradient(circle at 75% 80%, rgba(96,165,250,.85), transparent 55%);
  mix-blend-mode:screen;
  pointer-events:none;
}
.hero-bg > *{ position:relative; z-index:1; }

.split-hero{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1.45fr);
  gap:32px; align-items:stretch;
}

/* Left intro */

.hero-intro{
  max-width:520px; display:flex; flex-direction:column; gap:14px; justify-content:center;
}
.hero-intro .eyebrow{
  display:inline-flex; align-items:center; gap:6px; border-radius:999px;
  background:rgba(15,23,42,.7); color:rgba(226,232,240,.9);
  text-transform:uppercase; letter-spacing:.14em; font-size:15px;
}
.hero-intro .eyebrow::before{
  content:""; width:7px; height:7px; border-radius:999px;
  background:linear-gradient(135deg,var(--brand-500),var(--brand-700));
}
.hero-intro h1{ margin:0; font-size:30px; line-height:1.15; color:#f9fafb; }
.hero-intro .lede{ color:rgba(226,232,240,.9); font-size:15px; }
.hero-intro .lede span{ opacity:.85; }

/* Split hero panels */

.hero-split-panels{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px; align-items:stretch;
}

/* Base panel + glass override */

.panel{ background:#ffffff; border-radius:16px; border:1px solid #e5e7eb; box-shadow:0 4px 16px rgba(17,24,39,.06); }
.panel-inner{ padding:22px 20px 24px; }

.hero-split-panels .panel{
  background:linear-gradient(140deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  border:1px solid rgba(148,163,184,.55);
  box-shadow:0 28px 70px rgba(15,23,42,.28), inset 0 1px 0 rgba(255,255,255,.45);
  backdrop-filter:blur(26px) saturate(160%);
  -webkit-backdrop-filter:blur(26px) saturate(160%);
  color:#e5e7eb;
  overflow:hidden;
}
.hero-split-panels .panel::before{
  content:"";
  position:absolute; inset:-35%; 
  background:
    radial-gradient(circle at 0% 0%,rgba(6,182,212,.55),transparent 55%),
    radial-gradient(circle at 100% 100%,rgba(59,130,246,.45),transparent 55%);
  opacity:.7; mix-blend-mode:soft-light; pointer-events:none;
}
.hero-split-panels .panel-inner{ position:relative; z-index:1; padding:22px 20px 20px; }

/* Stagger */
.hero-split-panels .panel:nth-child(2){ transform:translateY(10px); }
.hero-split-panels .panel:nth-child(1){ transform:translateY(-4px); }

/* Hero panel typography */

.hero-panel .eyebrow{ margin-bottom:4px; color:rgba(191,219,254,.95); background:transparent; padding:0; letter-spacing:.16em; }
.hero-panel h2{ margin:0 0 8px; font-size:18px; color:#f9fafb; }
.hero-panel p{ margin:0 0 10px; font-size:13px; color:rgba(226,232,240,.92); }
.cta-group{ display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 12px; }
.hero-panel .btn-primary{ box-shadow:0 14px 34px rgba(6,182,212,.65); }
.hero-panel .btn-ghost{ background:rgba(15,23,42,.85); border-color:rgba(148,163,184,.7); color:#e5e7eb; }
.hero-panel .btn-ghost:hover{ background:rgba(15,23,42,.95); }

.mini-bullets{ list-style:none; padding:0; margin:8px 0 0; font-size:11px; color:rgba(226,232,240,.9); }
.mini-bullets li{ display:flex; align-items:flex-start; gap:6px; }

/* ------------------------------------------------------------------ */
/* Mission / Features / How / Outcomes / Reviews content blocks        */
/* ------------------------------------------------------------------ */

.mission-shell{
  position:relative; 
  /*border-radius:24px; */
  padding:24px 26px 26px;
  background:rgba(255,255,255,.14);
  box-shadow:0 22px 55px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.55);
  overflow:hidden; backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.mission-header{ position:relative; z-index:1; margin-bottom:18px; }
.mission-header .eyebrow{ color:var(--brand-700); margin-bottom:4px; }
.mission-header h2{ max-width:520px; font-size:22px; }

.mission-grid{
  position:relative; z-index:1; display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(0,1.2fr);
  gap:22px; align-items:flex-start;
}
.mission-copy{ font-size:15px; line-height:1.7; color:var(--slate-700); width: 40%; max-width: 40%}
.mission-copy p{ margin:0 0 10px; }
.mission-highlights{ display:flex; flex-direction:column; gap:10px; }
/* ------------------------------------------------------------------ */
/* Our Story (front page)                                              */
/* ------------------------------------------------------------------ */

.section-story-letter .story-letter-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:28px;
  align-items:stretch;
}

@media (max-width: 980px){
  .section-story-letter .story-letter-grid{
    grid-template-columns:1fr;
  }
}

.story-letter{
  position:relative;
  padding:34px 34px 28px;
  border:1px solid rgba(226,232,240,.95);
  box-shadow:0 22px 60px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.85);
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82)),
    repeating-linear-gradient(
      to bottom,
      rgba(2,132,199,.05) 0px,
      rgba(2,132,199,.05) 1px,
      transparent 1px,
      transparent 34px
    );
  backdrop-filter: blur(10px);
}

.story-letter:before{
  content:"";
  position:absolute;
  inset:18px;
  border-radius:18px;
  pointer-events:none;
}

.story-letter-kicker{
  font-weight:700;
  color:var(--brand-700);
  letter-spacing:.01em;
  margin:0 0 10px;
  font-size:14px;
}

.story-letter-title{
  margin:0 0 18px;
  font-size:32px;
  letter-spacing:-.02em;
  color:var(--slate-900);
}

.story-letter-body{
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  color:rgba(15,23,42,.88);
  font-size:18px;
  line-height:1.85;
}

.story-letter-body p{
  margin:0 0 14px;
}

.story-letter-body .story-letter-closing{
  margin-top:18px;
}

.story-letter-signoff{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(148,163,184,.35);
}

.story-signature{
  font-family: "Brush Script MT","Segoe Script","Snell Roundhand",cursive;
  font-size:44px;
  line-height:1;
  color:rgba(15,23,42,.90);
  margin:2px 0 12px;
}

.story-name{
  margin:0;
  float: right;
  font-weight:800;
  color:var(--slate-900);
  letter-spacing:.01em;
}

.story-title{
  margin:3px 0 0;
  font-size:13px;
  color:var(--slate-600);
}

.story-letter-aside{
  display:flex;
}

.story-portrait-card{
  width:100%;
  border-radius:26px;
  border:1px solid rgba(226,232,240,.95);
  background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
  box-shadow:0 22px 60px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  padding:26px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
}

.story-portrait-frame{
  border-radius:22px;
  border:1px solid rgba(148,163,184,.35);
  background:radial-gradient(circle at 30% 20%, rgba(6,182,212,.22), transparent 55%),
             radial-gradient(circle at 70% 70%, rgba(2,132,199,.18), transparent 55%),
             rgba(255,255,255,.7);
  padding:22px;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:260px;
}

.story-portrait-logo{
  max-width:220px;
  width:70%;
  height:auto;
  filter: drop-shadow(0 12px 18px rgba(15,23,42,.18));
}

.story-portrait-caption{
  font-size:14px;
  color:var(--slate-700);
  line-height:1.6;
}


/* Highlight cards */
.mission-card{
  position:relative; padding:10px 12px 12px 16px; 
  border-radius:23px;
  background:linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.7));
  border:1px solid rgba(226,232,240,.9);
  box-shadow:0 14px 34px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
}
.mission-card::before{
  content:""; position:absolute; left:0; top:10px; bottom:10px; width:3px; border-radius:999px;
  background:linear-gradient(180deg, var(--brand-500), var(--brand-700));
}
.mission-card h3{ margin:0 0 4px; font-size:14px; color:var(--brand-700); }
.mission-card p{ margin:0; font-size:13px; color:var(--slate-700); }

/* ------------------------------------------------------------------ */
/* PLATFORM FEATURES (MODERN)                                          */
/* ------------------------------------------------------------------ */

.section-features-modern .section-title{
  margin:10px 0 6px;
  font-size:28px;
  line-height:1.15;
  letter-spacing:-0.02em;
  color:var(--slate-900);
}

.feature-showcase-grid{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}

.feature-showcase-card{
  position:relative;
  border-radius:22px;
  padding:16px 16px 14px;
  border:1px solid rgba(226,232,240,.9);
  background:
    radial-gradient(circle at 15% 10%, rgba(56,189,248,.18), transparent 55%),
    radial-gradient(circle at 90% 85%, rgba(14,165,233,.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.70));
  box-shadow:0 18px 48px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature-showcase-card:hover{
  transform: translateY(-2px);
  border-color: rgba(56,189,248,.35);
  box-shadow:0 24px 60px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.80);
}

.feature-showcase-top{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.feature-showcase-icon{
  width:46px;
  height:46px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(180deg, rgba(14,165,233,.95), rgba(3,105,161,.95));
  box-shadow:0 14px 28px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.28);
  flex: 0 0 auto;
}

.feature-showcase-icon i{
  color:#fff;
  font-size:18px;
}

.feature-showcase-head h3{
  margin:0 0 4px;
  font-size:15px;
  color:var(--slate-900);
  letter-spacing:-0.01em;
}

.feature-showcase-head p{
  margin:0;
  font-size:13px;
  line-height:1.55;
  color:var(--slate-700);
}

.feature-showcase-points{
  margin:12px 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.feature-showcase-points li{
  font-size:12px;
  color:var(--slate-700);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.40);
  background:rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

/* Features columns upgraded to glass by default */
.section-features .feature-column{
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.68));
  border:1px solid rgba(226,232,240,.9);
  padding:20px 18px 18px;
  box-shadow:0 12px 32px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.75);
  backdrop-filter: blur(12px);
}
.section-features .feature-column h3{ margin:0 0 8px; font-size:16px; }
.section-features .feature-column ul{
  margin:0; padding-left:18px; color:var(--slate-700); font-size:14px; line-height:1.7;
}
.features-dual{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }

/* How steps */
.steps-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.step-card{
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
  border:1px solid rgba(226,232,240,.95);
  padding:16px 14px 18px;
  box-shadow:0 10px 26px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
}
.step-badge{
              position: absolute;
              right: -20%;
              top: 50%;
              transform: translate(-50%, -50%);
              width: 120px;
              height: 120px;
              border-radius: 999px;
              background:
                linear-gradient(
                  135deg,
                  rgba(255, 255, 255, 0.7),
                  rgba(219, 234, 254, 0.5)
                );
              border: 1px solid rgba(148, 163, 184, 0.7);
              box-shadow:
                0 18px 40px rgba(15, 23, 42, 0.26),
                0 0 0 1px rgba(255, 255, 255, 0.6) inset;
              backdrop-filter: blur(16px);
              display: flex;
              align-items: center;
              justify-content: center;
}
.step-card h3{ margin:0 0 6px; font-size:15px; }
.step-card p{ margin:0; font-size:13px; color:var(--slate-700); }

/* Outcomes / Reviews cards → glass */
.outcomes-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.outcome-card{
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
  border:1px solid rgba(226,232,240,.95);
  padding:14px 14px 16px;
  box-shadow:0 12px 30px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
}
.mock-image{
  border-radius:14px;
  background:radial-gradient(circle at 0% 0%,rgba(6,182,212,.28),transparent 55%),
             radial-gradient(circle at 100% 100%,rgba(3,105,161,.35),transparent 55%);
  padding:10px; margin-bottom:10px;
}
.mock-bar{ height:6px; border-radius:999px; background:rgba(15,23,42,.22); margin-bottom:4px; }
.mock-bar:nth-child(2){width:70%}
.mock-bar:nth-child(3){width:48%}
.outcome-card h3{ margin:0 0 6px; font-size:15px; }
.outcome-card p{ margin:0; font-size:13px; color:var(--slate-700); }

.reviews-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.review-card{
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
  border:1px solid rgba(226,232,240,.95);
  padding:14px 14px 16px;
  box-shadow:0 10px 26px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
}
.review-card .stars{ font-size:14px; color:#fbbf24; margin-bottom:6px; }
.review-card .quote{ margin:0 0 8px; font-size:14px; color:var(--slate-800); }
.review-card .review-meta{ margin:0; font-size:12px; color:var(--slate-500); }

/* ------------------------------------------------------------------ */
/* RESPONSIVE                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px){
  .split-hero{ grid-template-columns:1fr; }
  .hero-split-panels{ grid-template-columns:1fr; }
  .mission-grid{ grid-template-columns:1fr; }

  .feature-showcase-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }

  .nav-inner{ gap:12px; }
  .nav-center{ display:none; } /* collapse on tablet */
  .nav-hamburger{ display:flex; }

  .hero-split-panels .panel,
  .hero-split-panels .panel:nth-child(1),
  .hero-split-panels .panel:nth-child(2){ transform:none; }

  /* Match tablet gutters */
  .section-block::before{ left:-16px; right:-16px; border-radius:20px; }
  .section-block::after{ width:120px; height:120px; }
}

@media (max-width: 640px){
  .section-features-modern .section-title{ font-size:24px; }
  .feature-showcase-grid{ grid-template-columns:1fr; }
  .feature-showcase-card{ padding:14px 14px 12px; }
  .feature-showcase-icon{ width:44px; height:44px; border-radius:16px; }
}

@media (max-width: 900px){
  .features-dual{ grid-template-columns:1fr; }
  .steps-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .outcomes-grid, .reviews-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px){
  .page-shell{ padding:0 14px 28px; }

  .section-block::before{ left:-14px; right:-14px; border-radius:18px; }

  .hero-bg{ padding:24px 16px 28px; margin-top:20px; border-radius:24px; }
  .hero-intro h1{ font-size:24px; }
  .mission-shell{ padding:20px 16px 22px; border-radius:20px; }

  .steps-grid, .outcomes-grid, .reviews-grid{ grid-template-columns:1fr; }

  .nav-right .btn.nav-utility{ display:none; }
}



/* ============================================================
   Reusable Glass Panel + Generic Section Canvases
   (drop-in; no HTML changes required beyond adding classes)
   ============================================================ */

/* ---------- Generic section canvas (aligned to page gutters) ---------- */
.section-block{
  position:relative;
  /* per-section tunables (overridden by theme classes below) */
}

/* perfectly aligned background */
.section-block::before{
  content:"";
  position:absolute;
  z-index:-1;
  left:-20px; right:-20px;   /* match .page-shell padding (20px) */
  top:0; bottom:0;
  border-radius:22px;
  pointer-events:none;
  /* force new stacking context on Safari for proper blur composition */
  backdrop-filter: blur(0.0001px);
}

/* Mobile/tablet gutters */
@media (max-width:1024px){
  .section-block::before{ left:-16px; right:-16px; border-radius:20px; }
}
@media (max-width:640px){
  .section-block::before{ left:-14px; right:-14px; border-radius:18px; }
}

/* ---------- Section canvas themes (apply to the section element) ---------- */
/* Example: <section class="section-block section--cyan"> ... </section> */

.section--cyan{
  --sec-g2: rgba(2,132,199,.08);
  --sec-g3: rgba(14,165,233,.10);
  --sec-blob1: rgba(56,189,248,.16);
  --sec-blob2: rgba(37,99,235,.12);
}
.section--blue{
  --sec-g2: rgba(2,132,199,.10);
  --sec-g3: rgba(2,132,199,.08);
  --sec-blob1: rgba(6,182,212,.18);
  --sec-blob2: rgba(3,105,161,.12);
}
.section--slate{
  --sec-g2: rgba(148,163,184,.14);
  --sec-g3: rgba(2,132,199,.08);
  --sec-blob1: rgba(59,130,246,.14);
  --sec-blob2: rgba(56,189,248,.12);
}
.section--bright{
  --sec-g2: rgba(2,132,199,.12);
  --sec-g3: rgba(14,165,233,.12);
  --sec-blob1: rgba(6,182,212,.20);
  --sec-blob2: rgba(3,105,161,.14);
}
.section--soft{
  --sec-g2: rgba(148,163,184,.12);
  --sec-g3: rgba(59,130,246,.08);
  --sec-blob1: rgba(59,130,246,.16);
  --sec-blob2: rgba(6,182,212,.12);
}

/* ---------- Reusable glass panel (mission look) ---------- */
/* Wrap section content with .glass-panel for the exact glass aesthetic */
.glass-panel{
  position:relative;
  border-radius:24px;
  padding:24px 26px 26px;
  background:rgba(255,255,255,.64);
  border:1px solid rgba(148,163,184,.38);
  box-shadow:0 22px 55px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.55);
  overflow:hidden;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

/* Slightly punchier version */
.glass-panel--strong{
  background:linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.68));
  border-color:rgba(226,232,240,.9);
  box-shadow:0 26px 60px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.75);
}

/* Optional grid layout (body + highlights) used by mission panel */
.glass-panel__grid{
  position:relative; z-index:1; display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(0,1.2fr);
  gap:22px; align-items:flex-start;
}
.glass-panel__body{ font-size:15px; line-height:1.7; color:var(--slate-700); }
.glass-panel__body p{ margin:0 0 10px; }
.glass-panel__highlights{ display:flex; flex-direction:column; gap:10px; }

/* Card style used inside glass panels */
.glass-panel__card{
  position:relative; padding:10px 12px 12px 16px; border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.7));
  border:1px solid rgba(226,232,240,.9);
  box-shadow:0 14px 34px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
}
.glass-panel__card::before{
  content:""; position:absolute; left:0; top:10px; bottom:10px; width:3px; border-radius:999px;
  background:linear-gradient(180deg, var(--brand-500), var(--brand-700));
}
.glass-panel__card h3{ margin:0 0 4px; font-size:14px; color:var(--brand-700); }
.glass-panel__card p{ margin:0; font-size:13px; color:var(--slate-700); }

/* Responsive */
@media (max-width:1024px){
  .glass-panel__grid{ grid-template-columns:1fr; }
}


/* ------------------------------------------------------------------ */
/* Platform features refresh                                           */
/* ------------------------------------------------------------------ */

.section-mission--features{
  margin-top:56px;
  position:relative;
}

.section-mission--features .mission-shell{
  border-radius:32px;
  padding:0;
  background:transparent;
  border:none;
  box-shadow:none;
  overflow:visible;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

.section-mission--features .mission-header{
  margin-bottom:18px;
}

.section-mission--features .mission-header h2{
  max-width:560px;
}

.mission-subtitle{
  margin:6px 0 0;
  font-size:14px;
  color:var(--slate-600);
}

.section-mission--features .mission-grid{
  margin-top:12px;
  gap:26px;
}

.section-mission--features .mission-copy > p{
  margin-bottom:12px;
}

/* Soft logo watermark */
.section-mission--features .features-watermark{
  position:absolute;
  right:-34px;
  top:-40px;
  opacity:.10;
  filter:drop-shadow(0 18px 40px rgba(15,23,42,.35));
  pointer-events:none;
}

.features-watermark-image{
  width:220px;
  height:auto;
  display:block;
}

/* Left column: feature list with icons */

.feature-list{
  list-style:none;
  margin:18px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.feature-list-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:10px 12px;
  border-radius:18px;
  background:linear-gradient(135deg, rgba(255,255,255,.95), rgba(248,250,252,.96));
  border:1px solid rgba(226,232,240,.9);
  box-shadow:0 18px 40px rgba(15,23,42,.08);
}

.feature-icon{
  flex:none;
  width:32px;
  height:32px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  background:radial-gradient(circle at 30% 0%, var(--brand-500), var(--brand-700));
  color:#f9fafb;
}

.feature-text h3{
  margin:0 0 3px;
  font-size:14px;
  color:var(--slate-900);
}

.feature-text p{
  margin:0;
  font-size:13px;
  color:var(--slate-700);
}

/* Right column: slimmer cards with icon chips */

.section-mission--features .mission-highlights{
  gap:14px;
}

.section-mission--features .mission-card{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px 14px;
}

.section-mission--features .mission-card::before{
  display:none;
}

.mission-card-icon{
  flex:none;
  width:32px;
  height:32px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  background:radial-gradient(circle at 30% 0%, var(--brand-soft), var(--brand-500));
  color:var(--brand-700);
}

.mission-card-body h3{
  margin:0 0 4px;
  font-size:14px;
  color:var(--brand-700);
}

.mission-card-body p{
  margin:0;
  font-size:13px;
  color:var(--slate-700);
}

/* Responsive tweaks */

@media (max-width: 900px){
  .section-mission--features{
    margin-top:40px;
  }

  .section-mission--features .mission-shell{
    padding:0;
  }

  .section-mission--features .features-watermark{
    right:-10px;
    top:-10px;
  }

  .features-watermark-image{
    width:150px;
  }
}

@media (max-width: 640px){
  .feature-list-item{
    padding:10px 10px;
  }

  .section-mission--features .mission-grid{
    gap:20px;
  }
}


/* ------------------------------------------------------------------ */
/* Services grid – glass mosaic tiles (Option A)                      */
/* ------------------------------------------------------------------ */

.section-services{
  padding-bottom: 0px;
}

.services-shell {
  margin: auto;      
  position: relative;
  padding: 5%;
  padding-bottom: 0px;
  margin-top: 10px;
  margin-left:20px;
  overflow: hidden;
}

.services-shell::before{
  content:"";
  position:absolute;
  inset:-40%;
  opacity:.7;
  pointer-events:none;
  z-index:0;
   background:linear-gradient(150deg,
    rgba(255,255,255,.30),
    rgba(191,219,254,.16));
}

.services-header{
  position:relative;
  z-index:1;
  margin-bottom:18px;
}

.services-header h2{
  margin:0 0 6px;
  font-size:24px;
}

.services-header .section-subtitle{
  max-width:540px;
}

/* Grid layout */

.services-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:25px;
  margin-top:18px;
}

/* Glass service cards */

.service-card{
  position:relative;
  overflow:hidden;
  border-radius:22px;
  background:linear-gradient(145deg,
    rgba(255,255,255,.25),
    rgba(255,255,255,.10));
  border:1px solid rgba(148,163,184,.60);
  min-height:190px;
  cursor:pointer;
  box-shadow:
    0 18px 45px rgba(15,23,42,.16),
    inset 0 1px 0 rgba(255,255,255,.55);
  transform:translate3d(0,0,0) scale(1);
  transition:
    transform 260ms ease-out,
    box-shadow 260ms ease-out,
    border-color 260ms ease-out,
    background 260ms ease-out;
}

.service-card::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,.65), transparent 60%);
  opacity:0;
  pointer-events:none;
  transition:opacity 260ms ease-out;
}

.service-card-inner{
  position:relative;
  z-index:2;
  padding:18px 18px 18px;
  max-width:260px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.service-card h3{
  margin:0 0 8px;
  font-size:16px;
  font-weight:600;
  letter-spacing:.01em;
  color:var(--slate-900);
}

.service-card p{
  margin:0 0 14px;
  font-size:13px;
  line-height:1.5;
  color:var(--slate-700);
}

.service-card-link{
  font-size:12px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--brand-700);
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.service-card-link span[aria-hidden="true"]{
  font-size:14px;
  transform:translateX(0);
  transition:transform 220ms ease-out;
}

/* Watermark image layer */

.service-card-media{
  position:absolute;
  inset:-110px -28px -10px auto;
  display: grid;
  align-items:stretch;
  justify-content:flex-end;
  z-index:1;
  pointer-events:none;
  opacity:0.25; /* start faded */
  mix-blend-mode:soft-light;
  filter:saturate(130%) contrast(104%);
  transform:translate3d(-10px,0,0) scale(1.05);
  transition:
    transform 420ms ease-out,
    opacity 420ms ease-out;
}

.service-card-image{
  width:140%;
  min-width:260px;
  height:100%;
  object-fit:cover;
}

/* Hover / tilt interaction */
.service-card:hover{
  transform:translate3d(0,-8px,0) rotateX(1.2deg) rotateY(-1.4deg);
  box-shadow:0 26px 70px rgba(15,23,42,.28);
  border-color:rgba(56,189,248,.95);
  background:linear-gradient(150deg,
    rgba(255,255,255,.30),
    rgba(191,219,254,.16));
}

/* Make media fully visible on hover */
.service-card:hover .service-card-media{
  opacity:1;
}

.service-card:hover::before{
  opacity:1;
}

.service-card:hover .service-card-inner{
  transform:translate3d(4px,-2px,0);
}

.service-card-inner{
  transition:transform 260ms ease-out;
}

.service-card:hover .service-card-media{
  opacity:.55;
  transform:translate3d(-2px,-4px,0) scale(1.09);
}

.service-card:hover .service-card-link span[aria-hidden="true"]{
  transform:translateX(3px);
}

/* Responsive tweaks */

@media (max-width: 1024px){
  .services-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 640px){
  .services-shell{
    padding:22px 18px 22px;
  }

  .services-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .service-card-inner{
    max-width:none;
  }
}

/* ------------------------------------------------------------------ */
/* Top providers carousel-style grid                                   */
/* ------------------------------------------------------------------ */

.section-providers{

  position: relative;
  padding: 3%;
  max-width: 100%;
  border-radius: 0px;
  overflow: hidden;
  background-image:
    radial-gradient(circle at top left, rgba(255,255,255,.65), rgba(255,255,255,.55) 45%, rgba(226,232,240,.75) 100%),
    url(/assets/steps-bg-leaves2-b051d484456c9d7c476e645d16682d12581582f7a79e9a1961c5a126b6f51f4e.jpg);
  background-size: cover;
  background-position: center;
  box-shadow:
    0 40px 80px rgba(15,23,42,.28);


  --sec-g2: rgba(219,234,254,.16);
  --sec-g3: rgba(191,219,254,.18);
  --sec-blob1: rgba(56,189,248,.20);
  --sec-blob2: rgba(37,99,235,.18);
}

/* ------------------------------------------------------------------ */
/* Public profile editor (provider/admin)                              */
/* ------------------------------------------------------------------ */

.public-profile-editor-page{
  position:relative;
  overflow:hidden;
}

/* Put the leaves behind the whole editor experience (not just the shell) */
.public-profile-editor-page::before{
  content:"";
  position:absolute;
  inset:-2px;
  background-image:
    radial-gradient(circle at top left, rgba(255,255,255,.55), rgba(255,255,255,.25) 42%, rgba(2,132,199,.10) 100%),
    url(/assets/steps-bg-leaves2-b051d484456c9d7c476e645d16682d12581582f7a79e9a1961c5a126b6f51f4e.jpg);
  background-size: cover;
  background-position: center;
  filter:saturate(1.02) contrast(1.02);
  pointer-events:none;
  z-index:0;
}

.public-profile-editor-page .section-inner{
  position:relative;
  z-index:1;
}

.public-profile-editor-shell{
  border: 1px solid rgba(148,163,184,.28);
  box-shadow:
    0 28px 90px rgba(15,23,42,.18),
    inset 0 1px 0 rgba(255,255,255,.65);
}

.providers-shell{

  position:relative;
  padding:5%;
  margin-top:0px;
  background:rgba(255,255,255,.6);
  border:1px solid rgba(148,163,184,.30);
  box-shadow:0 28px 70px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.7);
  overflow:hidden;
}

.providers-header{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:18px;
}

.providers-header h2{
  margin:0;
  font-size:24px;
}

.providers-header .section-subtitle{
  margin:0;
  font-size:13px;
  color:var(--slate-600);
  max-width:540px;
}

/* Grid of provider cards */

.providers-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:12px;
}

.provider-card{
  position:relative;
  border-radius:22px;
  padding:16px 16px 14px;
  background:linear-gradient(145deg, rgba(248,250,252,.98), rgba(239,246,255,.96));
  border:1px solid rgba(209,213,219,.9);
  box-shadow:0 18px 46px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.85);
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:
    transform 220ms ease-out,
    box-shadow 220ms ease-out,
    border-color 220ms ease-out,
    background 220ms ease-out;
}

.provider-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  background:radial-gradient(circle at 0 0, rgba(56,189,248,.18), transparent 55%);
  opacity:0;
  transition:opacity 260ms ease-out;
  pointer-events:none;
}

.provider-card-main{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.provider-avatar{
  flex:none;
  width:40px;
  height:40px;
  border-radius:999px;
  background:radial-gradient(circle at 30% 0%, var(--brand-500), var(--brand-700));
  display:flex;
  align-items:center;
  justify-content:center;
  color:#e0f2fe;
  font-weight:600;
  font-size:18px;
  box-shadow:0 8px 20px rgba(37,99,235,.35);
}

.provider-avatar--teal{
  background:radial-gradient(circle at 30% 0%, #22c1c3, #0ea5e9);
}

.provider-avatar--indigo{
  background:radial-gradient(circle at 30% 0%, #6366f1, #0f172a);
}

.provider-avatar-initial{
  line-height:1;
}

.provider-meta{
  display:flex;
  flex-direction:column;
  gap:1px;
}

.provider-name{
  margin:0;
  font-size:15px;
  font-weight:600;
  color:var(--slate-900);
}

.provider-role{
  margin:0;
  font-size:12px;
  color:var(--slate-600);
}

.provider-rating{
  margin-top:4px;
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
}

.provider-rating .stars{
  font-size:12px;
  color:#f59e0b;
}

.rating-label{
  color:var(--slate-500);
}

.provider-blurb{
  margin:0;
  font-size:12px;
  color:var(--slate-700);
}

.provider-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.provider-tag{
  padding:3px 8px;
  border-radius:999px;
  font-size:11px;
  background:rgba(191,219,254,.9);
  color:var(--slate-800);
}

.provider-card-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:4px;
}

.provider-spotlight{
  font-size:11px;
  color:var(--brand-700);
  display:flex;
  align-items:center;
  gap:6px;
}

.provider-spotlight::before{
  content:"●";
  font-size:10px;
}

.provider-cta{
  font-size:11px;
  font-weight:500;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(37,99,235,.72);
  color:#0f172a;
  background:#eff6ff;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:4px;
}

.provider-cta::after{
  content:"→";
  font-size:12px;
}

/* Browse page: "Connect" and status pills */

.provider-cta--connect{
  background:rgba(16,185,129,.12);
  border-color:rgba(16,185,129,.55);
}

.provider-cta--disabled{
  opacity:.62;
  pointer-events:none;
  border-color:rgba(148,163,184,.7);
  background:rgba(241,245,249,.9);
}

.provider-cta--disabled::after{
  content:"";
}

.inline-form{
  display:inline;
}

/* Hover effects */

.provider-card:hover{
  transform:translateY(-4px);
  border-color:rgba(37,99,235,.8);
  background:linear-gradient(145deg, rgba(239,246,255,.98), rgba(219,234,254,.96));
  box-shadow:0 24px 60px rgba(15,23,42,.16);
}

.provider-card:hover::before{
  opacity:1;
}

.provider-card:hover .provider-cta{
  background:var(--brand-600);
  color:#f9fafb;
  border-color:transparent;
}

.providers-bottom-cta{
  margin-top:18px;
  padding-top:12px;
  border-top:1px dashed rgba(148,163,184,.6);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  color:var(--slate-700);
}

.providers-bottom-button{
  font-size:12px;
}

/* Responsive */

@media (max-width: 1024px){
  .providers-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 720px){
  .providers-shell{
    padding:24px 18px 26px;
  }

  .providers-grid{
    grid-template-columns:1fr;
  }

  .providers-bottom-cta{
    flex-direction:column;
    align-items:flex-start;
  }
}


/* ------------------------------------------------------------------ */
/* Auth / Sign-in page                                                */
/* ------------------------------------------------------------------ */

.section-auth{
  border-top:none;
  margin-top:48px;

  --sec-g2: rgba(148,163,184,.16);
  --sec-g3: rgba(59,130,246,.10);
  --sec-blob1: rgba(56,189,248,.16);
  --sec-blob2: rgba(30,64,175,.18);
}

.auth-shell{
  position:relative;
  border-radius:24px;
  padding:32px 32px 30px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(148,163,184,.38);
  box-shadow:0 22px 55px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.55);
  overflow:hidden;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.auth-grid{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  gap:32px;
  align-items:stretch;
  justify-content:space-between;
}

.auth-intro{
  flex:1 1 260px;
  max-width:420px;
  font-size:15px;
  line-height:1.7;
  color:var(--slate-700);
}

.auth-intro .eyebrow{
  font-size:12px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--brand-700);
  margin-bottom:6px;
}

.auth-title{
  margin:0 0 8px;
  font-size:24px;
  line-height:1.25;
  color:#020617;
}

.auth-subtitle{
  margin:0 0 14px;
  font-size:14px;
  color:var(--slate-600);
}

.auth-card{
  flex:1 1 320px;
  max-width:420px;
  margin-left:auto;
  border-radius:18px;
  padding:20px 22px 18px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  border:1px solid rgba(226,232,240,.96);
  box-shadow:0 16px 36px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.9);
}

.auth-card-header{
  margin-bottom:12px;
}

.auth-card-title{
  margin:0;
  font-size:18px;
  font-weight:700;
  color:#0f172a;
}

.auth-card-subtitle{
  margin:4px 0 0;
  font-size:13px;
  color:var(--slate-600);
}

.auth-field{
  margin-bottom:12px;
  text-align:left;
}

.auth-field label{
  display:block;
  margin-bottom:4px;
  font-size:13px;
  font-weight:600;
  color:#0f172a;
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"]{
  width:100%;
  border-radius:10px;
  border:1px solid #d1d5db;
  padding:9px 11px;
  font-size:14px;
  outline:none;
  background:#f9fafb;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.auth-field input:focus{
  border-color:var(--brand-500);
  background:#ffffff;
  box-shadow:0 0 0 1px rgba(37,99,235,.12), 0 0 0 4px rgba(191,219,254,.6);
}

.auth-remember{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:6px 0 14px;
  font-size:13px;
  color:var(--slate-700);
}

.auth-remember label{
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:500;
}

.auth-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:4px;
}

.auth-actions .btn{
  width:100%;
  justify-content:center;
  text-align:center;
}

.auth-divider{
  margin:12px 0 10px;
  text-align:center;
  font-size:12px;
  color:var(--slate-500);
}

.auth-footer-links{
  margin-top:10px;
  font-size:12px;
  color:var(--slate-600);
  text-align:center;
}

.auth-footer-links a{
  color:var(--brand-600);
  text-decoration:none;
}

.auth-footer-links a:hover{
  text-decoration:underline;
}

@media (max-width: 768px){
  .auth-shell{
    padding:22px 18px 20px;
  }
}

@media (max-width: 640px) {
  .hide-on-mobile {
    display: none !important;
  }
}

 @media (max-width: 768px) {
  /* stack the provider / client panels on mobile */
  .mission-grid {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px;
  }

  .mission-grid .mission-copy {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* hide the center circle/logo between them */
  .mission-grid .hide-on-mobile {
    display: none !important;
  }
}

@media (min-width: 1025px){
  .nav-mobile{ display:none !important; }
}

/* Browse providers --------------------------------------------------------*/
.browse-shell{
  margin:40px auto 64px;
  max-width:1120px;
  width:100%;
  border-radius:32px;
  padding:32px 40px 40px;
  background:
    radial-gradient(circle at top left, rgba(191,219,254,0.45), transparent 55%),
    radial-gradient(circle at bottom right, rgba(165,243,252,0.35), transparent 55%),
    url('<%= asset_path("login-bg.png") %>') no-repeat right -40px bottom -60px,
    #f9fafb;
  background-size: auto, auto, 520px auto, auto;
  box-shadow:0 26px 70px rgba(15,23,42,0.16);
  border:1px solid rgba(148,163,184,0.45);
}

.browse-header{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-bottom:20px;
}

.browse-title{
  margin:0;
  font-size:24px;
  letter-spacing:-0.02em;
  color:#0f172a;
}

.browse-subtitle{
  margin:4px 0 0;
  font-size:14px;
  color:#4b5563;
}

.browse-filters{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.browse-filters-row{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.browse-field{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.browse-field--grow{
  flex:1 1 auto;
}

.browse-field--compact{
  flex:none;
}

.browse-label{
  font-size:11px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#6b7280;
}

.browse-input{
  width:100%;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.7);
  padding:8px 14px;
  font-size:13px;
  outline:none;
  background:rgba(255,255,255,.9);
}

.browse-input:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 1px rgba(37,99,235,.28);
}

.browse-submit{
  border:none;
  border-radius:999px;
  padding:9px 20px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  background:linear-gradient(135deg, #0ea5e9, #2563eb);
  color:#f9fafb;
  box-shadow:0 10px 30px rgba(15,23,42,.3);
}

.browse-advanced-toggle{
  border:none;
  background:transparent;
  padding:0;
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:#2563eb;
  cursor:pointer;
}

.twiddle-icon{
  display:inline-block;
  transform:translateY(1px);
}

.browse-advanced{
  display:none;
  margin-top:4px;
  padding-top:12px;
  border-top:1px dashed rgba(148,163,184,.7);
  gap:12px 16px;
}

.browse-advanced.is-open{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
}

.browse-price-row{
  display:flex;
  align-items:center;
  gap:8px;
}

.browse-price-input{
  position:relative;
  flex:1 1 0;
}

.browse-price-prefix{
  position:absolute;
  inset:50% auto auto 10px;
  transform:translateY(-50%);
  font-size:12px;
  color:#6b7280;
}

.browse-price-input .browse-input{
  padding-left:20px;
}

.browse-price-separator{
  font-size:12px;
  color:#6b7280;
}

.browse-results-header{
  margin-bottom:16px;
}

.browse-results-count{
  margin:0;
  font-size:12px;
  color:#6b7280;
}

.browse-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:14px;
}

.browse-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.provider-cta--secondary{
  background:transparent;
  color:#111827;
  border-color:#111827;
}

.browse-empty-state{
  margin-top:12px;
  padding:12px 14px;
  border-radius:18px;
  background:rgba(248,250,252,.95);
  border:1px dashed rgba(148,163,184,.7);
  font-size:13px;
  color:#4b5563;
}

@media (min-width: 720px){
  .browse-filters-row{
    flex-direction:row;
    align-items:flex-end;
  }

  .browse-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

/* Account settings (Devise edit) -----------------------------------------*/
.account-settings-section{
  position:relative;
  padding:64px 0 96px;
}

.account-settings-section::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    url('<%= asset_path("login-bg.png") %>') no-repeat right -40px bottom -140px;
  background-size:480px auto;
  opacity:0.22;          /* a bit more visible than before */
  pointer-events:none;
}

.account-settings-shell{
  max-width:720px;
  margin:0 auto;
}
.account-settings-card{
  border-radius:32px;
  padding:32px 36px 30px;
  background:
    radial-gradient(circle at top left, rgba(191,219,254,0.45), transparent 55%),
    radial-gradient(circle at bottom right, rgba(165,243,252,0.35), transparent 55%),
    #f9fafb;
  border:1px solid rgba(148,163,184,.55);
  box-shadow:0 26px 70px rgba(15,23,42,.15);
}
.account-settings-header h1{
  margin:0 0 4px;
  font-size:22px;
  letter-spacing:-0.02em;
  color:#0f172a;
}
.account-settings-header p{
  margin:0 0 18px;
  font-size:13px;
  color:#4b5563;
}
.account-settings-form{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.account-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.account-field--stacked{
  gap:12px;
}
.account-label-row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
}
.account-label{
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:600;
  color:#6b7280;
}
.account-label-hint{
  font-size:11px;
  color:#9ca3af;
}
.account-input{
  width:100%;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.75);
  padding:9px 14px;
  font-size:13px;
  background:rgba(255,255,255,.9);
  outline:none;
}
.account-input:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 1px rgba(37,99,235,.3);
}
.account-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:6px;
  align-items:center;
}
.account-primary-btn{
  border:none;
  border-radius:999px;
  padding:9px 22px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  background:linear-gradient(135deg,#0ea5e9,#2563eb);
  color:#f9fafb;
  box-shadow:0 14px 38px rgba(15,23,42,.35);
}
.account-secondary-link{
  font-size:12px;
  color:#4b5563;
  text-decoration:none;
}
.account-secondary-link:hover{
  text-decoration:underline;
}
.account-danger-zone{
  margin-top:26px;
  padding-top:18px;
  border-top:1px dashed rgba(148,163,184,.7);
}
.account-danger-zone h2{
  margin:0 0 4px;
  font-size:14px;
  font-weight:600;
  color:#b91c1c;
}
.account-danger-zone p{
  margin:0 0 10px;
  font-size:12px;
  color:#6b7280;
}
.account-danger-btn{
  border-radius:999px;
  border:1px solid rgba(220,38,38,.6);
  padding:7px 16px;
  font-size:12px;
  font-weight:500;
  background:rgba(248,250,252,.95);
  color:#b91c1c;
  cursor:pointer;
}
.account-danger-btn:hover{
  background:rgba(254,242,242,1);
}
@media (max-width: 640px){
  .account-settings-card{
    padding:24px 18px 22px;
    border-radius:24px;
  }
}

/* Pricing table frame: subtle grey slab behind the three cards */
.pricing-table-frame{
  position:relative;
  margin-top:26px;
  padding:26px 26px 30px;
  border-radius:26px;
  background:linear-gradient(145deg, rgba(15,23,42,.10), rgba(15,23,42,.04));
  box-shadow:
    0 22px 60px rgba(15,23,42,.30);
}

.pricing-table{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:24px;
}

/* refine cards to sit more like tall towers */
.plan-card{
  position:relative;
  display:flex;
  flex-direction:column;
  width:280px;
  min-height:420px;
  border-radius:22px;
  background:linear-gradient(145deg, rgba(248,250,252,.98), rgba(239,246,255,.96));
  box-shadow:
    0 18px 52px rgba(15,23,42,.26),
    0 0 0 1px rgba(255,255,255,.95) inset;
  overflow:hidden;
}

/* top colored bar & small paper tab */
.plan-flag{
  position:relative;
  height:88px;
}

.plan-flag-inner{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:76px;
  border-radius:22px 22px 0 0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:6px;
  padding-bottom:12px;
  color:#fff;
  font-weight:700;
}

.plan-flag-inner::before{
  content:"";
  position:absolute;
  top:-20px;
  left:50%;
  transform:translateX(-50%) skewX(-10deg);
  width:120px;
  height:24px;
  border-radius:6px 6px 0 0;
  background:rgba(255,255,255,.92);
  box-shadow:0 8px 20px rgba(15,23,42,.24);
}

/* banner colors */
.plan-good .plan-flag-inner{
  background:linear-gradient(135deg, #f97316, #facc15);
}

.plan-better .plan-flag-inner{
  background:linear-gradient(135deg, #0ea5e9, #22c55e);
}

.plan-best .plan-flag-inner{
  background:linear-gradient(135deg, #fb923c, #f97316);
}

.plan-name{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.plan-price{
  font-size:22px;
}

.plan-price-unit{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
}

/* body & footer */
.plan-body{
  padding:18px 20px 14px;
  flex:1;
}

.plan-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--slate-500);
  margin:0 0 6px;
}

.plan-label-highlight{
  color:#16a34a;
}

.plan-tagline{
  margin:0 0 12px;
  font-size:13px;
  color:var(--slate-600);
}

.plan-features{
  margin:0;
  padding-left:0;
  list-style:none;
  font-size:13px;
  color:var(--slate-700);
}

.plan-features li + li{
  margin-top:6px;
}

/* bottom CTA bar */
.plan-footer{
  margin-top:auto;
}

.plan-cta{
  display:block;
  text-align:center;
  padding:11px 16px 10px;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.15em;
  border-top:1px solid rgba(226,232,240,1);
}

.plan-cta-primary{
  background:linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color:#fff;
}

.plan-cta-outline{
  background:rgba(255,255,255,.96);
  color:var(--brand-700);
}

/* responsive */
@media (max-width: 980px){
  .pricing-table{
    gap:18px;
  }
  .plan-card{
    width:100%;
    max-width:320px;
  }
}


/* Public Provider Profile */
.pp-public{
  position: relative;
  padding: 34px 18px 80px;
  overflow: hidden;
}

.pp-public__bg{
  position:absolute;
  inset:-20px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,189,248,.22), transparent 35%),
    radial-gradient(circle at 85% 25%, rgba(99,102,241,.16), transparent 35%),
    radial-gradient(circle at 60% 85%, rgba(34,211,238,.18), transparent 30%),
    url('<%= asset_path("steps-bg-leaves2.png") %>');
  background-size: cover;
  background-position: center;
  filter: saturate(0.05);
  opacity: .52;
}

.pp-public__bg:after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(248,250,252,.35), rgba(248,250,252,.7));
}

.pp-public__container{
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}

.pp-card{
  border-radius: 34px;
  padding: 26px 26px 28px;
  border: 1px solid rgba(148,163,184,.65);
  box-shadow: 0 30px 80px rgba(15,23,42,.16);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.pp-hero{
  display:flex;
  gap: 18px;
  align-items: stretch;
  justify-content: space-between;
  padding: 10px 10px 20px;
  border-bottom: 1px solid rgba(148,163,184,.55);
}

.pp-hero__left{
  display:flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.pp-avatar{
  width: 96px;
  height: 96px;
  border-radius: 26px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: radial-gradient(circle at 30% 0%, rgba(255,255,255,.95), rgba(2,132,199,.92));
  border: 1px solid rgba(14,165,233,.85);
  box-shadow:
    0 18px 45px rgba(15,23,42,.28),
    0 0 0 1px rgba(255,255,255,.7) inset;
}

.pp-avatar span{
  font-size: 44px;
  font-weight: 800;
  color: rgba(255,255,255,.95);
  text-shadow: 0 10px 22px rgba(2,6,23,.24);
}

.pp-identity{ min-width:0; }

.pp-name{
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.pp-headline{
  margin-top: 6px;
  font-size: 15px;
  font-weight: 650;
  color: rgba(15,23,42,.78);
}

.pp-subtitle{
  margin: 8px 0 0;
  color: rgba(15,23,42,.72);
  font-size: 14px;
}

.pp-rating{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
  margin-top: 10px;
}

.pp-stars{ display:flex; gap: 4px; }
.pp-star{
  font-size: 16px;
  line-height: 1;
  color: rgba(148,163,184,.9);
  filter: drop-shadow(0 6px 10px rgba(15,23,42,.12));
}
.pp-star.is-on{ color: #fbbf24; }

.pp-rating__meta{
  display:flex;
  gap: 8px;
  align-items:center;
  font-size: 13px;
  color: rgba(15,23,42,.7);
}
.pp-dot{ opacity: .6; }

.pp-hero__right{
  display:flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 280px;
}

.pp-actions{
  display:flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.pp-btn{
  appearance:none;
  border: 1px solid rgba(15,23,42,.78);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 750;
  font-size: 14px;
  line-height: 1;
  text-decoration:none;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  box-shadow: 0 16px 32px rgba(15,23,42,.12);
}

.pp-btn:hover{ transform: translateY(-1px); box-shadow: 0 22px 44px rgba(15,23,42,.16); }
.pp-btn:active{ transform: translateY(0px) scale(.99); }

.pp-btn--primary{
  background: linear-gradient(180deg, rgba(2,132,199,.98), rgba(3,105,161,.98));
  color: rgba(255,255,255,.96);
  border-color: rgba(2,6,23,.72);
}

.pp-btn--ghost{
  background: rgba(255,255,255,.72);
  color: rgba(15,23,42,.92);
  border-color: rgba(148,163,184,.9);
}

.pp-btn--soft{
  background: rgba(226,232,240,.65);
  color: rgba(15,23,42,.86);
  border-color: rgba(148,163,184,.9);
}

.pp-btn--disabled{
  background: rgba(226,232,240,.85);
  color: rgba(100,116,139,.95);
  border-color: rgba(148,163,184,.85);
  box-shadow: none;
  cursor: not-allowed;
}

.pp-alert{
  width: 100%;
  max-width: 520px;
  text-align:left;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255,255,255,.64);
  border: 1px solid rgba(148,163,184,.7);
  box-shadow: 0 18px 44px rgba(15,23,42,.10);
}
.pp-alert__title{
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(2,6,23,.78);
}
.pp-alert__text{
  margin-top: 6px;
  color: rgba(15,23,42,.72);
  font-size: 13px;
  line-height: 1.4;
}

.pp-qualifications{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 10px 8px;
}

.pp-badge{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(148,163,184,.75);
  box-shadow: 0 16px 34px rgba(15,23,42,.10);
}
.pp-badge__dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(34,211,238,.95), rgba(2,132,199,.95));
  box-shadow: 0 0 0 3px rgba(14,165,233,.18);
}
.pp-badge__label{
  font-size: 13px;
  font-weight: 750;
  color: rgba(15,23,42,.9);
}
.pp-badge__kind{
  font-size: 12px;
  color: rgba(71,85,105,.9);
  padding-left: 10px;
  border-left: 1px solid rgba(148,163,184,.6);
}

.pp-grid{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  padding: 14px 10px 8px;
}

.pp-panel{
  border-radius: 24px;
  padding: 16px 16px 14px;
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(148,163,184,.65);
  box-shadow: 0 22px 55px rgba(15,23,42,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.pp-panel--story{
  min-height: 340px;
}

.pp-panel__title{
  font-size: 14px;
  font-weight: 850;
  color: rgba(15,23,42,.88);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.pp-panel__title--row{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.pp-panel__hint{
  font-size: 12px;
  color: rgba(71,85,105,.85);
  font-weight: 650;
}

.pp-tags{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pp-tag{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(248,250,252,.78);
  border: 1px solid rgba(148,163,184,.85);
  color: rgba(15,23,42,.86);
  font-size: 13px;
  font-weight: 650;
}

.pp-meta{
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.pp-meta__label{
  font-size: 12px;
  font-weight: 850;
  color: rgba(71,85,105,.9);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pp-meta__value{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(15,23,42,.84);
  line-height: 1.45;
}

.pp-media video{
  width: 100%;
  max-height: 340px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.65);
  background: rgba(2,6,23,.92);
}
.pp-media--audio audio{ width: 100%; }

.pp-story{
  color: rgba(15,23,42,.84);
  font-size: 15px;
  line-height: 1.6;
}
.pp-story h2, .pp-story h3{
  margin: 16px 0 8px;
  color: rgba(15,23,42,.92);
}
.pp-story p{ margin: 0 0 12px; }
.pp-story ul{ margin: 8px 0 12px 18px; }

.pp-empty{
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(248,250,252,.75);
  border: 1px dashed rgba(148,163,184,.85);
  color: rgba(71,85,105,.92);
  font-size: 14px;
  line-height: 1.5;
}

.pp-reviews{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.pp-review{
  border-radius: 18px;
  padding: 12px 12px;
  background: rgba(248,250,252,.72);
  border: 1px solid rgba(148,163,184,.65);
}

.pp-review__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pp-review__stars{ display:flex; gap: 3px; }
.pp-review__star{ font-size: 14px; color: rgba(148,163,184,.85); }
.pp-review__star.is-on{ color: #fbbf24; }

.pp-review__date{
  font-size: 12px;
  color: rgba(71,85,105,.85);
  font-weight: 650;
}

.pp-review__body{
  color: rgba(15,23,42,.84);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.pp-review__more{
  margin-top: 10px;
  display:flex;
  justify-content: flex-end;
}

.pp-link{
  font-weight: 800;
  color: rgba(2,132,199,.95);
  text-decoration: none;
}
.pp-link:hover{ text-decoration: underline; }

.pp-reviewbox{
  margin-top: 14px;
  border-radius: 20px;
  padding: 14px 14px;
  background: rgba(255,255,255,.62);
  border: 1px dashed rgba(148,163,184,.8);
}

.pp-reviewbox__title{
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 900;
  color: rgba(15,23,42,.88);
}
.pp-reviewbox__subtitle{
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(71,85,105,.88);
}

.pp-formrow{ margin-bottom: 10px; }
.pp-label{
  display:block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(71,85,105,.9);
  margin-bottom: 6px;
}
.pp-input{
  width: 100%;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(148,163,184,.85);
  background: rgba(248,250,252,.82);
  color: rgba(15,23,42,.92);
}
.pp-input--area{ resize: vertical; min-height: 110px; }

.pp-formactions{
  display:flex;
  justify-content: flex-end;
}

@media (max-width: 980px){
  .pp-grid{ grid-template-columns: 1fr; }
  .pp-hero{ flex-direction: column; align-items: flex-start; }
  .pp-hero__right{ align-items: flex-start; min-width: 0; width: 100%; }
  .pp-actions{ justify-content: flex-start; }
}

@media (max-width: 520px){
  .pp-card{ padding: 18px 16px 18px; }
  .pp-avatar{ width: 82px; height: 82px; border-radius: 22px; }
  .pp-name{ font-size: 28px; }
}
/* Goals & milestones visuals */

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.goal-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.goal-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.goal-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: #4b5563;
}

.goal-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #e0f2fe;
  color: #0369a1;
  margin-left: 6px;
}

.goal-progress {
  margin-top: 8px;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #22d3ee);
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
  color: #4b5563;
}

.goal-stars .star {
  font-size: 13px;
  color: #d4d4d8;
}

.goal-stars .star.filled {
  color: #facc15;
}

.goal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.goal-column h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.milestone-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.milestone-list li {
  padding: 8px 8px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}

.milestone-completed {
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.milestone-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.milestone-toggle {
  border-radius: 999px;
  width: 24px;
  height: 24px;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 12px;
}

.milestone-completed .milestone-toggle {
  background: #22c55e;
  color: #f9fafb;
  border-color: #16a34a;
}

.milestone-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.milestone-desc {
  margin: 2px 0 0;
  font-size: 12px;
  color: #4b5563;
}

.milestone-meta {
  margin: 2px 0 0;
  font-size: 11px;
  color: #6b7280;
}

.milestone-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.note-list li {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: #f9fafb;
}

.note-body {
  margin: 0;
  font-size: 13px;
  color: #111827;
}

.note-meta {
  margin: 4px 0 0;
  font-size: 11px;
  color: #6b7280;
}

.form-row {
  margin-bottom: 8px;
}

.form-row label {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
  color: #4b5563;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
/* Provider Library (Documents & Files) - graphical file browser */


.lib-shell{
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px;
}

.lib-header{ margin-bottom: 14px; }
.lib-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.lib-header__actions{ display:flex; gap:10px; flex-wrap:wrap; }

.lib-toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  margin: 0 0 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(148,163,184,0.45);
  box-shadow: 0 18px 50px rgba(15,23,42,0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lib-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.72);
  color: #0f172a;
  text-decoration:none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.lib-btn i{ opacity:.9; }
.lib-btn:hover{ transform: translateY(-1px); filter: brightness(1.02); }

.lib-btn--primary{
  border-color: rgba(2,132,199,0.35);
  background: radial-gradient(circle at 30% 0%, rgba(255,255,255,0.98), rgba(14,165,233,0.22));
}

.lib-btn__text{ font-weight:800; }

.lib-spacer{ flex:1; }

.lib-view{ display:flex; align-items:center; gap:10px; }
.lib-view__select{
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.72);
  padding: 0 12px;
  font-weight: 800;
  color: #0f172a;
}

.lib-grid{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
}

.lib-sidebar .dash-card{ height: 100%; }
.lib-sidehead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.lib-sidehead__home{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.72);
  text-decoration:none;
  color:#0f172a;
}

.lib-tree{
  margin-top: 10px;
  max-height: 520px;
  overflow:auto;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.45);
  background: rgba(255,255,255,0.50);
  padding: 10px 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lib-tree__roots,
.lib-tree__children{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.lib-tree__children{ margin: 6px 0 0 18px; }

.lib-tree__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
}
.lib-tree__node.is-active > .lib-tree__row{
  background: rgba(2,132,199,0.10);
  border: 1px solid rgba(2,132,199,0.18);
}
.lib-tree__left{
  display:flex;
  align-items:center;
  gap: 8px;
  min-width: 0;
}
.lib-tree__caret{
  width: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity: .55;
}
.lib-tree__caret--blank{ opacity:0; }
.lib-tree__icon{ opacity: .9; }
.lib-tree__link{
  color:#0f172a;
  text-decoration:none;
  font-weight: 800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 200px;
}
.lib-tree__link.is-active{ color:#075985; }
.lib-tree__badge{
  font-size: 10px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2,132,199,.12);
  border: 1px solid rgba(2,132,199,.24);
  color: #075985;
}

.lib-main .dash-card{ min-height: 560px; }

.lib-breadcrumb{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.lib-crumb{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.68);
  color: #0f172a;
  text-decoration:none;
  font-weight: 900;
}
.lib-crumb--current{ cursor: default; }
.lib-crumb__sep{ opacity:.55; font-weight:900; }

.lib-items{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1100px){
  .lib-grid{ grid-template-columns: 1fr; }
  .lib-items{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 720px){
  .lib-items{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.lib-item{
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.50);
  background: rgba(255,255,255,0.62);
  box-shadow: 0 18px 45px rgba(15,23,42,0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  min-height: 128px;
}
.lib-item__open{
  display:block;
  /* extra right padding so the share badge/text don't sit under the kebab button */
  padding: 14px 60px 48px 14px;
  text-decoration:none;
  color:#0f172a;
}
.lib-item__icon{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(2,132,199,0.20);
  background: radial-gradient(circle at 30% 0%, rgba(255,255,255,.95), rgba(14,165,233,0.18));
  box-shadow: 0 12px 28px rgba(15,23,42,0.12);
  margin-bottom: 10px;
}
.lib-item__icon i{ font-size: 22px; opacity:.9; }

/* A little more color on file icons (kept subtle to preserve the glass feel) */
.lib-item__icon.lib-icon--pdf i{ color: #dc2626; }
.lib-item__icon.lib-icon--word i{ color: #2563eb; }
.lib-item__icon.lib-icon--excel i{ color: #16a34a; }
.lib-item__icon.lib-icon--ppt i{ color: #ea580c; }
.lib-item__icon.lib-icon--image i{ color: #7c3aed; }
.lib-item__icon.lib-icon--text i{ color: #0f172a; }
.lib-item__icon.lib-icon--zip i{ color: #b45309; }
.lib-item__icon.lib-icon--generic i{ color: #0f172a; }
.lib-item__icon.lib-icon--folder i{ color: #d97706; }

.lib-item__name{
  font-weight: 950;
  font-size: 15px;
  line-height: 1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Main text area (used for list + grid) */
.lib-item__main{
  min-width: 0;
  flex: 1;
}

/* Name row: name on left, share badge on right */
.lib-item__row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.lib-item__row .lib-item__name{ min-width: 0; }

/* Meta description (shown inline with size/date in list rows) */
.lib-meta-desc{
  flex: 1;
  min-width: 0;
  color: rgba(15,23,42,0.78);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lib-meta-size, .lib-meta-date{
  white-space: nowrap;
}
.lib-item__meta{
  margin-top: 8px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap: 8px;
  color: rgba(15,23,42,0.72);
  font-size: 12px;
  font-weight: 800;
}
.lib-badge{
  display:inline-flex;
  align-items:center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(2,132,199,.10);
  border: 1px solid rgba(2,132,199,.20);
  color:#075985;
  font-weight: 650;
  font-size: 11px;
}
.lib-meta-dot{ opacity:.55; }
/* (legacy) .lib-meta-file removed — we no longer repeat file name in meta */

.lib-item__actions{
  position:absolute;
  top: 10px;
  right: 10px;
  display:flex;
  justify-content:flex-end;
  gap: 8px;
  padding: 0;
  background: none;
  z-index: 5;
}
.lib-iconbtn{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.72);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#0f172a;
  cursor:pointer;
  text-decoration:none;
}
.lib-iconbtn:hover{ filter: brightness(1.02); transform: translateY(-1px); }

.lib-item--up .lib-item__icon{
  border-color: rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.75);
}
.lib-item--up .lib-item__name{ font-weight: 950; }

.lib-empty{
  grid-column: 1 / -1;
  border-radius: 18px;
  border: 1px dashed rgba(148,163,184,0.70);
  background: rgba(255,255,255,0.40);
  padding: 28px 18px;
  text-align:center;
}
.lib-empty__icon{
  width: 66px;
  height: 66px;
  border-radius: 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.70);
  margin: 0 auto 10px;
}
.lib-empty__icon i{ font-size: 24px; opacity:.85; }
.lib-empty__title{ font-weight: 950; font-size: 18px; margin-bottom: 6px; }

/* Modal */
.lib-modal{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 6000;
}
.lib-modal.is-open{ display:block; }
.lib-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(2,6,23,0.58);
}
.lib-modal__panel{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 24px));
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow: 0 30px 90px rgba(0,0,0,0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow:hidden;
}
.lib-modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148,163,184,0.45);
  background: rgba(255,255,255,0.55);
}
.lib-modal__title{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 950;
  color:#0f172a;
}
.lib-modal__close{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.72);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.lib-modal__body{ padding: 14px 16px 16px; }
.lib-modal__foot{
  margin-top: 14px;
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(148,163,184,0.35);
}


/* List view */
.lib-items.is-list{
  grid-template-columns: 1fr;
}

/* Keep list rows compact */
.lib-items.is-list .lib-item{
  min-height: 0;
}

.lib-items.is-list .lib-item__open{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px 56px 10px 12px;
}

/* Allow flex children to shrink so long names don't force overflow */
.lib-items.is-list .lib-item__main{
  min-width: 0;
}

/* Wrap names in list view (2-ish lines) */
.lib-items.is-list .lib-item__name{
  font-size: 11px;
  line-height: 1.18;
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Slightly smaller meta */
.lib-items.is-list .lib-item__meta{
  margin-top: 3px;
  font-size: 12px;
}

/* Keep the kebab pinned right */
.lib-items.is-list .lib-item__actions{
  background: none;
  padding: 0;
  right: 10px;
  left: auto;
  bottom: 50%;
  transform: translateY(50%);
}

.lib-items.is-list .lib-item__icon{ margin-bottom: 0; flex:0 0 54px; }


/* Kebab menu inside tiles */
.lib-menu{ position: relative; }
.lib-menu > summary{
  list-style: none;
  cursor: pointer;
}
.lib-menu > summary::-webkit-details-marker{ display:none; }

.lib-menu__btn{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.80);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 22px rgba(15,23,42,0.10);
}
.lib-menu__btn i{ font-size: 16px; opacity:.85; }

.lib-menu[open] .lib-menu__btn{ filter: brightness(1.02); }

.lib-menu__panel{
  position: absolute;
  right: 0;
  top: 44px;
  min-width: 190px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 42px rgba(15,23,42,0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.lib-menu__item{
  width: 100%;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.30);
  background: rgba(255,255,255,0.70);
  color: #0f172a;
  text-decoration:none;
  font-weight: 700;
  cursor: pointer;
}
.lib-menu__item i{ width: 18px; text-align:center; opacity:.9; }
.lib-menu__item:hover{ filter: brightness(1.02); transform: translateY(-1px); }
.lib-menu__item--danger{
  border-color: rgba(239,68,68,0.25);
}
.lib-menu__item--danger i{ color: #ef4444; }


/* Folder icon: use Font Awesome (matches the left tree) */
.lib-item--folder .lib-item__icon{
  width: 56px;
  height: 64px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 10px;
  border: 1px solid rgba(59,130,246,0.30);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(226,243,255,0.88));
  box-shadow:
    0 18px 34px rgba(15,23,42,0.10),
    0 0 0 1px rgba(255,255,255,0.55) inset;
}
.lib-item--folder .lib-item__icon::before{ content: none; }
.lib-item--folder .lib-item__icon i{ display:block; font-size: 30px; opacity: .92; }
.lib-item--folder .lib-item__name{ font-weight: 900; }

/* File-like tiles (paper w/ folded corner) */
.lib-item--file .lib-item__icon{
  width: 56px;
  height: 64px;
  border-radius: 14px;
  position: relative;
  margin-bottom: 10px;
  border: 1px solid rgba(148,163,184,0.45);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(226,243,255,0.88));
  box-shadow:
    0 18px 34px rgba(15,23,42,0.10),
    0 0 0 1px rgba(255,255,255,0.55) inset;
}
.lib-item--file .lib-item__icon::before{
  content:"";
  position:absolute;
  right: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-top-right-radius: 14px;
  border-bottom-left-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(203,213,225,0.55));
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  box-shadow: -3px 4px 10px rgba(15,23,42,0.10);
}
.lib-item--file .lib-item__icon i{ font-size: 29px; opacity: .85; }

/* Subtle type accents for file cards */
.lib-item--file .lib-icon--pdf{ border-color: rgba(239,68,68,0.30); }
.lib-item--file .lib-icon--word{ border-color: rgba(37,99,235,0.30); }
.lib-item--file .lib-icon--excel{ border-color: rgba(34,197,94,0.30); }
.lib-item--file .lib-icon--ppt{ border-color: rgba(249,115,22,0.30); }
.lib-item--file .lib-icon--image{ border-color: rgba(168,85,247,0.30); }
.lib-item--file .lib-icon--text{ border-color: rgba(100,116,139,0.35); }
.lib-item--file .lib-icon--zip{ border-color: rgba(245,158,11,0.30); }

/* Date uploaded in list view */
.lib-meta-date{ display:none; }
.lib-items.is-list .lib-meta-date{ display:inline-flex; }
.lib-meta-dot{ opacity:.55; padding: 0 6px; }

.lib-items.is-list .lib-item--folder .lib-item__icon{ width: 52px; height: 60px; margin-bottom: 0; }
.lib-items.is-list .lib-item--file .lib-item__icon{ width: 52px; height: 60px; margin-bottom: 0; }



/* --- Fix menu stacking + wrapping in dashboard embeds --- */
.lib-item{ overflow: visible; }
.lib-item__open{ overflow: hidden; border-radius: 18px; }

/* Ensure the active item/menu stacks above neighboring cards/panels */
.lib-item:focus-within{ z-index: 50; }
.lib-menu{ position: relative; z-index: 60; }
.lib-menu[open]{ z-index: 9999; }
.lib-menu__panel{ z-index: 10000; }

/* In some layouts, glass panels create stacking contexts; raise the whole library surface */
.lib-shell, .lib-grid, .lib-list{ position: relative; z-index: 10; }
/* === Tiny Garden: Feeding + Growth + Wither states === */


.tiny-garden-card .tg-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }

.tiny-garden-card .tg-feed-btn[disabled] { opacity:.6; cursor:not-allowed; }

/* Plant base – make plants ~2x larger via font-size */
.tiny-garden-card .tg-plant{
  position: relative;
  font-size: 56px; /* was 28px */
  line-height: 1;
  transition: transform 300ms ease, filter 400ms ease, opacity 400ms ease;
  will-change: transform, filter, opacity;
}

/* Growth stages */
.tiny-garden-card .tg-plant.tg-grow-1 { transform: scale(0.85); }
.tiny-garden-card .tg-plant.tg-grow-2 { transform: scale(1.0); }
.tiny-garden-card .tg-plant.tg-grow-3 { transform: scale(1.12); }
.tiny-garden-card .tg-plant.tg-grow-4 { transform: scale(1.22); }

/* Wither buckets */
.tiny-garden-card .tg-plant.tg-health-healthy { filter:none; opacity:1; }
.tiny-garden-card .tg-plant.tg-health-droopy {
  filter: saturate(0.7) brightness(0.9);
  transform: translateY(2px) scale(0.98);
  opacity:.92;
}
.tiny-garden-card .tg-plant.tg-health-withered {
  filter: grayscale(0.5) brightness(0.9);
  transform: translateY(4px) scale(0.95) rotate(-2deg);
  opacity:.85;
}
.tiny-garden-card .tg-plant.tg-health-dormant {
  filter: grayscale(0.85) brightness(0.8);
  transform: translateY(6px) scale(0.9) rotate(-4deg);
  opacity:.75;
}

/* Feed FX – more obvious, lasts longer */
.tiny-garden-card .tg-food{
  position:absolute;
  font-size: 22px; /* bigger food icons */
  pointer-events:none;
  animation: tg-food-fly 2300ms ease-out forwards; /* was 900ms */
}
@keyframes tg-food-fly{
  0%{
    transform: translate(0,0) scale(0.85);
    opacity:0;
  }
  15%{
    opacity:1;
  }
  70%{
    transform: translate(var(--tx, -80px), var(--ty, -100px)) scale(1.15);
    opacity:1;
  }
  100%{
    transform: translate(var(--tx, -80px), var(--ty, -80px)) scale(1.05);
    opacity:0;
  }
}

/* Bloom aura on feed */
.tiny-garden-card .tg-bloom{
  position:absolute;
  inset:-6px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59,130,246,0.25), rgba(59,130,246,0));
  animation: tg-bloom 1000ms ease forwards;
  pointer-events:none;
}
@keyframes tg-bloom{
  0%{ transform: scale(0.6); opacity:0;}
  25%{ opacity:1; }
  100%{ transform: scale(1.6); opacity:0;}
}

/* Happy wiggle on feed */
.tiny-garden-card.tg-fed .tg-plant[data-tg-latest="1"]{
  animation: tg-wiggle 700ms ease;
}
@keyframes tg-wiggle{
  0%{ transform: translateY(0) rotate(0deg); }
  25%{ transform: translateY(-2px) rotate(2deg); }
  50%{ transform: translateY(0) rotate(-2deg); }
  75%{ transform: translateY(-1px) rotate(1deg); }
  100%{ transform: translateY(0) rotate(0deg); }
}

/* Central tree visual inside Tiny Garden */
.tiny-garden-card .tg-garden{
  position: relative;
}

.tiny-garden-card .tg-tree{
  position: absolute;
  inset: auto 0 32px 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.tiny-garden-card .tg-tree-image{
  max-width: 200px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 8px 16px rgba(15,23,42,0.35));
}

/* --- New: Garden health heart (pink / red palette) --- */
.tiny-garden-card .tg-health-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  background:rgba(244,63,94,0.10); /* soft rose */
  color:#be123c;
}

.tiny-garden-card .tg-health-pill i{
  font-size:11px;
}

/* High / mid / low all stay in the pink family, just different intensity */
.tiny-garden-card .tg-health-pill.tg-health-high{
  background:rgba(244,63,94,0.14);
  color:#be123c;
}

.tiny-garden-card .tg-health-pill.tg-health-mid{
  background:rgba(244,63,94,0.20);
  color:#9f1239;
}

.tiny-garden-card .tg-health-pill.tg-health-low{
  background:rgba(248,113,113,0.30);
  color:#b91c1c;
}

.tiny-garden-card .tg-health-pill.tg-health-none{
  opacity:0.8;
}

/* --- New: Feed modal layout & styling --- */

.tiny-garden-card .tg-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(59, 130, 246, 0.12);
  backdrop-filter: blur(6px);
  z-index: 900;
}

.tiny-garden-card .tg-feed-modal{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 910;
  padding: 16px;
}

.tiny-garden-card .tg-feed-modal-inner{
  max-width: 760px;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(30, 64, 175, 0.20);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 20px 24px 18px;
}

.tiny-garden-card .tg-feed-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.tiny-garden-card .tg-feed-title{
  font-weight:600;
  font-size:16px;
  margin-bottom:4px;
}

.tiny-garden-card .tg-feed-modal-body{
  display:grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1.6fr);
  gap:16px;
}

@media (max-width: 768px){
  .tiny-garden-card .tg-feed-modal{
    align-items:flex-end;
  }
  .tiny-garden-card .tg-feed-modal-inner{
    border-radius:16px 16px 0 0;
  }
  .tiny-garden-card .tg-feed-modal-body{
    grid-template-columns: minmax(0,1fr);
  }
}

.tiny-garden-card .tg-feed-column{
  min-width:0;
}

.tiny-garden-card .tg-section-title{
  font-weight:600;
  font-size:13px;
  margin-bottom:4px;
}

.tiny-garden-card .tg-goals{
  max-height:220px;
  overflow:auto;
  margin-top:4px;
  border-radius:10px;
  background:rgba(15,23,42,0.02);
  padding:6px 6px 4px;
}

.tiny-garden-card .tg-goals-empty{
  font-size:12px;
  padding:6px 4px;
}

.tiny-garden-card .tg-goal{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:6px 8px;
  border-radius:8px;
  font-size:12px;
}

.tiny-garden-card .tg-goal + .tg-goal{
  margin-top:2px;
}

.tiny-garden-card .tg-goal-main{
  min-width:0;
}

.tiny-garden-card .tg-goal-title{
  font-weight:500;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.tiny-garden-card .tg-goal-meta{
  font-size:11px;
  opacity:0.75;
}

.tiny-garden-card .tg-goal-actions{
  flex-shrink:0;
}

.tiny-garden-card .tg-new-goal{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.tiny-garden-card .tg-new-goal-row{
  display:flex;
  gap:6px;
}

.tiny-garden-card .tg-new-goal-row input[type="text"]{
  flex:1;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.8);
  padding:6px 10px;
  font-size:12px;
}

.tiny-garden-card .tg-feed-rules{
  margin:4px 0 0;
  padding-left:1.1rem;
  font-size:12px;
}

.tiny-garden-card .tg-feed-rules li + li{
  margin-top:2px;
}

/* --- Tiny Garden: cow styles ------------------------------------------- */
.tiny-garden-card .tg-cow {
  position: absolute;
  left: 16%;
  bottom: 54px; /* sits on the “soil” ridge like the tree */
  z-index: 3;   /* below sparkles, above plants/soil */
  pointer-events: none;
}

.tiny-garden-card .tg-cow-image {
  display: block;
  width: 90px;           /* similar visual weight as the tree base */
  height: auto;
  image-rendering: auto;
  transform-origin: 50% 100%;
  animation: tg-cow-bob 4.8s ease-in-out infinite;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
}

@keyframes tg-cow-bob {
  0%   { transform: translateY(0)    rotate(0deg); }
  50%  { transform: translateY(-2px) rotate(0.2deg); }
  100% { transform: translateY(0)    rotate(0deg); }
}

/* Responsive tweak so it doesn’t overlap controls on narrow cards */
@media (max-width: 640px) {
  .tiny-garden-card .tg-cow { left: 10%; bottom: 48px; }
  .tiny-garden-card .tg-cow-image { width: 76px; }
}

/* NEW: Chicken (placed on the opposite side) */
.tiny-garden-card .tg-chicken {
  position: absolute;
  right: 14%;
  bottom: 56px;
  z-index: 3;
  pointer-events: none;
  -webkit-transform: scale(-1, 1);
    -moz-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    transform: scale(-1, 1);
}
.tiny-garden-card .tg-chicken-image {
  display: block;
  width: 72px;
  height: auto;
  transform-origin: 50% 100%;
  animation: tg-chicken-peck 5.5s ease-in-out infinite;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));

}

@keyframes tg-chicken-peck {
  0%   { transform: translateY(0) rotate(0deg); }
  22%  { transform: translateY(-3px) rotate(-2deg); }
  28%  { transform: translateY(0) rotate(0deg); }
  55%  { transform: translateY(-2px) rotate(1.5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .tiny-garden-card .tg-cow { left: 10%; bottom: 48px; }
  .tiny-garden-card .tg-cow-image { width: 76px; }

  .tiny-garden-card .tg-chicken { right: 8%; bottom: 48px; }
  .tiny-garden-card .tg-chicken-image { width: 62px; }
}




/* -------------------------------------------------------------------------
   Tiny Garden base layout (restored from legacy dashboard.css)
   ------------------------------------------------------------------------- */
}

/* ---------------- Tiny Garden (Vibe check-in game) ---------------- */

.tiny-garden-card { position: relative; overflow: hidden; }
.tg-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.tg-streak-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  background: rgba(58, 120, 206, .10);
  color:#1f3b6a; font-weight:700; font-size:12px;
}
.tg-garden{
  position:relative; margin-top:14px;
  background: linear-gradient(180deg, #e9f2ff 0%, #f7fbff 100%);
  border:1px solid #e3ecfb; border-radius:16px;
  height:210px; overflow:hidden;
}
.tg-sky{ position:absolute; inset:0 0 auto 0; height:52%; }
.tg-soil{
  position:absolute; inset:auto 0 0 0; height:52%;
  background: linear-gradient(180deg, #c89a6a 0%, #ad7d4f 100%);
  border-top:1px solid rgba(0,0,0,.05);
}
.tg-plants{
  position:absolute; inset:0; display:flex; align-items:flex-end; gap:12px;
  padding:18px 18px 14px; flex-wrap:wrap;
}
.tg-empty{ font-weight:600; color:#355a8a; opacity:.9; }
.tg-hint{
  position:absolute; right:12px; top:10px;
  font-size:12px; font-weight:800; color:#20426c;
  background: rgba(255,255,255,.9); padding:6px 8px; border-radius:10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}
.tg-plant{
  width:48px; height:48px; display:grid; place-items:center;
  font-size:32px; transform-origin:center bottom;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.12));
  transition: transform .35s ease, opacity .35s ease;
}
/* Growth stages (recent => sprout, older => fuller) */
.tg-stage-1{
  opacity:.75;
  transform: translateY(10px) scale(.7);
  animation: tg-sprout .9s ease-out both;
}
.tg-stage-2{
  opacity:.95;
  transform: translateY(3px) scale(.9);
  animation: tg-grow .9s ease-out both;
}
.tg-stage-3{
  opacity:1;
  transform: translateY(0) scale(1);
}
/* Just planted: pop + wiggle */
.tg-just-planted{
  animation: tg-pop .95s cubic-bezier(.2,.9,.2,1) both;
}
/* Garden pulse when planting */
.tg-pulse .tg-garden::after{
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 50% 75%, rgba(255,255,255,.95), transparent 55%);
  animation: tg-glow .95s ease-out;
  pointer-events:none;
}
/* Water animation: fallback shimmer */
.tg-water .tg-garden::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.95), transparent 40%),
    radial-gradient(circle at 60% 8%, rgba(255,255,255,.95), transparent 35%),
    radial-gradient(circle at 80% 22%, rgba(255,255,255,.95), transparent 45%);
  animation: tg-rain .95s ease-out;
  pointer-events:none;
}
.tg-water .tg-soil::after{
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 50% 10%, rgba(255,255,255,.5), transparent 55%);
  animation: tg-ripple .95s ease-out;
  pointer-events:none;
}
/* Cloud + sun */
.tg-cloud{
  position:absolute; top:18px; width:64px; height:26px; border-radius:999px;
  background: rgba(255,255,255,.9);
  box-shadow: 12px 0 0 rgba(255,255,255,.9), 24px 6px 0 rgba(255,255,255,.9);
  opacity:.9;
  animation: tg-cloud-drift 22s linear infinite;
}
.tg-cloud--1{ left:-80px; animation-duration: 26s; top:20px; }
.tg-cloud--2{ left:-110px; animation-duration: 34s; top:44px; opacity:.75; transform: scale(.9); }
}

.tg-sun{
  position:absolute; right:22px; top:18px; width:28px; height:28px; border-radius:50%;
  background: rgba(255,236,164,.95);
  box-shadow: 0 0 0 6px rgba(255,236,164,.25), 0 0 0 12px rgba(255,236,164,.12);
  animation: tg-sun-pulse 5.5s ease-in-out infinite;
}
}

/* FX layer for JS particles */
.tg-fx{ position:absolute; inset:0; pointer-events:none; overflow:hidden; }
/* Sparkles */
.tg-spark{
  position:absolute; width:6px; height:6px; border-radius:2px;
  background: rgba(255,255,255,1);
  box-shadow: 0 0 12px rgba(255,255,255,.9);
  animation: tg-sparkle 1.1s ease-out forwards;
}
}

/* Raindrops */
.tg-raindrop{
  position:absolute; width:3px; height:12px; border-radius:10px;
  background: rgba(120,175,255,.9);
  animation: tg-drop 0.9s ease-in forwards;
}
}

/* Choices */
.tg-choices-wrap{ margin-top:14px; }
.tg-prompt{ font-weight:700; margin-bottom:8px; color:#20426c; }
.tg-choices{ display:flex; flex-wrap:wrap; gap:10px; }
.tg-choice{
  display:flex; align-items:center; gap:10px; text-align:left;
  padding:10px 12px; border-radius:12px; border:1px solid #e5ecf7;
  background:#fff; box-shadow: 0 6px 14px rgba(0,0,0,.04);
  cursor:pointer; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.tg-choice:hover{ transform: translateY(-1px); border-color:#cfe0f8; box-shadow: 0 8px 18px rgba(0,0,0,.06); }
.tg-choice.is-selected{ border-color:#3a78ce; box-shadow: 0 0 0 2px rgba(58,120,206,.18); }
.tg-emoji{ font-size:26px; }
.tg-label small{ color:#6d7e97; font-weight:600; }
.tg-actions{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
/* History */
.tg-history{ margin-top:12px; border-top:1px dashed #e3ecfb; padding-top:10px; }
.tg-history-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.tg-history-title{ font-weight:800; color:#1f3b6a; }
.tg-history-row{ display:flex; flex-direction:column; gap:8px; max-height:220px; overflow:auto; padding-right:2px;}
.tg-history-item{ display:flex; align-items:center; gap:10px; background:#fff; border:1px solid #e7eef9; padding:8px 10px; border-radius:10px; }
.tg-history-emoji{ font-size:22px; }
.tg-history-plant{ font-weight:800; }
.tg-history-date{ font-size:12px; color:#6d7e97; font-weight:700; }
/* Gentle idle sway for mature plants */
.tg-stage-3{ animation: tg-sway 6s ease-in-out infinite; }

/* ==========================================================================
   9) Tiny Garden (Vibe check-in game)
   ========================================================================== */

.tiny-garden-card{
  position:relative;
  overflow:hidden;
}.tg-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}.tg-streak-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(58, 120, 206, .10);
  color:#1f3b6a;
  font-weight:700;
  font-size:12px;
}.tg-garden{
  position:relative;
  margin-top:14px;
  background:linear-gradient(180deg, #e9f2ff 0%, #f7fbff 100%);
  border:1px solid #e3ecfb;
  border-radius:16px;
  height:210px;
  overflow:hidden;
}.tg-sky{
  position:absolute;
  inset:0 0 auto 0;
  height:52%;
}.tg-soil{
  position:absolute;
  inset:auto 0 0 0;
  height:52%;
  background:linear-gradient(180deg, #c89a6a 0%, #ad7d4f 100%);
  border-top:1px solid rgba(0,0,0,.05);
}.tg-plants{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  gap:12px;
  padding:18px 18px 14px;
  flex-wrap:wrap;
}.tg-empty{
  font-weight:600;
  color:#355a8a;
  opacity:.9;
}.tg-hint{
  position:absolute;
  right:12px;
  top:10px;
  font-size:12px;
  font-weight:800;
  color:#20426c;
  background:rgba(255,255,255,.9);
  padding:6px 8px;
  border-radius:10px;
  box-shadow:0 4px 10px rgba(0,0,0,.06);
}.tg-plant{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  font-size:32px;
  transform-origin:center bottom;
  filter:drop-shadow(0 6px 8px rgba(0,0,0,.12));
  transition:transform .35s ease, opacity .35s ease;
}older => fuller) */

.tg-stage-1{
  opacity:.75;
  transform:translateY(10px) scale(.7);
  animation:tg-sprout .9s ease-out both;
}.tg-stage-2{
  opacity:.95;
  transform:translateY(3px) scale(.9);
  animation:tg-grow .9s ease-out both;
}.tg-stage-3{
  opacity:1;
  transform:translateY(0) scale(1);
  animation:tg-sway 6s ease-in-out infinite;
}/* Just planted: pop + wiggle */

.tg-just-planted{
  animation:tg-pop .95s cubic-bezier(.2,.9,.2,1) both;
}/* Garden pulse when planting */

.tg-pulse .tg-garden::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 75%, rgba(255,255,255,.95), transparent 55%);
  animation:tg-glow .95s ease-out;
  pointer-events:none;
}/* Water animation: fallback shimmer */

.tg-water .tg-garden::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 30% 18%, rgba(255,255,255,.95), transparent 40%),
    radial-gradient(circle at 60% 8%, rgba(255,255,255,.95), transparent 35%),
    radial-gradient(circle at 80% 22%, rgba(255,255,255,.95), transparent 45%);
  animation:tg-rain .95s ease-out;
  pointer-events:none;
}.tg-water .tg-soil::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 10%, rgba(255,255,255,.5), transparent 55%);
  animation:tg-ripple .95s ease-out;
  pointer-events:none;
}/* Cloud + sun */

.tg-cloud{
  position:absolute;
  top:18px;
  width:64px;
  height:26px;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  box-shadow:12px 0 0 rgba(255,255,255,.9), 24px 6px 0 rgba(255,255,255,.9);
  opacity:.9;
  animation:tg-cloud-drift 22s linear infinite;
}.tg-cloud--1{
  left:-80px;
  animation-duration:26s;
  top:20px;
}.tg-cloud--2{
  left:-110px;
  animation-duration:34s;
  top:44px;
  opacity:.75;
  transform:scale(.9);
}@keyframes tg-cloud-drift{
  0%{
    transform:translateX(0);
  }

  100%{
    transform:translateX(420px);
  }
}.tg-sun{
  position:absolute;
  right:22px;
  top:18px;
  width:28px;
  height:28px;
  border-radius:50%;
  background:rgba(255,236,164,.95);
  box-shadow:0 0 0 6px rgba(255,236,164,.25), 0 0 0 12px rgba(255,236,164,.12);
  animation:tg-sun-pulse 5.5s ease-in-out infinite;
}@keyframes tg-sun-pulse{
  0%,100%{
    transform:scale(1);
    opacity:.95;
  }

  50%{
    transform:scale(1.08);
    opacity:1;
  }
}/* FX layer for JS particles */

.tg-fx{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
}/* Sparkles */

.tg-spark{
  position:absolute;
  width:6px;
  height:6px;
  border-radius:2px;
  background:rgba(255,255,255,1);
  box-shadow:0 0 12px rgba(255,255,255,.9);
  animation:tg-sparkle 1.1s ease-out forwards;
}@keyframes tg-sparkle{
  0%{
    transform:translateY(6px) scale(.4) rotate(0deg);
    opacity:0;
  }

  30%{
    opacity:1;
  }

  100%{
    transform:translateY(-26px) scale(1.1) rotate(90deg);
    opacity:0;
  }
}/* Raindrops */

.tg-raindrop{
  position:absolute;
  width:3px;
  height:12px;
  border-radius:10px;
  background:rgba(120,175,255,.9);
  animation:tg-drop 0.9s ease-in forwards;
}@keyframes tg-drop{
  0%{
    transform:translateY(0);
    opacity:0;
  }

  20%{
    opacity:1;
  }

  100%{
    transform:translateY(230px);
    opacity:0;
  }
}@keyframes tg-sprout{
  0%{
    transform:translateY(22px) scale(.45);
    opacity:.05;
  }

  100%{
    transform:translateY(10px) scale(.7);
    opacity:.75;
  }
}@keyframes tg-grow{
  0%{
    transform:translateY(12px) scale(.65);
    opacity:.25;
  }

  100%{
    transform:translateY(3px) scale(.9);
    opacity:.95;
  }
}@keyframes tg-pop{
  0%{
    transform:translateY(22px) scale(.25);
    opacity:0;
  }

  55%{
    transform:translateY(-4px) scale(1.18);
    opacity:1;
  }

  100%{
    transform:translateY(0) scale(1);
  }
}@keyframes tg-glow{
  0%{
    opacity:0;
    transform:scale(.88);
  }

  55%{
    opacity:1;
    transform:scale(1.02);
  }

  100%{
    opacity:0;
    transform:scale(1.06);
  }
}@keyframes tg-rain{
  0%{
    opacity:0;
    transform:translateY(-12px);
  }

  45%{
    opacity:1;
  }

  100%{
    opacity:0;
    transform:translateY(16px);
  }
}@keyframes tg-ripple{
  0%{
    opacity:0;
    transform:scale(.6);
  }

  60%{
    opacity:.9;
    transform:scale(1);
  }

  100%{
    opacity:0;
    transform:scale(1.12);
  }
}/* Choices */

.tg-choices-wrap{
  margin-top:14px;
}.tg-prompt{
  font-weight:700;
  margin-bottom:8px;
  color:#20426c;
}.tg-choices{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}.tg-choice{
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #e5ecf7;
  background:#fff;
  box-shadow:0 6px 14px rgba(0,0,0,.04);
  cursor:pointer;
  transition:transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}.tg-choice:hover{
  transform:translateY(-1px);
  border-color:#cfe0f8;
  box-shadow:0 8px 18px rgba(0,0,0,.06);
}.tg-choice.is-selected{
  border-color:#3a78ce;
  box-shadow:0 0 0 2px rgba(58,120,206,.18);
}.tg-emoji{
  font-size:26px;
}.tg-label small{
  color:#6d7e97;
  font-weight:600;
}.tg-actions{
  display:flex;
  gap:8px;
  margin-top:10px;
  flex-wrap:wrap;
}/* History */

.tg-history{
  margin-top:12px;
  border-top:1px dashed #e3ecfb;
  padding-top:10px;
}.tg-history-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:6px;
}.tg-history-title{
  font-weight:800;
  color:#1f3b6a;
}.tg-history-row{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:220px;
  overflow:auto;
  padding-right:2px;
}.tg-history-item{
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid #e7eef9;
  padding:8px 10px;
  border-radius:10px;
}.tg-history-emoji{
  font-size:22px;
}.tg-history-plant{
  font-weight:800;
}.tg-history-date{
  font-size:12px;
  color:#6d7e97;
  font-weight:700;
}
