:root {
  --purple: #6C5CE7;
  --purple-light: #a29bfe;
  --purple-pale: #EEF0FF;
  --teal: #00B894;
  --teal-pale: #E0FAF4;
  --orange: #E17055;
  --orange-pale: #FFF0EB;
  --pink: #E84393;
  --pink-pale: #FEE8F3;
  --yellow: #FDCB6E;
  --yellow-pale: #FFF8E8;
  --red: #FF5E5E;
  --red-pale: #FFECEC;
  --bg: #F4F6FF;
  --sidebar-bg: #27245C;
  --sidebar-text: #C4C2E8;
  --card: #FFFFFF;
  --text: #1a1a2e;
  --text-muted: #7c7c9a;
  --border: #E8E8F5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(108,92,231,0.08);
  --shadow-md: 0 8px 32px rgba(108,92,231,0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

a.nav-item { text-decoration: none; color: var(--sidebar-text); }

.nav-item-btn {
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 0;
}

body.auth-layout {
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #27245C 0%, #2d2a6e 100%);
}

body {
  font-family: 'Kumbh Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  display: flex;
}

/* ── SIDEBAR ── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,92,231,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.sidebar-logo {
  padding: 28px 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Kumbh Sans', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-sub { font-size: 11px; color: var(--sidebar-text); margin-top: 1px; }

.family-switcher { position: relative; margin-top: 2px; }
.family-switcher-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--sidebar-text);
  font-family: inherit;
  font-size: 11px;
  max-width: 100%;
}
.family-switcher-trigger:hover { color: #fff; }
.family-switcher-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.family-switcher-caret { font-size: 9px; flex-shrink: 0; }
.family-switcher-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  padding: 6px;
  z-index: 100;
}
.family-switcher-menu.open { display: block; }
.family-switcher-form { margin: 0; }
.family-switcher-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  text-align: left;
}
.family-switcher-item:hover { background: var(--purple-pale); }
.family-switcher-item.active { font-weight: 800; color: #6C5CE7; }
.family-switcher-check { width: 12px; flex-shrink: 0; color: #6C5CE7; font-size: 12px; }
.family-switcher-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.family-switcher-add {
  display: block;
  margin-top: 4px;
  padding: 9px 10px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: #6C5CE7;
  text-decoration: none;
  border-radius: 8px;
}
.family-switcher-add:hover { background: var(--purple-pale); }

.nav { padding: 16px 12px; flex: 1; }

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(196,194,232,0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 12px;
  margin: 16px 0 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sidebar-text);
  margin-bottom: 3px;
  transition: all 0.2s;
  position: relative;
}

.nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-item.active { background: rgba(108,92,231,0.35); color: #fff; }

.nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
}
.nav-badge.nav-badge-warn { background: rgba(253,203,110,0.2); color: var(--yellow); }
.nav-badge.nav-badge-over { background: rgba(225,112,85,0.18); color: var(--orange); }

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: var(--purple-light);
}

.nav-icon { font-size: 17px; width: 20px; text-align: center; }

.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
}

.members-section {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.members-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(196,194,232,0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.member-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.member-info .member-name { font-size: 12.5px; font-weight: 600; color: #e0dfff; }
.member-info .member-role { font-size: 10.5px; color: var(--sidebar-text); }
.member-dot { width: 7px; height: 7px; border-radius: 50%; margin-left: auto; }

.avatar-img         { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-img-rounded { border-radius: 14px; }

/* ── MAIN ── */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* ── TOPBAR ── */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.topbar-title {
  font-family: 'Kumbh Sans', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--text);
  flex: 1;
}

.topbar-title span { color: #6C5CE7; }

.view-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.tab-btn {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
  font-family: 'Kumbh Sans', sans-serif;
}

.tab-btn.active {
  background: #fff;
  color: #6C5CE7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.conflict-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--red-pale);
  color: var(--red);
  border: 1px solid #ffc5c5;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.conflict-pill:hover { background: #ffd5d5; }

.conflict-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.topbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(108,92,231,0.35);
}

/* ── SCREENS ── */
.screen { display: none; flex: 1; overflow: hidden; }
.screen.active { display: flex; }

/* ── CALENDAR SCREEN ── */
#screen-calendar { flex-direction: row; }

.calendar-main { flex: 1; overflow: auto; padding: 24px 28px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-label { font-size: 11.5px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.stat-value { font-family: 'Kumbh Sans', sans-serif; font-size: 28px; font-weight: 900; color: var(--text); }
.stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.stat-accent {
  display: flex;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin-bottom: 10px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cal-wrapper {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cal-header-row {
  display: grid;
  grid-template-columns: 64px repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
}

.cal-time-corner { padding: 12px 0; }

.cal-day-head {
  padding: 12px 8px;
  text-align: center;
  border-left: 1px solid var(--border);
}

.cal-day-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cal-day-num {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 0;
  border-radius: 50%;
}

.cal-day-head.today .cal-day-num { background: #6C5CE7; color: #fff; }

.cal-grid { display: grid; grid-template-columns: 64px repeat(7, 1fr); }

.cal-time {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 10px 0 0;
  text-align: right;
  height: 56px;
  display: flex;
  align-items: flex-start;
  padding-top: 6px;
}

.cal-cell {
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: 56px;
  position: relative;
}

.event-pill {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 3px;
  border-radius: 8px;
  padding: 4px 7px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  z-index: 1;
  transition: all 0.15s;
  overflow: hidden;
}

.event-pill:hover {
  filter: brightness(0.94);
  transform: scale(1.01);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.event-pill.tall { height: 108px; }

.event-pill.conflict {
  border: 2px solid var(--red) !important;
  animation: conflictPulse 2s infinite;
}

@keyframes conflictPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,94,94,0.4); }
  50% { box-shadow: 0 0 0 5px rgba(255,94,94,0); }
}

/* ── CHAT PANEL ── */
.chat-panel {
  width: 320px;
  background: #fff;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.chat-panel-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
}

.chat-panel-title {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #fff;
}

.chat-panel-sub { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 2px; }

.quick-chips {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: var(--purple-pale);
}

.chip {
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: #6C5CE7;
  border: 1.5px solid var(--purple-light);
  transition: all 0.15s;
}

.chip:hover { background: #6C5CE7; color: #fff; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg { max-width: 88%; }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; }

.msg-name { font-size: 10px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.msg.user .msg-name { text-align: right; color: #6C5CE7; }

.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 500;
}

.msg.bot .msg-bubble {
  background: var(--bg);
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.msg.user .msg-bubble {
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.msg.user .msg-time { text-align: right; }

.conflict-card {
  background: linear-gradient(135deg, #fff5f5, #ffe8e8);
  border: 1.5px solid #ffbaba;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 4px;
}

.conflict-card-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.conflict-card-body { font-size: 11.5px; color: #c0392b; line-height: 1.5; }

.conflict-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

.conflict-action-btn {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'Kumbh Sans', sans-serif;
  transition: all 0.15s;
}

.conflict-action-btn.primary { background: var(--teal); color: #fff; }
.conflict-action-btn.secondary { background: #fff; color: var(--red); border: 1.5px solid #ffbaba; }
.conflict-action-btn:hover { filter: brightness(0.92); }

.chat-input-wrap {
  padding: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg);
}

.chat-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-family: 'Kumbh Sans', sans-serif;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus { border-color: var(--purple-light); }

.send-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.15s;
  box-shadow: 0 3px 10px rgba(108,92,231,0.35);
}

.send-btn:hover { transform: scale(1.08); }

/* ── CONFIG SCREEN ── */
#screen-config {
  flex-direction: column;
  overflow: auto;
  padding: 28px;
  gap: 20px;
}

.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.config-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.config-card-title {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.config-card-title .icon { font-size: 20px; }

.member-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.member-card:last-of-type { border-bottom: none; }

.big-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
  font-family: 'Kumbh Sans', sans-serif;
}

.member-card-info { flex: 1; }
.member-card-name { font-size: 14px; font-weight: 700; color: var(--text); }
.member-card-role { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

.role-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px var(--border);
}

.add-member-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 2px dashed var(--purple-light);
  background: var(--purple-pale);
  color: #6C5CE7;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Kumbh Sans', sans-serif;
  transition: all 0.2s;
  margin-top: 14px;
}

.add-member-btn:hover { background: #e0ddff; border-color: #6C5CE7; }

.sync-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.sync-item:last-of-type { border-bottom: none; }

.sync-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
}

.sync-dot { width: 8px; height: 8px; border-radius: 50%; }

.sync-btn {
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid;
  font-family: 'Kumbh Sans', sans-serif;
  transition: all 0.15s;
}

.sync-btn.connected { border-color: var(--teal); color: var(--teal); background: var(--teal-pale); }
.sync-btn.connect { border-color: #6C5CE7; color: #6C5CE7; background: var(--purple-pale); }
.sync-btn:hover { filter: brightness(0.93); }

.toggle {
  width: 44px;
  height: 24px;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
}

.toggle.on { background: #6C5CE7; }
.toggle.on .toggle-thumb { left: calc(100% - 22px); }
.toggle.off { background: #ddd; }
.toggle.off .toggle-thumb { left: 2px; }

/* ── CONFLICTS SCREEN ── */
#screen-conflicts {
  flex-direction: column;
  overflow: auto;
  padding: 28px;
  gap: 20px;
}

.conflicts-header { display: flex; align-items: center; gap: 16px; }
.conflicts-title { font-family: 'Kumbh Sans', sans-serif; font-size: 24px; font-weight: 900; color: var(--text); }
.conflict-count-badge { background: var(--red); color: #fff; font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 20px; }

.conflict-item-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.conflict-item-header {
  background: linear-gradient(135deg, #fff5f5, #ffe8e8);
  padding: 18px 24px;
  border-bottom: 1px solid #ffd5d5;
  display: flex;
  align-items: center;
  gap: 14px;
}

.conflict-warning-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.conflict-item-title { font-size: 16px; font-weight: 800; color: var(--red); }
.conflict-item-meta { font-size: 12.5px; color: #c0392b; margin-top: 3px; }
.conflict-item-body { padding: 20px 24px; }

.overlap-visual { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }

.overlap-event {
  flex: 1;
  border-radius: 12px;
  padding: 14px 16px;
  border: 2px solid;
}

.overlap-vs { font-size: 18px; font-weight: 900; color: var(--red); padding: 0 4px; }
.overlap-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.overlap-name { font-size: 14px; font-weight: 800; }
.overlap-time { font-size: 12px; font-weight: 600; margin-top: 3px; }

.resolution-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.resolve-btn {
  flex: 1;
  min-width: 160px;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'Kumbh Sans', sans-serif;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.resolve-btn.primary { background: linear-gradient(135deg, var(--teal), #00cba0); color: #fff; box-shadow: 0 4px 14px rgba(0,184,148,0.35); }
.resolve-btn.secondary { background: linear-gradient(135deg, #6C5CE7, #a29bfe); color: #fff; box-shadow: 0 4px 14px rgba(108,92,231,0.3); }
.resolve-btn.dismiss { background: var(--bg); color: var(--text-muted); border: 1.5px solid var(--border); }
.resolve-btn:hover { transform: translateY(-1px); filter: brightness(0.95); }

/* ── SIGN-IN MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,18,50,0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show { display: flex; }

.auth-modal {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  width: 420px;
  max-width: calc(100vw - 40px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-step { display: flex; flex-direction: column; }

.auth-hero { font-size: 48px; text-align: center; margin-bottom: 12px; }

.auth-title {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #6C5CE7;
  text-align: center;
  margin-bottom: 6px;
}

.auth-subtitle { font-size: 13.5px; color: var(--text-muted); text-align: center; margin-bottom: 24px; }

.auth-error {
  background: #fff0f0;
  color: var(--red);
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ffd0d0;
  margin-bottom: 12px;
  display: none;
}

.auth-error.visible { display: block; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

.form-label { font-size: 12px; font-weight: 700; color: var(--text); }

.form-input {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 13.5px;
  font-family: 'Kumbh Sans', sans-serif;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-input:focus { border-color: var(--purple-light); }

.form-input-code {
  text-align: center;
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.auth-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Kumbh Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(108,92,231,0.35);
  margin-bottom: 14px;
}

.auth-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

.auth-footer { font-size: 12.5px; color: var(--text-muted); text-align: center; }

.auth-link {
  background: none;
  border: none;
  color: #6C5CE7;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Kumbh Sans', sans-serif;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-link:hover { opacity: 0.75; }

.auth-link-block {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.family-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }

.family-option {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}

.family-option:hover { border-color: var(--purple-light); background: var(--purple-pale); }

.family-option-icon { font-size: 32px; margin-bottom: 8px; }
.family-option-label { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.family-option-desc { font-size: 11px; color: var(--text-muted); }

.invite-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--purple-pale);
  border: 2px solid var(--purple-light);
  border-radius: 12px;
  padding: 12px 16px;
}

.copy-code-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: #6C5CE7;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Kumbh Sans', sans-serif;
  transition: all 0.15s;
}

.copy-code-btn:hover { filter: brightness(1.1); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  background: #27245C;
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 300px;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 18px; flex-shrink: 0; }

/* scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0cef0; border-radius: 10px; }

/* ── ADD EVENT BUTTON (topbar) ── */
.add-event-btn {
  padding: 9px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Kumbh Sans', sans-serif;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(108,92,231,0.3);
  white-space: nowrap;
  flex-shrink: 0;
}
.add-event-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* ── CREATE EVENT MODAL ── */
.create-event-dialog {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  width: 500px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: modalIn 0.3s ease;
}

.create-event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.create-event-title {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: 'Kumbh Sans', sans-serif;
  flex-shrink: 0;
}
.modal-close-btn:hover { background: var(--border); color: var(--text); }

.ce-row { display: flex; gap: 14px; }
.ce-row .form-group { flex: 1; margin-bottom: 0; }

.form-select {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 13.5px;
  font-family: 'Kumbh Sans', sans-serif;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c7c9a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-select:focus { border-color: var(--purple-light); }

/* Tag preset chips */
.tag-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.tag-preset {
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  font-family: 'Kumbh Sans', sans-serif;
}
.tag-preset:hover { filter: brightness(0.93); }
.tag-preset.selected { border-color: currentColor; box-shadow: 0 0 0 3px rgba(108,92,231,0.15); }

/* Custom tag input row */
.tag-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.tag-input-row .form-input { flex: 1; }

.tag-add-btn {
  padding: 0 18px;
  border-radius: 12px;
  border: 1.5px solid var(--purple-light);
  background: var(--purple-pale);
  color: #6C5CE7;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Kumbh Sans', sans-serif;
  line-height: 1;
}
.tag-add-btn:hover { background: #6C5CE7; color: #fff; }

/* Selected tag chips */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 24px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
}

.tag-chip-remove {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.12);
  color: inherit;
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Kumbh Sans', sans-serif;
  transition: background 0.15s;
  flex-shrink: 0;
  line-height: 1;
}
.tag-chip-remove:hover { background: rgba(0,0,0,0.25); }

/* Modal action row */
.ce-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.ce-btn {
  flex: 1;
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Kumbh Sans', sans-serif;
  transition: all 0.2s;
  border: none;
}

.ce-btn-cancel {
  background: var(--bg);
  color: var(--text-muted);
  border: 1.5px solid var(--border) !important;
}
.ce-btn-cancel:hover { background: var(--border); }

.ce-btn-submit {
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  color: #fff;
  box-shadow: 0 4px 14px rgba(108,92,231,0.35);
}
.ce-btn-submit:hover { transform: translateY(-1px); filter: brightness(1.06); }

.ce-btn-danger {
  background: #FFF0F0;
  color: #c0392b;
  border: 1.5px solid #FFCDD2 !important;
  flex: none;
}
.ce-btn-danger:hover { background: #FFCDD2; }

/* Cal cell hover affordance for click-to-create */
.cal-cell { cursor: pointer; }
.cal-cell:hover { background: var(--purple-pale); }
.cal-cell:has(.event-pill):hover { background: transparent; cursor: default; }

/* ── INLINE CONFLICT PANEL ── */
.cal-conflicts-panel {
  background: linear-gradient(135deg, #fff8f8, #fff0f0);
  border: 1.5px solid #ffc5c5;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-conflicts-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.cal-conflicts-icon { font-size: 16px; }

.cal-conflicts-title {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: var(--red);
}

.cal-conflict-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ffd5d5;
  flex-wrap: wrap;
}

.cal-conflict-events {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.cal-conflict-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-conflict-vs {
  font-size: 10px;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.cal-conflict-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.cal-conflict-resolve {
  padding: 5px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--teal);
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Kumbh Sans', sans-serif;
  transition: all 0.15s;
  white-space: nowrap;
}
.cal-conflict-resolve:hover { background: var(--teal); color: #fff; }

/* ── VIEW SYSTEM ── */
.cal-view { display: none; }
.cal-view.active { display: block; }

/* ── SHARED VIEW NAV ── */
.cal-view-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: 'Kumbh Sans', sans-serif;
  flex-shrink: 0;
}
.cal-nav-btn:hover { background: var(--purple-pale); border-color: var(--purple-light); color: #6C5CE7; }

.cal-nav-label {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  min-width: 200px;
  text-align: center;
}

/* ── MONTH VIEW ── */
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.month-day-head {
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.month-day-head:last-child { border-right: none; }

.month-cell {
  min-height: 96px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 7px 6px;
  cursor: pointer;
  transition: background 0.15s;
  overflow: hidden;
}
.month-cell:nth-child(7n) { border-right: none; }
.month-cell:nth-last-child(-n+7) { border-bottom: none; }
.month-cell:hover { background: var(--purple-pale); }
.month-cell.other-month { opacity: 0.3; pointer-events: none; }

.month-cell-date {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 5px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.month-cell-date.today { background: #6C5CE7; color: #fff; }

.month-event-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: filter 0.15s;
  display: block;
}
.month-event-pill:hover { filter: brightness(0.9); }

.month-more {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 1px 4px;
}

/* ── DAY VIEW ── */
.day-grid {
  display: grid;
  grid-template-columns: 64px 1fr;
}

/* ── RECURRENCE TABS (modal schedule toggle) ── */
.recurrence-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.recurrence-tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
  font-family: 'Kumbh Sans', sans-serif;
}

.recurrence-tab.active {
  background: #fff;
  color: #6C5CE7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── DAY CHIPS (multi-day weekday selector) ── */
.day-chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.day-chip {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  transition: all 0.15s;
  font-family: 'Kumbh Sans', sans-serif;
}

.day-chip:hover { border-color: var(--purple-light); color: #6C5CE7; background: var(--purple-pale); }
.day-chip.selected { background: #6C5CE7; border-color: #6C5CE7; color: #fff; }

/* Event pill tag indicator */
.pill-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pill-tag-row { display: flex; gap: 3px; margin-top: 2px; flex-wrap: nowrap; overflow: hidden; }
.pill-tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}

/* ── DOCUMENT VAULT ── */
.vault-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Folder sidebar */
.vault-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px 10px;
}

.vault-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 10px;
  margin-bottom: 8px;
}

.vault-no-folders {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 10px 12px;
}

.vault-folder-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 2px;
}
.vault-folder-item:hover { background: var(--bg); }
.vault-folder-item.selected { background: var(--purple-pale); }

.vault-folder-icon { font-size: 18px; flex-shrink: 0; }

.vault-folder-meta { flex: 1; min-width: 0; }
.vault-folder-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vault-folder-item.selected .vault-folder-name { color: #6C5CE7; }

.vault-folder-count { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.vault-folder-gear {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 3px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
  flex-shrink: 0;
}
.vault-folder-item:hover .vault-folder-gear { opacity: 0.6; }
.vault-folder-gear:hover { opacity: 1 !important; background: var(--border); }

/* Document main pane */
.vault-main {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.vault-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.vault-empty-icon  { font-size: 52px; margin-bottom: 16px; }
.vault-empty-title { font-family: 'Kumbh Sans', sans-serif; font-size: 22px; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.vault-empty-sub   { font-size: 13px; color: var(--text-muted); text-align: center; max-width: 300px; }

.vault-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.vault-doc-header-name {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}
.vault-doc-header-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.vault-docs-empty {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

/* Document rows */
.vault-doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: box-shadow 0.15s;
}
.vault-doc-row:hover { box-shadow: var(--shadow); }

.vault-doc-type-icon { font-size: 22px; flex-shrink: 0; }

.vault-doc-info { flex: 1; min-width: 0; }
.vault-doc-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vault-doc-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.vault-doc-actions { display: flex; gap: 6px; flex-shrink: 0; }

.vault-doc-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s;
  font-family: 'Kumbh Sans', sans-serif;
  color: var(--text);
}
.vault-doc-btn:hover { background: var(--border); }
.vault-doc-btn-dl:hover  { background: var(--teal-pale); border-color: var(--teal); }
.vault-doc-btn-del:hover { background: var(--red-pale); border-color: var(--red); }

/* Access control UI in modals */
.vault-access-section {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.vault-access-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.vault-access-hint { font-weight: 400; color: var(--text-muted); }

.vault-role-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.vault-role-chip {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  transition: all 0.15s;
  user-select: none;
}
.vault-role-chip:hover    { border-color: var(--purple-light); color: #6C5CE7; background: var(--purple-pale); }
.vault-role-chip.selected { background: #6C5CE7; border-color: #6C5CE7; color: #fff; }
.vault-role-chip.locked   { opacity: 0.55; cursor: default; }
.vault-role-chip.locked.selected { background: #6C5CE7; border-color: #6C5CE7; color: #fff; opacity: 0.65; }

.vault-member-chips-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.vault-member-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.vault-member-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  transition: all 0.15s;
  user-select: none;
}
.vault-member-chip:hover    { border-color: var(--purple-light); color: #6C5CE7; background: var(--purple-pale); }
.vault-member-chip.selected { border-color: #6C5CE7; background: var(--purple-pale); color: #6C5CE7; }

.vault-member-chip-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  flex-shrink: 0;
}

.vault-access-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-style: italic;
}

/* ── FINANCE ── */

/* Category colour dot (sidebar + transaction rows) */
.fin-cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Budget bar */
.fin-budget-wrap {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.fin-budget-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.fin-budget-label-edit {
  background: none;
  border: none;
  padding: 0 4px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 6px;
  line-height: 1;
}
.fin-budget-label-edit:hover { background: var(--border); }

.fin-budget-track {
  height: 7px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
}

.fin-budget-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--teal);
  transition: width 0.35s ease;
}
.fin-budget-fill.warn { background: var(--yellow); }
.fin-budget-fill.over { background: var(--red); }

/* Transaction list */
.fin-txn-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fin-txn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  transition: box-shadow 0.15s;
}
.fin-txn-row:hover { box-shadow: var(--shadow); }

.fin-txn-info { flex: 1; min-width: 0; }

.fin-txn-desc {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fin-txn-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.fin-txn-amount {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
  min-width: 72px;
  text-align: right;
}
.fin-txn-amount.negative { color: var(--teal); }

.fin-txn-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* Finance empty state */
.fin-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 8px;
  text-align: center;
}
.fin-empty-icon  { font-size: 46px; margin-bottom: 4px; }
.fin-empty-title { font-family: 'Kumbh Sans', sans-serif; font-size: 20px; font-weight: 900; color: var(--text); }
.fin-empty-sub   { font-size: 13px; color: var(--text-muted); }

/* Sidebar per-category budget progress bar */
.fin-cat-bar-track {
  height: 3px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
  margin: 4px 0 2px;
}
.fin-cat-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--teal);
}
.fin-cat-bar-fill.fin-bar-amber { background: var(--yellow); }
.fin-cat-bar-fill.fin-bar-coral { background: var(--orange); }

/* ══════════════════════════════════════════════════════════════════════════════
   CALENDAR REDESIGN
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Icon Sidebar ── */
.icon-sidebar {
  width: 68px;
  flex-shrink: 0;
  background: #27245C;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 0 14px;
  gap: 6px;
  z-index: 10;
  transition: width 0.25s ease;
  overflow: hidden;
}
.icon-sidebar:hover {
  width: 200px;
}

.icon-sidebar-logo-row {
  display: flex;
  align-items: center;
  padding-left: 11px;
  margin-bottom: 6px;
  flex-shrink: 0;
  min-height: 46px;
  width: 100%;
  box-sizing: border-box;
  transition: padding-left 0.25s ease;
}
.icon-sidebar:hover .icon-sidebar-logo-row {
  padding-left: 14px;
}
.icon-sidebar-logo {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 14px;
  background: #2DD4BF;
  flex-shrink: 0;
}
.icon-sidebar-family-switcher {
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: opacity 0.2s ease, margin-left 0.25s ease;
}
.icon-sidebar:hover .icon-sidebar-family-switcher {
  opacity: 1;
  margin-left: 10px;
}
.icon-sidebar-family-name {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.icon-sidebar-family-select {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  padding: 2px 4px;
  cursor: pointer;
  max-width: 120px;
}
.icon-sidebar-family-select option {
  background: #27245C;
  color: #fff;
}

.icon-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.icon-sidebar-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  margin-left: 0;
  transition: opacity 0.2s ease, width 0.25s ease, margin-left 0.25s ease;
}
.icon-sidebar:hover .icon-sidebar-label {
  opacity: 1;
  width: auto;
  margin-left: 10px;
}

.icon-sidebar-btn {
  width: calc(100% - 22px);
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 10px;
  margin-left: 11px;
  color: #C4C2E8;
  font-size: 26px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.25s ease;
  cursor: pointer;
  box-sizing: border-box;
}
.icon-sidebar:hover .icon-sidebar-btn {
  padding-left: 14px;
}
.icon-sidebar-btn i {
  min-width: 26px;
  text-align: center;
}
.icon-sidebar-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.icon-sidebar-btn.active { background: rgba(108,92,231,0.35); color: #fff; }

.icon-sidebar-spacer { flex: 1; }

.icon-sidebar-logout-form {
  width: 100%;
  margin: 0;
  padding: 0;
}
.icon-sidebar-logout-form button.icon-sidebar-btn {
  background: none;
  border: none;
  font: inherit;
  font-size: 26px;
  width: calc(100% - 22px);
  color: #C4C2E8;
  cursor: pointer;
}
.icon-sidebar-logout-form button.icon-sidebar-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.icon-sidebar-avatar-row {
  display: flex;
  align-items: center;
  padding-left: 15px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: padding-left 0.25s ease;
}
.icon-sidebar:hover .icon-sidebar-avatar-row {
  padding-left: 18px;
}
.icon-sidebar-avatar-row .icon-sidebar-label {
  color: #fff;
}
.icon-sidebar-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: #34D399;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}
.icon-sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.icon-sidebar-avatar span {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

/* ── Filter Panel ── */
.cal-filter-panel {
  width: 210px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 24px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.cal-filter-title {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 24px;
}

.cal-filter-section-label {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.cal-filter-members,
.cal-filter-tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.cal-filter-member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  transition: background 0.15s;
  user-select: none;
}
.cal-filter-member-item:hover { background: var(--bg); }
.cal-filter-member-item.deselected { opacity: 0.35; }

.cal-filter-member-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cal-filter-member-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.cal-filter-member-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-filter-tag-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  transition: background 0.15s;
  user-select: none;
}
.cal-filter-tag-item:hover { background: var(--bg); }
.cal-filter-tag-item.deselected { opacity: 0.35; }

.cal-filter-tag-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid;
  flex-shrink: 0;
  box-sizing: border-box;
}

.cal-filter-tag-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.cal-filter-create-btn {
  margin-top: auto;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Kumbh Sans', sans-serif;
  transition: all 0.2s;
}
.cal-filter-create-btn:hover { filter: brightness(0.92); }

/* ── Calendar Redesign Layout ── */
.cal-redesign-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.cal-redesign-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

/* ── Calendar Header Bar ── */
.cal-header-bar {
  padding: 20px 28px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  transition: background 0.3s;
}

.cal-header-month {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  text-align: center;
}

.cal-header-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-header-nav {
  display: flex;
  gap: 4px;
}

.cal-header-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.cal-header-nav-btn:hover { background: rgba(255,255,255,0.35); }

.cal-header-view-tabs {
  display: flex;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.cal-view-tab {
  padding: 6px 18px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
  font-family: 'Kumbh Sans', sans-serif;
}
.cal-view-tab.active { background: #fff; color: var(--text); }

/* ── Calendar Body ── */
.cal-body {
  flex: 1;
  overflow-y: auto;
  background: #fff;
}

/* ── Month Grid ── */
.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
}

.cal-month-day-head {
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: capitalize;
  letter-spacing: 0.04em;
}

.cal-month-day-head-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-month-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4px 4px 2px;
  cursor: pointer;
  transition: background 0.15s;
  overflow: visible;
  position: relative;
  vertical-align: top;
}
.cal-month-cell:nth-child(7n) { border-right: none; }
.cal-month-cell:hover { background: var(--purple-pale); }
.cal-month-cell.other-month { opacity: 0.3; pointer-events: none; }

.cal-month-cell-date {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 2px;
}
.cal-month-cell-date.today { background: #6C5CE7; color: #fff; }

.cal-month-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}

/* Event bar in month view */
.cal-event-bar {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: filter 0.15s;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}
.cal-event-bar:hover { filter: brightness(0.88); }

.cal-event-bar.continuation {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.cal-event-bar.continues {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.cal-event-bar-placeholder {
  height: 18px;
  visibility: hidden;
}

.cal-month-more {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 1px 4px;
  cursor: pointer;
}

/* ── Week Grid (redesigned) ── */
.cal-week-grid {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
}

.cal-week-time {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: right;
  padding: 4px 8px 0 0;
  height: 52px;
}

.cal-week-cell {
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: 52px;
  position: relative;
  cursor: pointer;
}
.cal-week-cell:hover { background: var(--purple-pale); }
.cal-week-cell:has(.event-pill):hover { background: transparent; cursor: default; }

/* ── Day Grid (redesigned) ── */
.cal-day-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.cal-day-label {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  min-width: 220px;
  text-align: center;
}

.cal-day-grid {
  display: grid;
  grid-template-columns: 60px 1fr;
}

.cal-day-time {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: right;
  padding: 4px 8px 0 0;
  height: 60px;
}

.cal-day-cell {
  border-bottom: 1px solid var(--border);
  height: 60px;
  position: relative;
  cursor: pointer;
}
.cal-day-cell:hover { background: var(--purple-pale); }

/* ── Shared page header action buttons ── */
.photos-new-btn {
  padding:10px 22px; border-radius:10px; border:none; cursor:pointer;
  font-family:'Kumbh Sans', sans-serif; font-size:14px; font-weight:700;
  background:#2EAA60; color:#fff;
  transition:background .15s, transform .15s;
}
.photos-new-btn:hover { background:#26944f; transform:translateY(-1px); }
.photos-new-btn:active { transform:scale(0.97); }

.photos-settings-btn {
  padding:10px 18px; border-radius:10px; border:1.5px solid var(--border);
  background:#fff; cursor:pointer; font-family:'Kumbh Sans', sans-serif;
  font-size:13px; font-weight:600; color:var(--text-muted);
  transition:border-color .15s, color .15s;
}
.photos-settings-btn:hover { border-color:#6C5CE7; color:var(--text); }
.cal-day-cell:has(.event-pill):hover { background: transparent; cursor: default; }

/* ══════════════════════════════════════════════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════════════════════════════════════════════ */

body.land-body {
  display: block;
  height: auto;
  overflow: auto;
  background: #fff;
  color: var(--text);
  font-family: 'Kumbh Sans', sans-serif;
}

/* ── Navbar ── */
.land-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.land-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.land-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.land-nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: #fff;
}

.land-nav-logo-text {
  font-family: 'Kumbh Sans', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--text);
}

.land-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.land-nav-login {
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}
.land-nav-login:hover { background: var(--bg); }

.land-nav-signup {
  padding: 9px 22px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(108,92,231,0.28);
}
.land-nav-signup:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* ── Hero ── */
.land-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px 72px;
  display: flex;
  align-items: center;
  gap: 64px;
}

.land-hero-inner { flex: 1; max-width: 520px; }

.land-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--purple-pale);
  color: #6C5CE7;
  border: 1px solid var(--purple-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 24px;
}
.land-hero-badge i { font-size: 14px; }

.land-hero-headline {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 54px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.land-hero-accent {
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.land-hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  font-weight: 500;
}

.land-hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.land-btn-primary {
  padding: 14px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Kumbh Sans', sans-serif;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(108,92,231,0.35);
  display: inline-block;
}
.land-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }

.land-btn-secondary {
  padding: 14px 28px;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Kumbh Sans', sans-serif;
  text-decoration: none;
  border: 2px solid var(--border);
  transition: all 0.2s;
  display: inline-block;
}
.land-btn-secondary:hover { border-color: #6C5CE7; color: #6C5CE7; }

.land-btn-large { padding: 16px 40px; font-size: 16px; }

.land-hero-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.land-proof-item { font-size: 13px; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.land-proof-item i { font-size: 14px; }
.land-proof-sep  { color: var(--border); font-weight: 700; }

/* ── Hero Mockup ── */
.land-hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.land-mockup {
  width: 420px;
  height: 295px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(108,92,231,0.16), 0 4px 16px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.land-mockup-sidebar {
  width: 52px;
  background: #27245C;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 6px;
  flex-shrink: 0;
}

.land-mock-logo { font-size: 18px; margin-bottom: 8px; }

.land-mock-nav-item {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.5);
}
.land-mock-nav-item i { font-size: 15px; }

.land-mock-nav-item.land-mock-active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.land-mockup-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

.land-mock-topbar {
  background: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.land-mock-title {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}

.land-mock-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  flex-shrink: 0;
}

.land-mock-stats {
  display: flex;
  gap: 7px;
  padding: 10px 10px 6px;
  flex-shrink: 0;
}

.land-mock-stat {
  flex: 1;
  border-radius: 8px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 9px;
}

.land-mock-stat-num {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.land-mock-cards {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 10px;
}

.land-mock-event {
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}
.land-mock-event i { font-size: 11px; flex-shrink: 0; }

/* ── Shared Section Layout ── */
.land-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.land-section-label {
  font-size: 12px;
  font-weight: 700;
  color: #6C5CE7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.land-section-title {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.land-section-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 520px;
  line-height: 1.6;
  font-weight: 500;
}

/* ── Features ── */
.land-features {
  background: var(--bg);
  padding: 80px 0;
}

.land-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.land-feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.land-feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.land-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.land-feature-icon i { font-size: 24px; }

.land-feature-title {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}

.land-feature-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
}

/* ── How it Works ── */
.land-steps-section { padding: 80px 0; }

.land-steps {
  display: flex;
  align-items: center;
  gap: 20px;
}

.land-step {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}

.land-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  color: #fff;
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.land-step-title {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}

.land-step-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
}

.land-step-arrow { font-size: 22px; color: var(--border); flex-shrink: 0; display: flex; align-items: center; }

/* ── CTA Banner ── */
.land-cta-banner {
  background: var(--sidebar-bg);
  padding: 80px 0;
}

.land-cta-inner { text-align: center; }

.land-cta-title {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.land-cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  font-weight: 500;
}

/* ── Footer ── */
.land-footer {
  background: var(--sidebar-bg);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 28px 0;
}

.land-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.land-footer-logo { display: flex; align-items: center; gap: 8px; }
.land-footer-logo-icon { font-size: 18px; }
.land-footer-logo-text {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}
.land-footer-copy { font-size: 12.5px; color: rgba(196,194,232,0.55); }

/* ── Header typography: Kumbh Sans display text gets tight tracking ── */
.logo-text,
.topbar-title,
.stat-value,
.cal-day-num,
.chat-panel-title,
.config-card-title,
.big-avatar,
.conflicts-title,
.auth-title,
.form-input-code,
.create-event-title,
.cal-conflicts-title,
.cal-nav-label,
.month-cell-date,
.vault-empty-title,
.vault-doc-header-name,
.fin-txn-amount,
.fin-empty-title,
.cal-filter-title,
.cal-filter-section-label,
.cal-header-month,
.cal-month-cell-date,
.cal-day-label {
  letter-spacing: -0.02em;
}
