/* ==========================================================================
   Messaggeri di Luce — Design System
   Token derivati dal kit Elementor di animaolistica.it (post-74341.css)
   e dal logo ufficiale "Messaggeri Di Luce" (uploads/2026/03).
   ========================================================================== */

:root {
  /* Brand */
  --plum:          #36054B;
  --plum-soft:     #4A1561;
  --magenta:       #9B0071;
  --magenta-bright:#CB0094;
  --pink:          #EB82CC;
  --lilac:         #CF96E0;
  --blush:         #F5CFE7;
  --gold:          #FFDE5C;

  /* Neutrals */
  --ink:           #232323;
  --body:          #54595F;
  --muted:         #828282;
  --muted-violet:  #776777;
  --cloud:         #F7F7F7;
  --line:          #EBE4EC;
  --line-soft:     #F2ECF3;
  --white:         #FFFFFF;

  /* Semantic */
  --urgent:        #A81E32;
  --urgent-bg:     #FBEAEC;
  --urgent-line:   #F0C4CA;
  --ok:            #2E7D6B;

  /* Type */
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Helvetica, sans-serif;

  /* Shape & depth */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-1: 0 2px 8px rgba(54, 5, 75, .05);
  --shadow-2: 0 10px 30px -10px rgba(54, 5, 75, .18);
  --shadow-3: 0 24px 60px -20px rgba(54, 5, 75, .30);

  --shell-max: 940px;
  --tap: 48px;
  --ease: cubic-bezier(.22, .68, .36, 1);
}

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

/* L'attributo hidden deve avere la precedenza sui display dei layout */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1.2;
}

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
a { color: var(--magenta); text-decoration: none; }
a:hover { color: var(--magenta-bright); }

svg { display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================ App shell ============================ */

.app {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
}

.app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(760px 420px at 88% -8%, rgba(255, 222, 92, .30), transparent 62%),
    radial-gradient(680px 480px at -12% 4%, rgba(207, 150, 224, .30), transparent 60%);
}

/* ---------- Sidebar (desktop) ---------- */
.sidebar {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 28px 18px;
  background: var(--white);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100dvh;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 22px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.brand__mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--lilac);
  flex: none;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.15;
  color: var(--plum);
}

.brand__sub {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-violet);
  margin-top: 3px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
  min-height: var(--tap);
  border-radius: var(--r-md);
  color: var(--body);
  font-size: 14.5px;
  font-weight: 500;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.nav-item:hover { background: var(--line-soft); color: var(--plum); }

.nav-item.is-active {
  background: linear-gradient(100deg, rgba(155, 0, 113, .10), rgba(207, 150, 224, .22));
  color: var(--magenta);
  font-weight: 600;
}

.nav-item svg { flex: none; }

.nav-item__badge {
  margin-left: auto;
  min-width: 22px; height: 22px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  background: var(--urgent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.sidebar__foot {
  margin-top: auto;
  padding: 16px 12px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 11px;
}

.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--magenta), var(--plum));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  flex: none;
}

.avatar--lg { width: 56px; height: 56px; font-size: 18px; }

.sidebar__who { min-width: 0; }
.sidebar__who b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.sidebar__who span {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--magenta); font-weight: 600;
}

/* ---------- Main column ---------- */
.main {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar__mark { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.topbar__title { font-family: var(--font-head); font-size: 16px; color: var(--plum); }

.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--body);
  display: grid; place-items: center;
  transition: all .18s var(--ease);
}
.icon-btn:hover { border-color: var(--lilac); color: var(--magenta); background: var(--line-soft); }

.content {
  flex: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 22px 18px 108px;
}

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: var(--r-sm);
  transition: color .18s var(--ease);
  position: relative;
}

.bottom-nav button:hover { color: var(--magenta); }
.bottom-nav button.is-active { color: var(--magenta); }

.bottom-nav .dot {
  position: absolute;
  top: 4px;
  right: calc(50% - 20px);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--urgent);
}

/* ============================ Login ============================ */

.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.login__card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 38px 30px 30px;
  text-align: center;
}

.login__mark {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--lilac), 0 14px 34px -12px rgba(54,5,75,.5);
}

.login h1 {
  font-size: 30px;
  color: var(--plum);
  margin-bottom: 8px;
}

.login__lead {
  color: var(--body);
  font-size: 14px;
  margin: 0 auto 26px;
  max-width: 34ch;
}

.login__providers { display: grid; gap: 10px; }

.oauth-btn {
  width: 100%;
  min-height: 54px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  transition: all .2s var(--ease);
}
.oauth-btn:hover { border-color: var(--magenta); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.facebook-btn { background: #1877f2; border-color: #1877f2; color: var(--white); }
.facebook-btn:hover { background: #166fe5; border-color: #166fe5; }

.login__note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
  background: var(--line-soft);
  border-radius: var(--r-sm);
  padding: 11px 13px;
}
.login__note svg { flex: none; margin-top: 2px; color: var(--magenta); }

/* ============================ Buttons ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--tap);
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: all .18s var(--ease);
  white-space: nowrap;
}

.btn svg { flex: none; }

.btn--primary {
  background: linear-gradient(100deg, var(--magenta), var(--plum));
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(155, 0, 113, .8);
}
.btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.btn--whatsapp:hover { background: #1FBA59; border-color: #1FBA59; color: #fff; transform: translateY(-1px); }

.btn--gold {
  background: linear-gradient(100deg, var(--gold), #FFC53D);
  color: var(--plum);
  box-shadow: 0 8px 20px -10px rgba(255, 197, 61, .9);
}
.btn--gold:hover { filter: brightness(1.04); transform: translateY(-1px); }

.btn--ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--body);
}
.btn--ghost:hover { border-color: var(--lilac); color: var(--magenta); background: var(--line-soft); }

.btn--soft {
  background: var(--line-soft);
  color: var(--plum);
}
.btn--soft:hover { background: var(--blush); }

.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 15px; font-size: 13px; }

/* ========================== Urgent request banner ========================= */

.urgent-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: var(--r-lg);
  padding: 18px 20px;
  background: linear-gradient(115deg, #7A0B4E 0%, var(--plum) 55%, #45135C 100%);
  color: #fff;
  box-shadow: var(--shadow-2);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.urgent-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }

.urgent-cta__ico {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255, 222, 92, .16);
  border: 1px solid rgba(255, 222, 92, .45);
  color: var(--gold);
  display: grid; place-items: center;
  flex: none;
}

.urgent-cta b {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: .02em;
  font-weight: 600;
}

.urgent-cta span {
  display: block;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .78);
  margin-top: 2px;
}

/* ============================ Home ============================ */

.page-head { margin-bottom: 20px; }

.page-head h1 {
  font-size: 27px;
  color: var(--plum);
  margin-bottom: 6px;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-violet);
  font-weight: 600;
  margin: 30px 0 12px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--white);
  text-align: left;
  box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  position: relative;
  overflow: hidden;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--lilac); }

.tile__ico {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  flex: none;
}
.tile .tile__ico { color: #fff; }

.tile__ico--magenta { background: linear-gradient(140deg, var(--magenta-bright), var(--magenta)); }
.tile__ico--plum    { background: linear-gradient(140deg, #6C2B8A, var(--plum)); }
.tile__ico--gold    { background: linear-gradient(140deg, #FFD34D, #F5B800); color: #fff; }
.tile__ico--lilac   { background: linear-gradient(140deg, var(--pink), #C25BB0); }

.tile b {
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--plum);
  font-weight: 600;
}

.tile span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.tile__count {
  position: absolute;
  top: 16px; right: 16px;
  min-width: 26px; height: 26px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--line-soft);
  color: var(--plum);
  font-size: 12px;
  font-weight: 700;
  display: grid; place-items: center;
}
.tile__count.is-urgent { background: var(--urgent); color: #fff; }

/* ============================ Cards & list ============================ */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.support {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px;
  align-items: start;
}

.support__toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 1;
}
.support__toolbar .btn { width: 32px; height: 32px; padding: 0; justify-content: center; }
.support__name { padding-right: 112px; }

.support__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--blush), var(--lilac));
  color: var(--plum);
  display: grid; place-items: center;
  font-size: 15px;
  font-weight: 600;
  flex: none;
}

.support__name {
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.25;
}

.support__meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.support__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--line-soft);
  color: var(--body);
  white-space: nowrap;
}

.tag--active   { background: rgba(46, 125, 107, .12); color: #1F5B4E; }
.tag--soon     { background: rgba(255, 197, 61, .22); color: #8A5B00; }
.tag--expired  { background: var(--line-soft); color: var(--muted); }
.tag--plum     { background: rgba(155, 0, 113, .10); color: var(--magenta); }
.tag--urgent   { background: var(--urgent-bg); color: var(--urgent); }
.tag--gold     { background: rgba(255, 222, 92, .45); color: #7A5A00; }

.progress {
  margin-top: 12px;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--line-soft);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--pink), var(--magenta));
  transition: width .5s var(--ease);
}
.progress.is-soon i { background: linear-gradient(90deg, #FFD34D, #F5A800); }
.progress.is-critical i { background: linear-gradient(90deg, #F2A340, #D94444); }
.progress.is-expired i { background: #aab0b8; }

.support__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.note-text {
  margin-top: 10px;
  font-size: 13px;
  color: var(--body);
  background: var(--line-soft);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-style: italic;
}

.list-stack { display: grid; gap: 12px; }

/* ============================ Filters ============================ */

.filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--body);
  border-radius: var(--r-pill);
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .16s var(--ease);
}
.chip:hover { border-color: var(--lilac); color: var(--magenta); }
.chip.is-active { background: var(--plum); border-color: var(--plum); color: #fff; }

/* ============================ Forms ============================ */

.form-grid { display: grid; gap: 16px; }

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--body);
  margin-bottom: 7px;
}
.field label .opt { color: var(--muted); font-weight: 400; }

.input, .textarea, .select {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(155, 0, 113, .12);
}
.textarea { min-height: 88px; resize: vertical; }

.input::placeholder, .textarea::placeholder { color: #B3AEB6; }

.dur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 8px;
}
.dur-opt {
  min-height: 52px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--body);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: all .16s var(--ease);
}
.dur-opt small { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.dur-opt:hover { border-color: var(--lilac); }
.dur-opt.is-active {
  background: rgba(155, 0, 113, .08);
  border-color: var(--magenta);
  color: var(--magenta);
  box-shadow: inset 0 0 0 1px var(--magenta);
}
.dur-opt.is-active small { color: var(--magenta-bright); }

.form-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.check-row { display: flex; align-items: flex-start; gap: 10px; color: var(--body); font-size: 13px; line-height: 1.5; }
.check-row input { margin: 2px 0 0; accent-color: var(--magenta); }

.dur-custom {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 8px;
  margin-top: 10px;
}

.dup-warning {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: rgba(255, 197, 61, .18);
  border: 1px solid rgba(245, 168, 0, .35);
  color: #7A5200;
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
}
.dup-warning svg { flex: none; margin-top: 1px; }

.author-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  background: var(--line-soft);
  border-radius: var(--r-sm);
  padding: 9px 12px;
}

/* ============================ Modal ============================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal.is-open { display: flex; }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(36, 5, 48, .5);
  backdrop-filter: blur(3px);
  animation: fade .22s var(--ease);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--shadow-3);
  padding: 8px 22px 26px;
  animation: slide-up .28s var(--ease);
}

.modal__grip {
  width: 42px; height: 4px;
  border-radius: var(--r-pill);
  background: var(--line);
  margin: 6px auto 14px;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.modal__head h2 { font-size: 21px; color: var(--plum); }
.modal__head p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }

.modal__foot {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.modal__foot .btn { flex: 1; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }

/* ============================ Meditation ============================ */

.day-block { margin-bottom: 14px; }

.day-block__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 4px 9px;
}
.day-block__head b {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--plum);
}
.day-block__head span { font-size: 12px; color: var(--muted); }

.session {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  padding: 15px;
  align-items: start;
}

.session__time {
  text-align: center;
  padding: 8px 4px;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(155,0,113,.08), rgba(207,150,224,.22));
}
.session__time b {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--magenta);
  line-height: 1.1;
}
.session__time span { font-size: 10px; color: var(--muted-violet); text-transform: uppercase; letter-spacing: .08em; }

.session h4 { font-size: 16px; color: var(--ink); }
.session p { margin: 5px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

.session__actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.reminder-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  transition: all .16s var(--ease);
}
.reminder-chip:hover { border-color: var(--lilac); color: var(--magenta); }
.reminder-chip.is-on { background: rgba(46,125,107,.10); border-color: rgba(46,125,107,.3); color: #1F5B4E; }

/* ============================ Community ============================ */

.community-hero {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-1);
  margin-bottom: 16px;
}
.community-hero img { width: 100%; height: 190px; object-fit: cover; display: block; }
.community-hero__body { padding: 22px 20px; }
.community-hero h2 { font-size: 22px; color: var(--plum); margin-bottom: 10px; }
.community-hero p { font-size: 14px; color: var(--body); margin: 0 0 12px; }
.community-hero p:last-child { margin-bottom: 0; }

.community-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.community-intro-card,
.community-intro-grid .sankalpa {
  aspect-ratio: 1;
  min-width: 0;
  margin: 0;
  padding: 24px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: auto;
}
.community-intro-card { background: #fff; }
.community-intro-card h2 { font-size: 20px; color: var(--plum); margin: 0 0 12px; }
.community-intro-card p { font-size: 16px; line-height: 1.45; color: var(--body); margin: 0 0 10px; }
.community-intro-card p:last-child { margin-bottom: 0; }
.community-hero--photo { margin-bottom: 16px; }
.community-hero--photo img { height: auto; aspect-ratio: 16 / 9; }

.practice-principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px; }
.practice-principle { aspect-ratio: auto; min-height: 0; margin: 0; padding: 22px 24px; overflow: visible; }
.practice-principle h2 { margin: 0 0 12px; color: var(--magenta); font-size: 20px; }
.practice-principle p { margin: 0 0 10px; font-size: 14px; line-height: 1.65; }
.practice-principle p:last-child { margin-bottom: 0; }
.practice-principle ul { margin: 0; padding-left: 19px; color: var(--plum); }
.practice-principle li { margin: 0 0 8px; font-size: 14px; line-height: 1.55; }
.practice-principle li:last-child { margin-bottom: 0; }
.practice-section { margin-bottom: 20px; }
.practice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.practice-card {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.practice-card--video { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: center; gap: 24px; }
.practice-copy { grid-column: 1; grid-row: 1; }
.practice-videos { grid-column: 2; grid-row: 1; }
.practice-card h3 { margin: 0 0 9px; color: var(--plum); font-size: 19px; }
.practice-copy p { margin: 0; color: var(--body); font-size: 13px; line-height: 1.6; }
.practice-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 380px; justify-self: end; }
.practice-videos iframe:only-child { grid-column: 1 / -1; max-width: 380px; justify-self: end; }
.practice-videos iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 9px;
  background: #1c1020;
}

.sankalpa {
  background: linear-gradient(140deg, var(--blush), #FCEAF6);
  color: var(--plum);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-2);
}
.sankalpa h3 {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--magenta);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 12px;
}
.sankalpa p {
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 8px;
  color: var(--plum);
}
.sankalpa cite { display: block; font-size: 12px; color: var(--muted-violet); font-style: normal; margin-top: 14px; }

@media (max-width: 680px) {
  .community-intro-grid { grid-template-columns: 1fr; }
  .community-intro-card,
  .community-intro-grid .sankalpa { aspect-ratio: auto; min-height: 0; overflow: visible; }
  .practice-principles { grid-template-columns: 1fr; }
  .practice-card--video { grid-template-columns: 1fr; gap: 14px; }
  .practice-copy, .practice-videos { grid-column: 1; grid-row: auto; }
  .practice-videos { justify-self: start; max-width: 560px; }
  .practice-videos iframe:only-child { max-width: 480px; justify-self: start; }
}
@media (max-width: 440px) {
  .practice-card { padding: 16px; }
  .practice-videos { grid-template-columns: 1fr; }
  .practice-videos iframe:only-child { grid-column: auto; }
}

.post {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.post:last-child { border-bottom: 0; }
.post__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-violet);
  margin-bottom: 7px;
  font-weight: 600;
}
.post h4 { font-size: 16px; color: var(--plum); margin-bottom: 6px; }
.post p { margin: 0; font-size: 13.5px; color: var(--body); line-height: 1.6; }

/* ============================ Summary ============================ */

.summary-box {
  background: #FCFAFC;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 460px;
  overflow-y: auto;
  font-family: var(--font-body);
}

.summary-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sched-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
}
.sched-card__ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 222, 92, .35);
  color: #8A5B00;
  display: grid; place-items: center;
  flex: none;
}
.sched-card b { display: block; font-size: 14.5px; color: var(--plum); }
.sched-card span { font-size: 12.5px; color: var(--muted); }

/* ============================ Toast ============================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--plum);
  color: #fff;
  padding: 13px 18px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { flex: none; color: var(--gold); }

/* ============================ Empty state ============================ */

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.empty svg { margin: 0 auto 12px; color: var(--lilac); }
.empty b { display: block; font-family: var(--font-head); font-size: 16px; color: var(--plum); margin-bottom: 5px; }
.empty p { margin: 0 0 16px; font-size: 13.5px; }

/* ============================ Members (admin) ============================ */

.member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.member:last-child { border-bottom: 0; }
.member__info { min-width: 0; flex: 1; }
.member__info b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.member__info span { font-size: 12px; color: var(--muted); }

.role-select {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  background: var(--white);
  color: var(--body);
  cursor: pointer;
}
.role-select:focus { outline: none; border-color: var(--magenta); }

/* ============================ Responsive ============================ */

@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .support { padding: 18px 20px; }
  .content { padding: 28px 24px 112px; }
}

@media (min-width: 1024px) {
  .app { grid-template-columns: 268px 1fr; }
  .sidebar { display: flex; }
  .bottom-nav { display: none; }
  .content { padding: 32px 36px 60px; }
  .topbar { padding: 16px 36px; }
  .modal { align-items: center; }
  .modal__panel { border-radius: var(--r-lg); padding: 26px 28px 26px; max-height: 88dvh; }
  .modal__grip { display: none; }
  .modal__head { margin-top: 0; }
  .toast { bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
